Skip to content

Instantly share code, notes, and snippets.

Cell cell

View GitHub Profile
@cell
cell / inject-alpine.sh
Last active Apr 4, 2018
Deploy alpine into the filesystem of a container (the PID of the PID1 of the container)
View inject-alpine.sh
#!/bin/bash
#Based on https://github.com/moby/moby/blob/master/contrib/mkimage-alpine.sh
set -ex
#PID environment variable has to be set.
PID=${PID:-0}
REL=${REL:-edge}
MIRROR=${MIRROR:-http://nl.alpinelinux.org/alpine}
SAVE=${SAVE:-0}
MAINREPO=$MIRROR/$REL/main
View keybase.md

Keybase proof

I hereby claim:

To claim this, I am signing this object:

You can’t perform that action at this time.