-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
123 lines (94 loc) · 2.83 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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
# Pull base image
FROM centos:6
LABEL org.opencontainers.image.source https://github.com/castisdev/docker-centos6
RUN sed -i -e 's/^mirrorlist/#mirrorlist/g' -e 's/^#baseurl=http:\/\/mirror.centos.org\/centos\/$releasever\//baseurl=http:\/\/vault.centos.org\/6.10\//g' /etc/yum.repos.d/CentOS-Base.repo
# set timezone
RUN ln -snf /usr/share/zoneinfo/Asia/Seoul /etc/localtime
# Install EPEL repo
RUN yum install -y epel-release; yum -y clean all
RUN yum -y install http://opensource.wandisco.com/centos/6/git/x86_64/wandisco-git-release-6-1.noarch.rpm; yum -y clean all
# Install
RUN yum install -y \
sudo \
wget \
gcc \
gcc-c++ \
make \
unzip \
openssl-devel \
git \
subversion \
tar \
boost-devel \
boost-static \
glibc-devel \
libuuid-devel \
gdb \
valgrind \
mysql-devel \
postgresql93-devel \
curl-devel \
xz \
file \
vim-enhanced \
unixODBC-devel \
mysql-connector-odbc \
sysstat \
yum-utils \
gperftools-devel \
golang \
ccache \
libunwind-devel \
patch \
&& yum -y clean all
# Install Intel TBB
RUN yum-config-manager -y --add-repo https://yum.repos.intel.com/tbb/setup/intel-tbb.repo \
&& yum install -y tbb-devel \
&& yum -y clean all
ADD install_devtoolset9.sh /script/
RUN /script/install_devtoolset9.sh
SHELL [ "scl", "enable", "devtoolset-9" ]
ADD install_cmake3241.sh /script/
RUN /script/install_cmake3241.sh
ADD install_libbacktrace.sh /script/
RUN /script/install_libbacktrace.sh
ADD install_boost180.sh /script/
RUN /script/install_boost180.sh
ENV Boost_DIR /usr/local/boost_1_80_0
ADD install_cryptopp870.sh /script/
RUN /script/install_cryptopp870.sh
ADD install_googletest1121.sh /script/
RUN /script/install_googletest1121.sh
ADD install_openssl111q.sh /script/
RUN /script/install_openssl111q.sh
ADD install_python2718.sh /script/
RUN /script/install_python2718.sh
ADD install_python3107.el6.sh /script/
RUN /script/install_python3107.el6.sh
ADD install_cpptools.sh /script/
RUN /script/install_cpptools.sh
ADD install_cppcheck28.sh /script/
RUN /script/install_cppcheck28.sh
ADD install_zsh59.el6.sh /script/
RUN /script/install_zsh59.el6.sh
ADD install_ninja1110.sh /script/
RUN /script/install_ninja1110.sh
ADD install_ffmpeg51.el6.sh /script/
RUN /script/install_ffmpeg51.el6.sh
ADD install_golang119.sh /script/
RUN /script/install_golang119.sh
# Set environment variables
ENV HOME /root
ENV PATH="${PATH}:${HOME}/go/bin:/usr/local/go/bin"
ADD install_libwebp124.sh /script/
RUN /script/install_libwebp124.sh
ADD install_wrk420.sh /script/
RUN /script/install_wrk420.sh
ADD install_protobuf215.sh /script/
RUN /script/install_protobuf215.sh
# ctail
RUN wget -O - https://raw.githubusercontent.com/castisdev/ctail/master/install.sh --no-check-certificate | bash
# Add root files
ADD .bashrc /root/.bashrc
# Define default command
CMD ["scl", "enable", "devtoolset-9", "zsh"]