-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile_CentOS7
More file actions
17 lines (17 loc) · 985 Bytes
/
Dockerfile_CentOS7
File metadata and controls
17 lines (17 loc) · 985 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
FROM amd64/centos:7
RUN yum update -y && \
yum install openssl-devel make unzip wget boost-devel boost-static libluajit-5.1-dev -y && \
yum install epel-release -y && \
yum install libnghttp2-devel rapidjson-devel cmake3 -y && \
yum install centos-release-scl -y && \
yum install devtoolset-8-gcc devtoolset-8-gcc-c++ -y && \
wget https://github.com/wallyatgithub/maock/archive/refs/heads/main.zip && \
unzip main.zip && \
scl enable devtoolset-8 -- mkdir maock-main/build && \
scl enable devtoolset-8 -- cmake3 -S maock-main -B maock-main/build && \
scl enable devtoolset-8 -- cmake3 --build maock-main/build && \
yum remove git make unzip wget boost-devel boost-static libluajit-5.1-dev cmake3 devtoolset-8-gcc devtoolset-8-gcc-c++ centos-release-scl -y && \
cp maock-main/build/maock /usr/bin/ && \
mkdir -p /usr/share/maock/ && \
cp maock-main/H2Server_Config_Schema.json /usr/share/maock/ && \
rm -rf maock-main main.zip