connect to the boot2docker image via dinghy ssh
install pigz on boot2docker tiny core linux environments (i.e. dinghy) for speedup on docker image layer extraction
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# /var/lib/boot2docker/install-pigz.sh | |
#!/bin/bash | |
set -o errexit -o errtrace -o pipefail -o xtrace | |
PIGZ_VERSION=2.4 | |
LINUX_HEADERS_VERSION=4.19 | |
su - docker -c " \ | |
\ | |
cd /tmp \ | |
&& if [ ! -f pigz.tar.gz ]; then curl -o pigz.tar.gz https://www.zlib.net/pigz/pigz-${PIGZ_VERSION}.tar.gz; fi \ | |
&& echo 'https://distro.ibiblio.org/tinycorelinux' > /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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# /var/lib/boot2docker/profile | |
# <boot2docker env variables omitted for brevity> | |
./install-pigz.sh |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment