Skip to content

Instantly share code, notes, and snippets.

View cell's full-sized avatar

Cell cell

View GitHub Profile
@cell
cell / inject-alpine.sh
Last active April 4, 2018 16:05
Deploy alpine into the filesystem of a container (the PID of the PID1 of the container)
#!/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

Keybase proof

I hereby claim:

To claim this, I am signing this object: