-
Notifications
You must be signed in to change notification settings - Fork 18
/
Dockerfile
53 lines (36 loc) · 1.19 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
FROM python:3.8.13
LABEL maintainer="LitmusChaos"
ARG TARGETARCH
# upgrade and setup python
RUN apt-get update \
&& apt-get -y install gcc python3-pip python-dev curl \
&& apt-get install -y libapr1-dev linux-libc-dev \
&& pip install --upgrade pip \
&& pip install jinja2 pyYaml
#Installing kops
ENV kopsversion=v1.20.0
RUN curl -Lsf -o kops-linux https://github.com/kubernetes/kops/releases/download/${kopsversion}/kops-linux-${TARGETARCH}
RUN chmod +x ./kops-linux
RUN mv ./kops-linux /usr/local/bin/kops
#Installing Kubectl
ENV KUBE_LATEST_VERSION="v1.18.0"
RUN curl -L https://storage.googleapis.com/kubernetes-release/release/${KUBE_LATEST_VERSION}/bin/linux/${TARGETARCH}/kubectl -o /usr/local/bin/kubectl && \
chmod +x /usr/local/bin/kubectl
RUN rm -rf /tmp/* /root/.cache
ENV LC_ALL=C.UTF-8
ENV LANG=C.UTF-8
WORKDIR /litmus
# Copying Necessary Files
COPY . .
# Setup requirements
RUN pip3 install -r requirements.txt
RUN python3 setup.py install
WORKDIR /litmus/byoc
# Setup requirements for byoc
RUN chmod +x install.sh
RUN ./install.sh
WORKDIR /litmus
# Copying experiment file
COPY ./bin/experiment/experiment.py ./experiment
ENV PYTHONPATH /litmus
ENTRYPOINT ["python3"]