Files
linuxkit/alpine/cloud/Dockerfile.raw2vhd
Nathan LeClaire e9b7803867 Migrate cloud build off of bind mounts
Signed-off-by: Nathan LeClaire <nathan.leclaire@gmail.com>
2016-09-14 15:38:05 -07:00

19 lines
641 B
Docker

FROM debian:jessie
# Why bother with this whole song and dance? qemu-img versions >=2.2.1 have a
# "bug" which causes the generated VHD files to be improperly formatted for
# running on Azure: https://bugs.launchpad.net/qemu/+bug/1490611
#
# Since Alpine has only qemu-img >= 2.4.1 in its apk index, we cannot use
# Alpine.
RUN apt-get update && \
apt-get install -y qemu-utils
# If version changes in distributed packages, this build is busted. Sanity check.
RUN qemu-img --version
RUN qemu-img --version | awk '{ if ($3 != "2.1.2,") exit 1; }'
COPY ./cloud/azure/raw2vhd.sh /raw2vhd.sh
VOLUME ["/tmp"]
ENTRYPOINT ["/raw2vhd.sh"]