Skip to content

Instantly share code, notes, and snippets.

Last active April 25, 2020 14:16
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save djbender/25de9775ffc6058cab251573bc1c4da8 to your computer and use it in GitHub Desktop.
install pigz on boot2docker tiny core linux environments (i.e. dinghy) for speedup on docker image layer extraction

connect to the boot2docker image via dinghy ssh

# /var/lib/boot2docker/
set -o errexit -o errtrace -o pipefail -o xtrace
su - docker -c " \
cd /tmp \
&& if [ ! -f pigz.tar.gz ]; then curl -o pigz.tar.gz${PIGZ_VERSION}.tar.gz; fi \
&& echo '' > /opt/tcemirror \
&& tce-load -wi zlib_base-dev glibc_base-dev glibc_add_lib make gcc linux-${LINUX_HEADERS_VERSION}_api_headers \
&& tar zvxf /var/lib/boot2docker/pigz.tar.gz && cd pigz-${PIGZ_VERSION} && make clean && make \
cp pigz /usr/local/bin && cp unpigz /usr/local/bin
# /var/lib/boot2docker/profile
# <boot2docker env variables omitted for brevity>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment