-
Notifications
You must be signed in to change notification settings - Fork 26
/
Copy pathDockerfile
48 lines (35 loc) · 1.55 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
from python:3.8.16-slim-buster
RUN apt update
# kubectl
RUN apt install -y gpg ca-certificates curl bash-completion apt-transport-https --no-install-recommends
RUN curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl"
RUN install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl
RUN mkdir /root/.kube
# kubectl autocomplete
RUN echo 'source /etc/bash_completion' >> ~/.bashrc
RUN echo 'source <(kubectl completion bash)' >>~/.bashrc
RUN echo 'alias k=kubectl' >>~/.bashrc
RUN echo 'complete -o default -F __start_kubectl k' >>~/.bashrc
# heml
RUN curl https://baltocdn.com/helm/signing.asc | gpg --dearmor > /usr/share/keyrings/helm.gpg
RUN echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/helm.gpg] https://baltocdn.com/helm/stable/debian/ all main" > /etc/apt/sources.list.d/helm-stable-debian.list
RUN apt update
RUN apt install -y helm
# Apache ab tools for benchmark
RUN apt install -y apache2-utils --no-install-recommends
# VIM, nano, iproute2, iputils-ping
RUN apt install -y vim nano iproute2 iputils-ping --no-install-recommends
# clean up
RUN apt clean
# welcome message
COPY welcome.sh /etc/profile.d
RUN chmod a+rx /etc/profile.d/welcome.sh
RUN echo "/etc/profile.d/welcome.sh" >> /root/.bashrc
# muBench software
RUN apt install -y git libpangocairo-1.0-0 --no-install-recommends
COPY . /root/muBench
#WORKDIR /root
#RUN git clone https://github.com/mSvcBench/muBench.git
RUN pip3 install -r /root/muBench/requirements.txt
WORKDIR /root/muBench
CMD [ "sleep", "infinity"]