This repository was archived by the owner on Jan 20, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 261
/
Copy pathubuntu20.04.dockerfile
98 lines (88 loc) · 1.9 KB
/
ubuntu20.04.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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
FROM ubuntu:20.04
# Add steps here to set up dependencies
RUN apt-get update && env DEBIAN_FRONTEND=noninteractive apt-get install -y \
apache2-utils \
autoconf \
bison \
build-essential \
clang \
curl \
flex \
gawk \
gdb \
gettext \
git \
jq \
libapr1-dev \
libaprutil1-dev \
libcurl4-openssl-dev \
libelf-dev \
libevent-dev \
libexpat1 \
libexpat1-dev \
libmemcached-tools \
libnss-mdns \
libnuma1 \
libomp-dev \
libpcre2-dev \
libpcre3-dev \
libprotobuf-c-dev \
libssl-dev \
libunwind8 \
libxfixes3 \
libxi6 \
libxml2-dev \
libxrender1 \
libxxf86vm1 \
linux-headers-generic \
meson \
net-tools \
netcat-openbsd \
pkg-config \
protobuf-c-compiler \
pylint3 \
python \
python3-apport \
python3-apt \
python3-breathe \
python3-click \
python3-jinja2 \
python3-lxml \
python3-numpy \
python3-pip \
python3-protobuf \
python3-pyelftools \
python3-pytest \
python3-recommonmark \
python3-scipy \
python3-sphinx-rtd-theme \
python3-toml \
r-base-core \
shellcheck \
sphinx-doc \
sqlite3 \
texinfo \
wget \
zlib1g \
zlib1g-dev
RUN python3 -m pip install \
asv
# Add the user UID:1001, GID:1001, home at /leeroy
RUN \
groupadd -r leeroy -g 1001 && \
useradd -u 1001 -r -g leeroy -m -d /leeroy -c "Leeroy Jenkins" leeroy && \
chmod 755 /leeroy
# Make sure /leeroy can be written by leeroy
RUN chown 1001 /leeroy
# Blow away any random state
RUN rm -f /leeroy/.rnd
# Make a directory for the intel driver
RUN mkdir -p /opt/intel && chown 1001 /opt/intel
# Set the working directory to leeroy home directory
WORKDIR /leeroy
# Specify the user to execute all commands below
USER leeroy
# Set environment variables.
ENV HOME /leeroy
# Define default command.
CMD ["bash"]