-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathDockerfile
46 lines (40 loc) · 1.88 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 osexp2000/ubuntu-with-utils
USER root
WORKDIR /
RUN set -x && apt-get -y update && \
apt-get -y install strace ltrace && \
# perf
apt-get -y install linux-tools-common && \
apt-get -y install python3-pip python3-venv && \
# objdump ...
apt-get -y install binutils && \
# some file utilities
apt-get -y install attr && \
# some tools such as perf-tools need gawk ...
apt-get -y install gawk && \
# need for `mount -t cifs //IP/C /MOUNT_DIR -o user=USER,pass=PASSWD,dom=DOMAIN`
apt-get -y install cifs-utils && \
# awk utils such as col1 ...
apt-get -y install byobu && \
#
# config vim: disable swapfile creation due to it can not handle dir such as /proc/1/root/xxx
(echo && echo "set noswapfile") >> ~/.vimrc && \
#
touch /.rootfs-of-docker-geek && \
#
# From here are some version specific utilities
#
# install a color cat
curl -fsSL https://github.com/sharkdp/bat/releases/download/v0.15.0/bat_0.15.0_amd64.deb -o bat.deb && \
dpkg -i bat.deb && rm bat.deb && \
# install docker cli and docker-compose
curl -fsSL https://download.docker.com/linux/static/stable/x86_64/docker-19.03.8.tgz \
| tar xz docker/docker && mv docker/docker /usr/bin/docker && rm -fr docker && \
curl -fsSL https://raw.githubusercontent.com/docker/docker-ce/master/components/cli/contrib/completion/bash/docker > /etc/bash_completion.d/docker && \
curl -fsSL https://github.com/docker/compose/releases/download/1.25.5/docker-compose-linux-x86_64 > /usr/bin/docker-compose && chmod +x /usr/bin/docker-compose && \
curl -fsSL https://raw.githubusercontent.com/docker/compose/master/contrib/completion/bash/docker-compose > /etc/bash_completion.d/docker-compose && \
# install other utils
git clone https://github.com/brendangregg/perf-tools /tools/perf-tools
COPY . /tools/docker-geek/
ENV IS_DOCKER_GEEK=1
ENV PATH=$PATH:/tools/perf-tools/bin:/tools/docker-geek/scripts