Skip to content

Instantly share code, notes, and snippets.

@Wenzel
Created August 2, 2017 13:35
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save Wenzel/09b222f3572fa34ec01b50f69c5a556e to your computer and use it in GitHub Desktop.
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