Merge pull request #1689 from coreos-inc/qemu-specific-version

Allow the version of CoreOS to be specified when building QEMU image
This commit is contained in:
josephschorr 2016-08-05 16:47:35 -04:00 committed by GitHub
commit fe2aeee218
2 changed files with 4 additions and 3 deletions

View file

@ -7,8 +7,10 @@ RUN apt-get clean && apt-get update && apt-get install -y \
qemu-kvm
ARG channel=stable
ARG version=current
RUN curl -s -O http://${channel}.release.core-os.net/amd64-usr/current/coreos_production_qemu_image.img.bz2 && \
RUN echo "Downloading http://${channel}.release.core-os.net/amd64-usr/${version}/coreos_production_qemu_image.img.bz2"
RUN curl -s -O http://${channel}.release.core-os.net/amd64-usr/${version}/coreos_production_qemu_image.img.bz2 && \
bzip2 -d coreos_production_qemu_image.img.bz2
RUN apt-get remove -y curl bzip2 && \

View file

@ -1,6 +1,5 @@
# Builder Image
```
CHANNEL=stable
docker build --build-arg channel=${CHANNEL} -t quay.io/quay/quay-builder-qemu-coreos:${CHANNEL} .
docker build --build-arg channel=stable --build-arg version=current -t quay.io/quay/quay-builder-qemu-coreos:staging .
```