Skip to content

Commit

Permalink
ansible: Alpine 3.12, OpenSSL 1.1.1g, remove OpenSSL 1.0.2 and FIPS
Browse files Browse the repository at this point in the history
  • Loading branch information
rvagg committed Jun 24, 2020
1 parent d4b074c commit 41d831d
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 35 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM alpine:3.10
FROM alpine:3.12

ENV LC_ALL C
ENV USER {{ server_user }}
Expand Down Expand Up @@ -27,26 +27,27 @@ RUN apk add --no-cache --virtual .build-deps \
libgcc \
linux-headers \
make \
paxctl \
python \
python3 \
tar \
ccache \
openjdk8 \
git \
procps \
openssh-client \
py2-pip \
py3-pip \
bash \
automake \
libtool \
autoconf

RUN pip install tap2junit
RUN pip3 install tap2junit

RUN addgroup -g {{ server_user_gid.stdout_lines[0] }} {{ server_user }}

RUN adduser -G {{ server_user }} -D -u {{ server_user_uid.stdout_lines[0] }} {{ server_user }}

RUN ln -s /usr/bin/python3 /usr/local/bin/python

VOLUME /home/{{ server_user }}/ /home/{{ server_user }}/.ccache

USER iojs:iojs
Expand Down
40 changes: 10 additions & 30 deletions ansible/roles/docker/templates/ubuntu1804_sharedlibs.Dockerfile.j2
Original file line number Diff line number Diff line change
Expand Up @@ -34,45 +34,25 @@ RUN addgroup --gid {{ server_user_gid.stdout_lines[0] }} {{ server_user }}

RUN adduser --gid {{ server_user_gid.stdout_lines[0] }} --uid {{ server_user_uid.stdout_lines[0] }} --disabled-password --gecos {{ server_user }} {{ server_user }}

ENV OPENSSL102DIR /opt/openssl-1.0.2r
ENV OPENSSL110DIR /opt/openssl-1.1.0l

RUN mkdir -p /tmp/openssl_1.0.2r && \
cd /tmp/openssl_1.0.2r && \
curl -sL https://www.openssl.org/source/openssl-1.0.2r.tar.gz | tar zxv --strip=1 && \
./Configure shared linux-x86_64 --prefix=$OPENSSL102DIR -fPIC && \
make -j 6 && \
make install && \
rm -rf /tmp/openssl_1.0.r

ENV OPENSSL110DIR /opt/openssl-1.1.0j

RUN mkdir -p /tmp/openssl_1.1.0j && \
cd /tmp/openssl_1.1.0j && \
curl -sL https://www.openssl.org/source/openssl-1.1.0j.tar.gz | tar zxv --strip=1 && \
RUN mkdir -p /tmp/openssl_1.1.0l && \
cd /tmp/openssl_1.1.0l && \
curl -sL https://www.openssl.org/source/openssl-1.1.0l.tar.gz | tar zxv --strip=1 && \
./config --prefix=$OPENSSL110DIR && \
make -j 6 && \
make install && \
rm -rf /tmp/openssl_1.1.0j
rm -rf /tmp/openssl_1.1.0l

ENV OPENSSL111DIR /opt/openssl-1.1.1b
ENV OPENSSL111DIR /opt/openssl-1.1.1g

RUN mkdir -p /tmp/openssl_1.1.1b && \
cd /tmp/openssl_1.1.1b && \
curl -sL https://www.openssl.org/source/openssl-1.1.1b.tar.gz | tar zxv --strip=1 && \
RUN mkdir -p /tmp/openssl_1.1.1g && \
cd /tmp/openssl_1.1.1g && \
curl -sL https://www.openssl.org/source/openssl-1.1.1g.tar.gz | tar zxv --strip=1 && \
./config --prefix=$OPENSSL111DIR && \
make -j 6 && \
make install && \
rm -rf /tmp/openssl_1.1.1b

ENV FIPS20DIR /opt/openssl-fips_2.0.16

RUN FIPSDIR=$FIPS20DIR mkdir -p /tmp/openssl-fips_2.0.16 && \
cd /tmp/openssl-fips_2.0.16 && \
curl -sL https://openssl.org/source/openssl-fips-2.0.16.tar.gz | tar zxv --strip=1 && \
./config --prefix=$FIPS20DIR && \
make && \
make install && \
rm -rf /tmp/openssl-fips_2.0.16
rm -rf /tmp/openssl_1.1.1g

ENV ZLIB12DIR /opt/zlib_1.2.11

Expand Down
1 change: 1 addition & 0 deletions jenkins/scripts/VersionSelectorScript.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ def buildExclusions = [
[ /^ubuntu1404-32/, anyType, gte(10) ], // 32-bit linux for <10 only
[ /^ubuntu1404-64/, anyType, gte(12) ],
[ /^ubuntu1604-32/, anyType, gte(10) ], // 32-bit linux for <10 only
[ /^alpine-latest-x64$/, anyType, lt(13) ], // Alpine 3.12 doesn't have Python 2

// Linux PPC LE ------------------------------------------
[ /^centos7-ppcle/, anyType, lt(10) ],
Expand Down

0 comments on commit 41d831d

Please sign in to comment.