-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
93 lines (83 loc) · 1.74 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
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
FROM rockylinux:8
# Timezone
RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && \
echo 'Asia/Shanghai' > /etc/timezone
# Install some basic dependencies
RUN dnf -y install epel-release && \
dnf -y upgrade --refresh && \
dnf -y install bind-utils \
wget \
dnf-utils \
net-tools \
openssl \
procps-ng \
python3 \
git \
clang-tools-extra \
clang \
policycoreutils
# Install Columnstor build dependencies
RUN yum -y groupinstall "Development Tools" \
&& yum config-manager --set-enabled powertools \
&& yum install -y checkpolicy \
cmake \
epel-release \
bison \
ncurses-devel \
readline-devel \
perl-devel \
openssl-devel \
libxml2-devel \
gperf \
libaio-devel \
libevent-devel \
tree \
wget \
pam-devel \
snappy-devel \
libicu \
vim \
wget \
strace \
ltrace \
gdb \
rsyslog \
net-tools \
openssh-server \
expect \
boost \
perl-DBI \
libicu \
boost-devel \
initscripts \
jemalloc-devel \
libcurl-devel \
gtest-devel \
cppunit-devel \
systemd-devel \
lzo-devel \
xz-devel \
lz4-devel \
bzip2-devel \
pcre2-devel \
flex \
graphviz \
gcc-toolset-12
# Copy config files & scripts
COPY config /root/
COPY scripts/install_deps \
scripts/mcs-status \
scripts/mcs-start \
scripts/mcs-stop \
scripts/mcs-restart /usr/bin/
COPY scripts/do_cmake.sh /root/
# Make scripts executable
RUN chmod +x /usr/bin/install_deps \
/usr/bin/mcs-status \
/usr/bin/mcs-start \
/usr/bin/mcs-stop \
/usr/bin/mcs-restart \
/root/do_cmake.sh
# Clean system and reduce size
RUN dnf clean all && \
rm -rf /var/cache/dnf