-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
113 lines (88 loc) · 2.92 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
# Pull base image
# https://hub.docker.com/r/alanfranz/centos5-i386/
FROM alanfranz/centos5-i386
LABEL org.opencontainers.image.source https://github.com/castisdev/docker-centos5-i386
RUN sed -i 's/#baseurl=http:\/\/mirror.centos.org\/centos\/\$releasever/baseurl=http:\/\/vault.centos.org\/5.11/g' /etc/yum.repos.d/*
RUN sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/*
# Install EPEL repo
RUN yum install -y epel-release; yum -y clean all
RUN sed -i 's/\$arch/i686/g' /etc/yum.repos.d/*
RUN sed -i 's/\$basearch/i386/g' /etc/yum.repos.d/*
# Install
RUN yum makecache
RUN yum install -y sudo
RUN yum install -y wget
RUN yum install -y gcc
RUN yum install -y gcc-c++
RUN yum install -y make
RUN yum install -y unzip
RUN yum install -y openssl-devel
RUN yum install -y git
RUN yum install -y subversion
RUN yum install -y tar
RUN yum install -y boost-devel
RUN yum install -y glibc-devel
RUN yum install -y e2fsprogs-devel
RUN yum install -y gdb
RUN yum install -y valgrind
RUN yum install -y mysql-devel
RUN yum install -y postgresql93-devel
RUN yum install -y curl-devel
RUN yum install -y xz
RUN yum install -y file
RUN yum install -y vim-enhanced
RUN yum install -y unixODBC-devel
RUN yum install -y mysql-connector-odbc
RUN yum install -y sysstat
RUN yum install -y yum-utils
RUN yum install -y bzip2-devel
RUN yum install -y ncurses-devel
RUN yum install -y zlib-devel
RUN yum install -y sqlite-devel
RUN yum install -y readline-devel
RUN yum install -y tk-devel
RUN yum install -y gdbm-devel
RUN yum install -y db4-devel
RUN yum install -y libpcap-devel xz-devel
RUN yum -y clean all
ADD install_xercesc280.sh /script/
RUN /script/install_xercesc280.sh
ADD install_cmake372.sh /script/
RUN /script/install_cmake372.sh
ADD install_devtoolset2.sh /script/
RUN /script/install_devtoolset2.sh
ENV PATH /opt/rh/devtoolset-2/root/usr/bin/:$PATH
ADD install_boost158.sh /script/
RUN /script/install_boost158.sh
ENV BOOST_ROOT /usr/local/boost158
ADD install_cryptopp563.sh /script/
RUN /script/install_cryptopp563.sh
ADD ./install_googletest170.sh /script/
RUN /script/install_googletest170.sh
ADD install_python2713.sh /script/
RUN /script/install_python2713.sh
ADD get-pip.py /scripts/
RUN python2.7 /scripts/get-pip.py
RUN rm -rf /scripts/get-pip.py
RUN pip2.7 install -U pip setuptools
ADD install_python351.sh /script/
RUN /script/install_python351.sh
ADD install_cpptools.sh /script/
RUN /script/install_cpptools.sh
ADD install_cppcheck177.sh /script/
RUN /script/install_cppcheck177.sh
ADD install_zsh531.sh /script/
RUN /script/install_zsh531.sh
ADD install_ninja172.sh /script/
RUN /script/install_ninja172.sh
# set timezone
RUN ln -snf /usr/share/zoneinfo/Asia/Seoul /etc/localtime
# ctail
RUN wget -O - https://raw.githubusercontent.com/castisdev/ctail/master/install.sh --no-check-certificate | bash
# Add root files
ADD .bashrc /root/.bashrc
ADD legacy_mode.sh /root/
# Set environment variables
ENV HOME /root
# Define default command
CMD ["zsh"]