forked from kochp/ansible-aws-bash
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
54 lines (42 loc) · 1.41 KB
/
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
FROM williamyeh/ansible:ubuntu16.04
# Storing the Buildnumber within the image as environment variable CONT_IMG_VER
ARG CONT_IMG_VER
ENV CONT_IMG_VER ${CONT_IMG_VER:-v0}
RUN apt-get update
# AWS CLI needs the PYTHONIOENCODING environment varialbe to handle UTF-8 correctly:
ENV PYTHONIOENCODING=UTF-8
RUN apt-get update && \
apt-get install -y \
less \
curl \
nano \
python \
python-pip \
python-virtualenv \
openssh-client \
jq \
git \
vim \
unzip \
sudo \
openjdk-8-jdk \
apt-transport-https \
ca-certificates \
curl \
gnupg2 \
software-properties-common \
groff
RUN pip install awscli j2cli[yaml] boto boto3 docker-py
WORKDIR /opt
Add http://mirror.yannic-bonenberger.com/apache/maven/maven-3/3.5.0/binaries/apache-maven-3.5.0-bin.zip apache-maven-3.5.0-bin.zip
RUN unzip apache-maven-3.5.0-bin.zip && echo 'export PATH=$PATH:/opt/apache-maven-3.5.0/bin' >> /root/.bashrc
# Install Docker-ce to use Docker in Docker.
# To really use docker in docker you have to forward the docker port with this port mapping: "-v /var/run/docker.sock:/var/run/docker.sock"
RUN curl -fsSL https://download.docker.com/linux/debian/gpg | sudo apt-key add -
RUN add-apt-repository \
"deb [arch=amd64] https://download.docker.com/linux/debian \
wheezy \
stable"
RUN apt-get -y update && \
apt-get -y install sudo docker-ce
WORKDIR /project