Skip to content

Instantly share code, notes, and snippets.

View alexlarsson's full-sized avatar

Alexander Larsson alexlarsson

View GitHub Profile
{
"id": "org.freedesktop.Sdk.Extension.gfortran-62",
"branch": "1.6",
"runtime": "org.freedesktop.Sdk",
"build-extension": true,
"sdk": "org.freedesktop.Sdk",
"runtime-version": "1.6",
"sdk-extensions": [],
"separate-locales": false,
"cleanup": [ "/share/info", "/share/man" ],
{
"app-id": "net.supertuxkart.SuperTuxKart",
"runtime": "org.freedesktop.Platform",
"runtime-version": "1.4",
"sdk": "org.freedesktop.Sdk",
"rename-desktop-file": "supertuxkart.desktop",
"rename-icon": "supertuxkart",
"command": "supertuxkart",
"finish-args": ["--share=ipc", "--socket=x11", "--socket=pulseaudio", "--share=network", "--device=dri"],
"build-options" : {

Keybase proof

I hereby claim:

  • I am alexlarsson on github.
  • I am alexl (https://keybase.io/alexl) on keybase.
  • I have a public key whose fingerprint is 6A2B 067F B5E1 7A1A 3FC8 A0DA EB62 16DD B76C 70E9

To claim this, I am signing this object:

@alexlarsson
alexlarsson / gist:c8e3277d2678c1061319
Last active June 2, 2020 00:41
Private files in docker container

Private files in docker container

It is sometimes necessary to have files in a container that shouldn't ever end up in an image. These files are generally some form of private key or password that aren't allowed to be distributed. This document details a few usecases for such files and their requirements.

Use Cases

Private keys for packages

package main
import (
"archive/tar"
"compress/gzip"
"fmt"
"io"
"os"
)