-
Notifications
You must be signed in to change notification settings - Fork 2
/
Dockerfile
190 lines (172 loc) · 4.48 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
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
FROM ubuntu:20.04
# Install software needed to build things
RUN apt-get update \
&& apt-get install -y \
autoconf \
bison \
build-essential \
git \
vim \
wget \
&& true
# These 2 are special for some reason
RUN apt-get update \
&& DEBIAN_FRONTEND=noninteractive apt-get install -y \
gettext \
zlib1g-dev \
&& true
# Install shellcheck-0.7.1
RUN cd /root \
&& wget https://github.com/koalaman/shellcheck/releases/download/v0.7.1/shellcheck-v0.7.1.linux.x86_64.tar.xz \
&& tar xf shellcheck-v0.7.1.linux.x86_64.tar.xz \
&& mv shellcheck-v0.7.1/shellcheck /usr/local/bin/ \
&& rm -fr /root/shellcheck* \
&& true
# Build/install bash-3.2.57
RUN cd /root \
&& wget https://ftp.gnu.org/gnu/bash/bash-3.2.57.tar.gz \
&& tar -xzf bash-3.2.57.tar.gz \
&& cd bash-3.2.57 \
&& ./configure --prefix=/bash-3.2 \
&& make \
&& make install \
&& rm -fr /root/bash* \
&& true
# Build/install bash-4.0
RUN cd /root \
&& wget https://ftp.gnu.org/gnu/bash/bash-4.0.tar.gz \
&& tar -xzf bash-4.0.tar.gz \
&& cd bash-4.0 \
&& ./configure --prefix=/bash-4.0 \
&& make \
&& make install \
&& rm -fr /root/bash* \
&& true
# Build/install bash-4.1
RUN cd /root \
&& wget https://ftp.gnu.org/gnu/bash/bash-4.1.tar.gz \
&& tar -xzf bash-4.1.tar.gz \
&& cd bash-4.1 \
&& ./configure --prefix=/bash-4.1 \
&& make \
&& make install \
&& rm -fr /root/bash* \
&& true
# Build/install bash-4.2
RUN cd /root \
&& wget https://ftp.gnu.org/gnu/bash/bash-4.2.tar.gz \
&& tar -xzf bash-4.2.tar.gz \
&& cd bash-4.2 \
&& ./configure --prefix=/bash-4.2 \
&& make \
&& make install \
&& rm -fr /root/bash* \
&& true
# Build/install bash-4.3
RUN cd /root \
&& wget https://ftp.gnu.org/gnu/bash/bash-4.3.tar.gz \
&& tar -xzf bash-4.3.tar.gz \
&& cd bash-4.3 \
&& ./configure --prefix=/bash-4.3 \
&& make \
&& make install \
&& rm -fr /root/bash* \
&& true
# Build/install bash-4.4
RUN cd /root \
&& wget https://ftp.gnu.org/gnu/bash/bash-4.4.tar.gz \
&& tar -xzf bash-4.4.tar.gz \
&& cd bash-4.4 \
&& ./configure --prefix=/bash-4.4 \
&& make \
&& make install \
&& rm -fr /root/bash* \
&& true
# Build/install bash-5.0
RUN cd /root \
&& wget https://ftp.gnu.org/gnu/bash/bash-5.0.tar.gz \
&& tar -xzf bash-5.0.tar.gz \
&& cd bash-5.0 \
&& ./configure --prefix=/bash-5.0 \
&& make \
&& make install \
&& rm -fr /root/bash* \
&& true
# Build/install bash-5.1-rc1
RUN cd /root \
&& wget https://ftp.gnu.org/gnu/bash/bash-5.1-rc1.tar.gz \
&& tar -xzf bash-5.1-rc1.tar.gz \
&& cd bash-5.1-rc1 \
&& ./configure --prefix=/bash-5.1 \
&& make \
&& make install \
&& rm -fr /root/bash* \
&& true
# Build/install openssl-1.0.2l
RUN cd /root \
&& wget https://www.openssl.org/source/openssl-1.0.2l.tar.gz \
&& tar xf openssl-1.0.2l.tar.gz \
&& cd openssl-1.0.2l \
&& ./config \
&& make \
&& make install \
&& rm -fr /root/openssl* \
&& true
# Build/install git-2.7.4
RUN cd /root \
&& wget https://mirrors.edge.kernel.org/pub/software/scm/git/git-2.7.4.tar.xz \
&& tar xf git-2.7.4.tar.xz \
&& cd git-2.7.4 \
&& make configure \
&& ./configure --prefix=/git-2.7 \
&& make NO_TCLTK=1 \
&& make install \
&& rm -fr /root/git* \
&& true
# Build/install openssl-1.1.1h
RUN cd /root \
&& wget https://www.openssl.org/source/openssl-1.1.1h.tar.gz \
&& tar xf openssl-1.1.1h.tar.gz \
&& cd openssl-1.1.1h \
&& ./config --prefix=/usr/local/ssl --openssldir=/usr/local/ssl shared zlib \
&& make \
&& make install \
&& rm -fr /root/openssl* \
&& true
# Build/install git-2.17.1
RUN cd /root \
&& wget https://mirrors.edge.kernel.org/pub/software/scm/git/git-2.17.1.tar.xz \
&& tar xf git-2.17.1.tar.xz \
&& cd git-2.17.1 \
&& make configure \
&& ./configure --prefix=/git-2.17 \
&& make \
&& make install \
&& rm -fr /root/git* \
&& true
# Build/install git-2.25.1
RUN cd /root \
&& wget https://mirrors.edge.kernel.org/pub/software/scm/git/git-2.25.1.tar.xz \
&& tar xf git-2.25.1.tar.xz \
&& cd git-2.25.1 \
&& make configure \
&& ./configure --prefix=/git-2.25 \
&& make \
&& make install \
&& rm -fr /root/git* \
&& true
# Build/install git-2.29.2
RUN cd /root \
&& wget https://mirrors.edge.kernel.org/pub/software/scm/git/git-2.29.2.tar.xz \
&& tar xf git-2.29.2.tar.xz \
&& cd git-2.29.2 \
&& make configure \
&& ./configure --prefix=/git-2.29 \
&& make \
&& make install \
&& rm -fr /root/git* \
&& true
# Minimal git config
RUN git config --global user.email "you@example.com" \
&& git config --global user.name "Your Name" \
&& true