Allow the version of CoreOS to be specified when building QEMU image
This commit is contained in:
parent
fb0a1f9728
commit
acdfc9369d
2 changed files with 4 additions and 3 deletions
|
@ -7,8 +7,10 @@ RUN apt-get clean && apt-get update && apt-get install -y \
|
||||||
qemu-kvm
|
qemu-kvm
|
||||||
|
|
||||||
ARG channel=stable
|
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
|
bzip2 -d coreos_production_qemu_image.img.bz2
|
||||||
|
|
||||||
RUN apt-get remove -y curl bzip2 && \
|
RUN apt-get remove -y curl bzip2 && \
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
# Builder Image
|
# Builder Image
|
||||||
|
|
||||||
```
|
```
|
||||||
CHANNEL=stable
|
docker build --build-arg channel=stable --build-arg version=current -t quay.io/quay/quay-builder-qemu-coreos:staging .
|
||||||
docker build --build-arg channel=${CHANNEL} -t quay.io/quay/quay-builder-qemu-coreos:${CHANNEL} .
|
|
||||||
```
|
```
|
||||||
|
|
Reference in a new issue