Skip to content

Commit

Permalink
Add OpenSSL 1.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
rvagg committed Oct 24, 2019
1 parent 8b68cb9 commit 86be27c
Show file tree
Hide file tree
Showing 2 changed files with 55 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ Each container sets up a minimal build environment required to test a particular
* [`rvagg/node-ci-containers:ubuntu1604`](https://github.com/rvagg/node-ci-containers/blob/master/ubuntu1604) - Ubuntu 16.04 (Xenial) LTS with basic build tools
* [`rvagg/node-ci-containers:ubuntu1604-gcc6`](https://github.com/rvagg/node-ci-containers/blob/master/ubuntu1604-gcc6) - Ubuntu 16.04 (Xenial) LTS with basic build tools and GCC 6 from the Ubuntu toolchain test PPA linked as the default
* [`rvagg/node-ci-containers:ubuntu1804`](https://github.com/rvagg/node-ci-containers/blob/master/ubuntu1804) - Ubuntu 18.04 (Bionic) LTS with basic buils tools and some extras, intended to be the generic workhorse where a test doesn't require a particular distribution or additional tools
* [`rvagg/node-ci-containers:ubuntu1804-openssl110`](https://github.com/rvagg/node-ci-containers/blob/master/ubuntu1804-openssl110) - Ubuntu 18.04 (Bionic) with basic build tools and OpenSSL 1.1.0 compiled and ready for shared-library linking in `$OPENSSL110DIR`.
* [`rvagg/node-ci-containers:ubuntu1804-openssl111`](https://github.com/rvagg/node-ci-containers/blob/master/ubuntu1804-openssl111) - Ubuntu 18.04 (Bionic) with basic build tools and OpenSSL 1.1.1 compiled and ready for shared-library linking in `$OPENSSL111DIR`.
* [`rvagg/node-ci-containers:ubuntu1804-zlib`](https://github.com/rvagg/node-ci-containers/blob/master/ubuntu1804-zlib) - Ubuntu 18.04 (Bionic) with basic build tools and zlib 1.2 compiled and ready for shared-library linking in `$ZLIB12DIR`.
* [`rvagg/node-ci-containers:ubuntu1910`](https://github.com/rvagg/node-ci-containers/blob/master/ubuntu1910) - Ubuntu 19.10 with basic build tools
Expand Down
54 changes: 54 additions & 0 deletions ubuntu1804-openssl110/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
FROM ubuntu:18.04

ENV LC_ALL=C DEBIAN_FRONTEND=noninteractive

RUN apt-get update && \
apt-get install apt-utils -y && \
apt-get dist-upgrade -y && \
apt-get install -y \
ccache \
g++ \
gcc \
git \
curl \
python-pip \
python3-pip \
libfontconfig1

# Installing ccache doesn't do this for us on Ubuntu but these are
# the defaults that `ninja` uses so it bypasses ccache without these
RUN ln -sf /usr/bin/ccache /usr/lib/ccache/cc && \
ln -sf /usr/bin/ccache /usr/lib/ccache/c++

RUN addgroup --gid 1000 iojs && \
adduser --gid 1000 --uid 1000 --disabled-password --home /home/iojs --shell /bin/bash --gecos iojs iojs

RUN su iojs -c 'mkdir /home/iojs/tmp'

ENV OPENSSL110DIR /opt/openssl-1.1.0l

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.0l

VOLUME /home/iojs/.ccache /home/iojs/workspace

ENV PATH=/usr/lib/ccache:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin \
USER=iojs \
JOBS=2 \
SHELL=/bin/bash \
HOME=/home/iojs \
NODE_COMMON_PIPE=/home/iojs/test.pipe \
NODE_TEST_DIR=/home/iojs/tmp \
OSTYPE=linux-gnu \
OSVARIANT=docker \
DESTCPU=x64 \
ARCH=x64

WORKDIR /home/iojs

USER iojs:iojs

0 comments on commit 86be27c

Please sign in to comment.