Skip to content

Instantly share code, notes, and snippets.

@v1k0d3n
Created October 12, 2016 21:08
Show Gist options
  • Save v1k0d3n/fd81e77f1d019af7156223ae2ef09317 to your computer and use it in GitHub Desktop.
Save v1k0d3n/fd81e77f1d019af7156223ae2ef09317 to your computer and use it in GitHub Desktop.
FROM ubuntu:16.04
MAINTAINER "Brandon B. Jozsa" <[email protected]>
# Keep upstart from complaining
RUN dpkg-divert --local --rename --add /sbin/initctl
RUN ln -sf /bin/true /sbin/initctl
# Let the conatiner know that there is no tty
ENV DEBIAN_FRONTEND noninteractive
# Update and install some useful apts
RUN apt-get update
# Avoid ERROR: invoke-rc.d: policy-rc.d denied execution of start.
RUN echo "#!/bin/sh\nexit 0" > /usr/sbin/policy-rc.d
RUN apt-get upgrade -y
RUN apt-get install -y apt-utils dialog systemd && \
apt-get install -y maas
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment