diff options
author | Vincent VAN HOLLEBEKE <vincent@compuscene.org> | 2018-01-12 12:45:55 +0100 |
---|---|---|
committer | Manuel Rüger <manuel@rueg.eu> | 2018-01-12 12:45:55 +0100 |
commit | fd76d390547053fca096f085a6546823e4e3ddf1 (patch) | |
tree | abd0ecf807bb770dcbda68f39e67016fec58efcb | |
parent | Added a multi-stage build example using portage to README.md. (diff) | |
download | docker-images-fd76d390547053fca096f085a6546823e4e3ddf1.tar.gz docker-images-fd76d390547053fca096f085a6546823e4e3ddf1.tar.bz2 docker-images-fd76d390547053fca096f085a6546823e4e3ddf1.zip |
Extract stage3 archive using XZ compression (#56)
* Extract stage3 archive using XZ compression
* Added extra space and removed compression method
-rw-r--r-- | stage3.Dockerfile | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/stage3.Dockerfile b/stage3.Dockerfile index 4fa10ce..0a950d2 100644 --- a/stage3.Dockerfile +++ b/stage3.Dockerfile @@ -18,7 +18,7 @@ ARG DIST="https://ftp-osl.osuosl.org/pub/gentoo/releases/${ARCH}/autobuilds" ARG SIGNING_KEY="0xBB572E0E2D182910" RUN echo "Building Gentoo Container image for ${ARCH} ${SUFFIX} fetching from ${DIST}" \ - && apk --no-cache add gnupg tar wget \ + && apk --no-cache add gnupg tar wget xz \ && STAGE3PATH="$(wget -O- "${DIST}/latest-stage3-${MICROARCH}${SUFFIX}.txt" | tail -n 1 | cut -f 1 -d ' ')" \ && echo "STAGE3PATH:" $STAGE3PATH \ && STAGE3="$(basename ${STAGE3PATH})" \ @@ -30,7 +30,7 @@ RUN echo "Building Gentoo Container image for ${ARCH} ${SUFFIX} fetching from ${ && gpg --keyserver ha.pool.sks-keyservers.net --recv-keys ${SIGNING_KEY} \ && gpg --verify "${STAGE3}.DIGESTS.asc" \ && awk '/# SHA512 HASH/{getline; print}' ${STAGE3}.DIGESTS.asc | sha512sum -c \ - && tar xjpf "${STAGE3}" --xattrs --numeric-owner \ + && tar xpf "${STAGE3}" --xattrs --numeric-owner \ && sed -i -e 's/#rc_sys=""/rc_sys="docker"/g' etc/rc.conf \ && echo 'UTC' > etc/timezone \ && rm ${STAGE3}.DIGESTS.asc ${STAGE3}.CONTENTS ${STAGE3} |