blob: d22a7e43f129caeb0bedfa0a0edb16ab671149a1 (
plain)
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
|
FROM ubuntu:14.04
RUN apt-get update && apt-get install -y --no-install-recommends \
autoconf \
bison \
build-essential \
bzip2 \
ca-certificates \
cpio \
curl \
file \
git \
gzip \
libreadline-dev \
make \
patch \
pkg-config \
sed \
xz-utils \
zlib1g-dev
# Supported OpenSSL versions: 1.0.1-
RUN mkdir -p /build/openssl
RUN curl -s https://www.openssl.org/source/openssl-1.0.0t.tar.gz | tar -C /build/openssl -xzf - && \
cd /build/openssl/openssl-1.0.0t && \
./Configure \
--openssldir=/opt/openssl/openssl-1.0.0 \
shared linux-x86_64 && \
make && make install_sw
RUN curl -s https://www.openssl.org/source/openssl-1.0.1u.tar.gz | tar -C /build/openssl -xzf - && \
cd /build/openssl/openssl-1.0.1u && \
./Configure \
--openssldir=/opt/openssl/openssl-1.0.1 \
shared linux-x86_64 && \
make && make install_sw
RUN curl -s https://www.openssl.org/source/openssl-1.0.2k.tar.gz | tar -C /build/openssl -xzf - && \
cd /build/openssl/openssl-1.0.2k && \
./Configure \
--openssldir=/opt/openssl/openssl-1.0.2 \
shared linux-x86_64 && \
make && make install_sw
RUN curl -s https://www.openssl.org/source/openssl-1.1.0d.tar.gz | tar -C /build/openssl -xzf - && \
cd /build/openssl/openssl-1.1.0d && \
./Configure \
--prefix=/opt/openssl/openssl-1.1.0 \
enable-crypto-mdebug enable-crypto-mdebug-backtrace \
linux-x86_64 && \
make && make install_sw
# Supported libressl versions: 2.3-
RUN curl -s http://ftp.openbsd.org/pub/OpenBSD/LibreSSL/libressl-2.3.9.tar.gz | tar -C /build/openssl -xzf -
RUN cd /build/openssl/libressl-2.3.9 && \
./configure \
--prefix=/opt/openssl/libressl-2.3 && \
make && make install
RUN curl -s http://ftp.openbsd.org/pub/OpenBSD/LibreSSL/libressl-2.4.4.tar.gz | tar -C /build/openssl -xzf -
RUN cd /build/openssl/libressl-2.4.4 && \
./configure \
--prefix=/opt/openssl/libressl-2.4 && \
make && make install
RUN curl -s http://ftp.openbsd.org/pub/OpenBSD/LibreSSL/libressl-2.5.0.tar.gz | tar -C /build/openssl -xzf -
RUN cd /build/openssl/libressl-2.5.0 && \
./configure \
--prefix=/opt/openssl/libressl-2.5 && \
make && make install
# Supported Ruby versions: 2.3-
RUN mkdir -p /build/ruby
RUN curl -s https://cache.ruby-lang.org/pub/ruby/2.3/ruby-2.3.3.tar.gz | tar -C /build/ruby -xzf - && \
cd /build/ruby/ruby-2.3.3 && \
autoconf && ./configure \
--without-openssl \
--prefix=/opt/ruby/ruby-2.3 \
--disable-install-doc && \
make && make install
RUN curl -s https://cache.ruby-lang.org/pub/ruby/2.4/ruby-2.4.0.tar.gz | tar -C /build/ruby -xzf - && \
cd /build/ruby/ruby-2.4.0 && \
autoconf && ./configure \
--without-openssl \
--prefix=/opt/ruby/ruby-2.4 \
--disable-install-doc && \
make && make install
ONBUILD ADD . /home/openssl/code
ONBUILD WORKDIR /home/openssl/code
COPY init.sh /home/openssl/init.sh
ENTRYPOINT ["/home/openssl/init.sh"]
|