-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathaoa-codebuild
More file actions
50 lines (40 loc) · 1.26 KB
/
Copy pathaoa-codebuild
File metadata and controls
50 lines (40 loc) · 1.26 KB
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
FROM ubuntu:latest
ARG DEBIAN_FRONTEND=noninteractive
RUN apt update -y --fix-missing
RUN apt -y install wget \
lxc \
iptables \
make \
python3 \
python3-pip \
python3-dev \
build-essential \
bash \
apt-transport-https \
ca-certificates \
curl \
gnupg2 \
software-properties-common \
maven \
openssh-client \
vim \
bc \
jq \
git
# Install Docker from Docker Inc. repositories.
RUN curl -sSL https://get.docker.com/ | sh
RUN rm -f /usr/bin/python && ln -s /usr/bin/python3 /usr/bin/python
RUN rm -f /usr/bin/pip && ln -s /usr/bin/pip3 /usr/bin/pip
RUN alias pip='pip3' && alias python='python3'
RUN pip install --no-cache-dir jinja2 s3cmd teradataml
ARG AOA_CLI_VERSION=4.0
ENV KUBE_LATEST_VERSION="v1.17.9"
RUN curl -L https://storage.googleapis.com/kubernetes-release/release/${KUBE_LATEST_VERSION}/bin/linux/amd64/kubectl -o /usr/local/bin/kubectl && \
chmod +x /usr/local/bin/kubectl && \
pip install --no-cache-dir setuptools awscli aoa==$AOA_CLI_VERSION
# Install the magic wrapper.
ADD ./scripts/wrapdocker /usr/local/bin/wrapdocker
RUN sed -i -e 's/\r$//' /usr/local/bin/wrapdocker
RUN chmod +x /usr/local/bin/wrapdocker
VOLUME /var/lib/docker
ENTRYPOINT ["dockerd-entrypoint.sh"]