Skip to content

Commit b4dc363

Browse files
Wesley Schwenglezakame
authored andcommitted
Adds out of the box SSL support w/ IO::Socket::SSL
The new Dockerfiles preinstalls IO::Socket::SSL with its dependencies to give users out of the box SSL support. For slim builds we also keep the lib32z1-dev libssl-dev packages so when people run `cpanm Net::SSLeay` and it can be upgraded it won't cause issues. It slightly increases the resulting image from 144MB to 197MB Signed-off-by: Wesley Schwengle <wesley@opperschaap.net>
1 parent 9e28e52 commit b4dc363

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

generate.pl

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,12 +56,14 @@ sub die_with_sample {
5656
patch \
5757
# procps \
5858
# zlib1g-dev \
59-
xz-utils
59+
xz-utils \
60+
lib32z1-dev \
61+
libssl-dev
6062
EOF
6163
chomp $docker_slim_run_install;
6264

6365
my $docker_slim_run_purge = <<'EOF';
64-
savedPackages="make netbase" \
66+
savedPackages="ca-certificates make netbase lib32z1-dev libssl-dev" \
6567
&& apt-mark auto '.*' > /dev/null \
6668
&& apt-mark manual $savedPackages \
6769
&& apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false \
@@ -297,6 +299,7 @@ =head1 DESCRIPTION
297299
&& curl -LO {{cpanm_dist_url}} \
298300
&& echo '{{cpanm_dist_sha256}} *{{cpanm_dist_name}}.tar.gz' | sha256sum -c - \
299301
&& tar -xzf {{cpanm_dist_name}}.tar.gz && cd {{cpanm_dist_name}} && perl bin/cpanm . && cd /root \
302+
&& cpanm IO::Socket::SSL \
300303
&& {{docker_slim_run_purge}} \
301304
&& rm -fr ./cpanm /root/.cpanm /usr/src/perl /usr/src/{{cpanm_dist_name}}* /tmp/*
302305

0 commit comments

Comments
 (0)