-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
43 lines (35 loc) · 1.11 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
FROM ubuntu:16.04
RUN apt-get update && \
apt-get upgrade -y && \
apt-get install -y ntpdate
# AWS CLI needs the PYTHONIOENCODING environment varialbe to handle UTF-8 correctly:
ENV PYTHONIOENCODING=UTF-8
RUN apt-get install -y \
less \
man \
ssh \
python \
python-pip \
python-virtualenv \
zlib1g-dev \
libssl-dev \
libxml2 libxml2-dev \
build-essential patch \
ruby-dev liblzma-dev \
ruby \
vim
RUN wget https://github.com/cloudfoundry/bosh-bootloader/releases/download/v3.1.0/bbl-v3.1.0_linux_x86-64 && \
chmod +x bbl-v3.1.0_linux_x86-64 && \
mv bbl-v3.1.0_linux_x86-64 /usr/local/bin/bbl
RUN wget https://s3.amazonaws.com/bosh-cli-artifacts/bosh-cli-2.0.1-linux-amd64 && \
chmod +x bosh-cli-2.0.1-linux-amd64 && \
mv bosh-cli-2.0.1-linux-amd64 /usr/local/bin/bosh
RUN adduser --disabled-login --gecos '' aws
WORKDIR /home/aws
USER aws
RUN \
mkdir aws && \
virtualenv aws/env && \
./aws/env/bin/pip install awscli && \
echo 'source $HOME/aws/env/bin/activate' >> .bashrc && \
echo 'complete -C aws_completer aws' >> .bashrc