From acdfc9369dfaddac49963af69076a62d7953ba2e Mon Sep 17 00:00:00 2001 From: Joseph Schorr Date: Fri, 5 Aug 2016 16:46:11 -0400 Subject: [PATCH] Allow the version of CoreOS to be specified when building QEMU image --- buildman/qemu-coreos/Dockerfile | 4 +++- buildman/qemu-coreos/README.md | 3 +-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/buildman/qemu-coreos/Dockerfile b/buildman/qemu-coreos/Dockerfile index 92f757102..2a099e777 100644 --- a/buildman/qemu-coreos/Dockerfile +++ b/buildman/qemu-coreos/Dockerfile @@ -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 && \ diff --git a/buildman/qemu-coreos/README.md b/buildman/qemu-coreos/README.md index 2d7ca53a7..2d53e8f55 100644 --- a/buildman/qemu-coreos/README.md +++ b/buildman/qemu-coreos/README.md @@ -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 . ```