Created
August 2, 2017 13:35
-
-
Save Wenzel/09b222f3572fa34ec01b50f69c5a556e to your computer and use it in GitHub Desktop.
This file contains hidden or 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