Skip to content

Commit e9a7849

Browse files
authored
Merge pull request #3 from cpu/cpu-docker-tidy-pt1
docker de-crufting (pt1)
2 parents 4a21751 + c46630e commit e9a7849

File tree

4 files changed

+15
-13
lines changed

4 files changed

+15
-13
lines changed

docker/debian-sid/Dockerfile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@ FROM debian:sid
22

33
RUN apt-get update; apt-get upgrade -y
44
RUN apt-get install -y apt-listchanges \
5-
make openssl libssl-dev libcurl4 libcurl4-openssl-dev \
5+
make openssl libssl-dev libcurl4t64 libcurl4-openssl-dev \
66
gcc subversion git cargo python3 iputils-ping \
7-
libapr1-dev libaprutil1-dev libnghttp2-dev pip \
7+
libapr1-dev libaprutil1-dev libnghttp2-dev \
88
autoconf libtool libtool-bin libpcre3-dev libjansson-dev curl rsync nghttp2-client
99

10-
RUN pip install pytest tqdm pycurl cryptography
10+
RUN apt-get install -y python3-pytest python3-tqdm python3-pycurl python3-cryptography
1111

12-
RUN apt-get install -y apache2 apache2-dev libapache2-mod-md
12+
RUN apt-get install -y apache2 apache2-dev
1313
RUN apt-get install -y cbindgen
1414

1515
COPY docker/debian-sid/bin/* /abetterinternet/bin/
@@ -20,4 +20,4 @@ COPY test/modules /abetterinternet/mod_tls/test/modules
2020
COPY test/pyhttpd /abetterinternet/mod_tls/test/pyhttpd
2121
COPY m4 /abetterinternet/mod_tls/m4
2222

23-
CMD ["/bin/bash", "-c", "/abetterinternet/bin/update.sh"]
23+
CMD ["/bin/bash", "-c", "/abetterinternet/bin/update.sh"]

docker/debian-sid/bin/update.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
TOP=/abetterinternet
44
DATADIR=$TOP/data
5+
RUSTLS_VERSION=0.14.0
56

67
fail() {
78
echo "$@"
@@ -42,8 +43,8 @@ rm -rf rustls-ffi
4243
git clone https://github.com/rustls/rustls-ffi.git rustls-ffi
4344
cd rustls-ffi
4445
git fetch origin
45-
git checkout tags/v0.8.2
46-
make install DESTDIR=$PREFIX || fail
46+
git checkout "tags/v$RUSTLS_VERSION"
47+
make install DESTDIR=$PREFIX CRYPTO_PROVIDER=ring || fail
4748

4849
cd "$TOP/mod_tls" ||fail
4950
if needs_update .installed .; then

docker/ubuntu-focal/Dockerfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@ RUN apt-get update; apt-get upgrade -y
55
RUN apt-get install -y apt-listchanges \
66
make openssl libssl-dev libcurl4 libcurl4-openssl-dev \
77
gcc subversion git cargo cbindgen python3 iputils-ping \
8-
libapr1-dev libaprutil1-dev libnghttp2-dev pip \
8+
libapr1-dev libaprutil1-dev libnghttp2-dev \
99
autoconf libtool libtool-bin libpcre3-dev libjansson-dev curl rsync nghttp2-client
1010

11-
RUN pip install pytest tqdm pycurl cryptography
11+
RUN apt-get install -y python3-pytest python3-tqdm python3-pycurl python3-cryptography
1212

13-
RUN apt-get install -y apache2 apache2-dev libapache2-mod-md
13+
RUN apt-get install -y apache2 apache2-dev
1414

1515
COPY docker/ubuntu-focal/bin/* /abetterinternet/bin/
1616
COPY configure.ac Makefile.am NEWS README* AUTHORS ChangeLog COPYING LICENSE /abetterinternet/mod_tls/
@@ -20,4 +20,4 @@ COPY test/modules /abetterinternet/mod_tls/test/modules
2020
COPY test/pyhttpd /abetterinternet/mod_tls/test/pyhttpd
2121
COPY m4 /abetterinternet/mod_tls/m4
2222

23-
CMD ["/bin/bash", "-c", "/abetterinternet/bin/update.sh"]
23+
CMD ["/bin/bash", "-c", "/abetterinternet/bin/update.sh"]

docker/ubuntu-focal/bin/update.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
TOP=/abetterinternet
44
DATADIR=$TOP/data
5+
RUSTLS_VERSION=0.14.0
56

67
fail() {
78
echo "$@"
@@ -42,8 +43,8 @@ rm -rf rustls-ffi
4243
git clone https://github.com/rustls/rustls-ffi.git rustls-ffi
4344
cd rustls-ffi
4445
git fetch origin
45-
git checkout tags/v0.8.2
46-
make install DESTDIR=$PREFIX || fail
46+
git checkout "tags/v$RUSTLS_VERSION"
47+
make install DESTDIR=$PREFIX CRYPTO_PROVIDER=ring || fail
4748

4849
cd "$TOP/mod_tls" ||fail
4950
if needs_update .installed .; then

0 commit comments

Comments
 (0)