-
-
Notifications
You must be signed in to change notification settings - Fork 22
/
Dockerfile
30 lines (23 loc) · 847 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
FROM debian:jessie
LABEL maintainer="Jeff Geerling"
ENV DEBIAN_FRONTEND noninteractive
# Install dependencies.
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
sudo \
build-essential libffi-dev libssl-dev \
python-pip python-dev \
&& rm -rf /var/lib/apt/lists/* \
&& rm -Rf /usr/share/doc && rm -Rf /usr/share/man \
&& apt-get clean
ENV pip_packages "wheel cryptography ansible"
# Install Ansible via pip.
RUN pip install --upgrade pip setuptools \
&& pip install $pip_packages
COPY initctl_faker .
RUN chmod +x initctl_faker && rm -fr /sbin/initctl && ln -s /initctl_faker /sbin/initctl
# Install Ansible inventory file.
RUN mkdir -p /etc/ansible
RUN echo "[local]\nlocalhost ansible_connection=local" > /etc/ansible/hosts
VOLUME ["/sys/fs/cgroup"]
CMD ["/lib/systemd/systemd"]