Allow the version of CoreOS to be specified when building QEMU image

This commit is contained in:
Joseph Schorr 2016-08-05 16:46:11 -04:00
parent fb0a1f9728
commit acdfc9369d
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 && \