-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
40 lines (34 loc) · 1.66 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
FROM docker:18
ENV LANG="C.UTF-8" \
LC_ALL="C" \
LC_COLLATE="C"
RUN set -ex \
&& apk add --update --no-cache \
build-base openssh-client ca-certificates \
bash rsync git tmux tree curl wget \
python3 python3-dev libffi-dev openssl-dev \
pngcrush jpegoptim
RUN set -ex \
&& pip3 install --no-cache-dir --upgrade pip \
&& pip3 install --no-cache-dir --upgrade docker-compose ansible awscli beautifulsoup4 boot.py \
&& curl -o /usr/local/bin/ecs-cli https://s3.amazonaws.com/amazon-ecs-cli/ecs-cli-linux-amd64-latest \
&& chmod +x /usr/local/bin/ecs-cli
RUN set -ex \
&& echo -e "Host *" > /etc/ssh/ssh_config \
&& echo -e "\tStrictHostKeyChecking no" >> /etc/ssh/ssh_config \
&& echo -e "\tServerAliveInterval 10" >> /etc/ssh/ssh_config \
&& echo -e "\tServerAliveCountMax 2" >> /etc/ssh/ssh_config \
&& echo -e "\tControlMaster auto" >> /etc/ssh/ssh_config \
&& echo -e "\tControlPath /tmp/ssh-%h-%p-%r" >> /etc/ssh/ssh_config \
&& echo -e "\tControlPersist 30m" >> /etc/ssh/ssh_config \
&& mkdir -p /etc/ansible \
&& echo "[ssh_connection]" > /etc/ansible/ansible.cfg \
&& echo "ssh_args = -o ForwardAgent=yes -o ControlMaster=auto -o StrictHostKeyChecking=no -o ControlPersist=60s" >> /etc/ansible/ansible.cfg \
&& echo "pipelining = True" >> /etc/ansible/ansible.cfg \
&& mkdir ~/.aws \
&& echo [default] > ~/.aws/config \
&& echo region=us-east-1 >> ~/.aws/config \
&& echo output=json >> ~/.aws/config
COPY bin/* /usr/local/bin/
COPY bashrc /root/.bashrc
CMD ["bash"]