forked from umrover/mrover-workspace
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
36 lines (28 loc) · 919 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
31
32
33
34
35
36
FROM ubuntu:16.04
MAINTAINER Milo Hartsoe <[email protected]>
ENV ANSIBLE_VERSION 2.6.0
COPY ansible /tmp/ansible
RUN set -x && \
echo ">> Adding build-dependencies..." && \
sed -i 's/# \(.*multiverse$\)/\1/g' /etc/apt/sources.list && \
apt-get update && \
apt-get -y upgrade && \
apt-get install -y build-essential \
software-properties-common \
apt-transport-https \
git \
wget \
&& apt-add-repository ppa:ansible/ansible && \
apt-get update && \
apt-get install -y ansible
RUN ansible-playbook -i "localhost," -c local /tmp/ansible/devbox.yml
ENV ANSIBLE_GATHERING smart
ENV ANSIBLE_HOST_KEY_CHECKING false
ENV ANSIBLE_RETRY_FILES_ENABLED false
ENV ANSIBLE_ROLES_PATH /ansible/playbooks/roles
ENV ANSIBLE_SSH_PIPELINING True
ENV PYTHONPATH /ansible/lib
ENV PATH /ansible/bin:$PATH
ENV ANSIBLE_LIBRARY /ansible/library
WORKDIR /root
ENTRYPOINT ["/bin/bash"]