Created
August 2, 2017 13:35
Star
You must be signed in to star a gist
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM ubuntu:16.04 | |
# set non interactive only during build | |
ARG DEBIAN_FRONTEND=noninteractive | |
RUN apt-get update && \ | |
apt-get install -y \ | |
python3-guestfs python3-docopt wget ipython3 linux-image-generic | |
WORKDIR /root | |
# download ubuntu image | |
RUN wget https://cloud-images.ubuntu.com/releases/16.04/release/ubuntu-16.04-server-cloudimg-amd64.tar.gz -O ubuntu.tar.gz && \ | |
tar xf ubuntu.tar.gz | |
# download libguestfs mount script | |
RUN wget https://raw.githubusercontent.com/Wenzel/oswatcher/fc86f2c61260585e57991e088e5af8e3a8b3f81c/debug/test_guestfs.py | |
ENTRYPOINT ["python3", "/root/test_guestfs.py", "xenial-server-cloudimg-amd64.img"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment