Skip to content

Commit 9f3ab48

Browse files
authored
fix docker images for static linking (#264)
motivation: statically linkning FoundationNetworking and FoundationXML requires the development version of libcurl and libxml2 respectively changes: update 5.5, 5.6 and nightly docker images to pull the relevant development packages of libcurl and libxml2
1 parent f257372 commit 9f3ab48

File tree

23 files changed

+53
-37
lines changed

23 files changed

+53
-37
lines changed

5.5/amazonlinux/2/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,13 @@ RUN yum -y install \
99
glibc-static \
1010
gzip \
1111
libbsd \
12-
libcurl \
12+
libcurl-devel \
1313
libedit \
1414
libicu \
1515
libsqlite \
1616
libstdc++-static \
1717
libuuid \
18-
libxml2 \
18+
libxml2-devel \
1919
tar \
2020
tzdata \
2121
zlib-devel

5.5/centos/7/Dockerfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,12 @@ RUN yum install shadow-utils.x86_64 -y \
88
git \
99
glibc-static \
1010
libbsd-devel \
11+
libcurl-devel \
1112
libedit \
1213
libedit-devel \
1314
libicu-devel \
1415
libstdc++-static \
16+
libxml2-devel \
1517
pkg-config \
1618
python3 \
1719
sqlite \
@@ -51,4 +53,4 @@ RUN set -e; \
5153
&& rm -rf "$GNUPGHOME" swift.tar.gz.sig swift.tar.gz
5254

5355
# Print Installed Swift Version
54-
RUN swift --version
56+
RUN swift --version

5.5/centos/8/Dockerfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,12 @@ RUN yum install --enablerepo=powertools -y \
1010
git \
1111
glibc-static \
1212
libbsd-devel \
13+
libcurl-devel \
1314
libedit \
1415
libedit-devel \
1516
libicu-devel \
1617
libstdc++-static \
18+
libxml2-devel \
1719
pkg-config \
1820
python3 \
1921
sqlite \
@@ -53,4 +55,4 @@ RUN set -e; \
5355
&& rm -rf "$GNUPGHOME" swift.tar.gz.sig swift.tar.gz
5456

5557
# Print Installed Swift Version
56-
RUN swift --version
58+
RUN swift --version

5.5/ubuntu/16.04/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ LABEL Description="Docker Container for the Swift programming language"
55
RUN export DEBIAN_FRONTEND=noninteractive DEBCONF_NONINTERACTIVE_SEEN=true && apt-get -q update && \
66
apt-get -q install -y \
77
libatomic1 \
8-
libcurl3 \
9-
libxml2 \
8+
libcurl3-openssl-dev \
9+
libxml2-dev \
1010
libedit2 \
1111
libsqlite3-0 \
1212
libc6-dev \

5.5/ubuntu/18.04/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ LABEL Description="Docker Container for the Swift programming language"
55
RUN export DEBIAN_FRONTEND=noninteractive DEBCONF_NONINTERACTIVE_SEEN=true && apt-get -q update && \
66
apt-get -q install -y \
77
libatomic1 \
8-
libcurl4 \
9-
libxml2 \
8+
libcurl4-openssl-dev \
9+
libxml2-dev \
1010
libedit2 \
1111
libsqlite3-0 \
1212
libc6-dev \

5.5/ubuntu/20.04/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@ RUN export DEBIAN_FRONTEND=noninteractive DEBCONF_NONINTERACTIVE_SEEN=true && ap
88
git \
99
gnupg2 \
1010
libc6-dev \
11-
libcurl4 \
11+
libcurl4-openssl-dev \
1212
libedit2 \
1313
libgcc-9-dev \
1414
libpython3.8 \
1515
libsqlite3-0 \
1616
libstdc++-9-dev \
17-
libxml2 \
17+
libxml2-dev \
1818
libz3-dev \
1919
pkg-config \
2020
tzdata \

nightly-5.6/amazonlinux/2/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,13 @@ RUN yum -y install \
99
glibc-static \
1010
gzip \
1111
libbsd \
12-
libcurl \
12+
libcurl-devel \
1313
libedit \
1414
libicu \
1515
libsqlite \
1616
libstdc++-static \
1717
libuuid \
18-
libxml2 \
18+
libxml2-devel \
1919
tar \
2020
tzdata \
2121
zlib-devel

nightly-5.6/amazonlinux/2/buildx/Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,13 @@ RUN yum -y install \
99
glibc-static \
1010
gzip \
1111
libbsd \
12-
libcurl \
12+
libcurl-devel \
1313
libedit \
1414
libicu \
1515
libsqlite \
1616
libstdc++-static \
1717
libuuid \
18-
libxml2 \
18+
libxml2-devel \
1919
tar \
2020
tzdata \
2121
zlib-devel
@@ -32,7 +32,7 @@ ARG OS_MAJOR_VER=2
3232
ARG SWIFT_WEBROOT=https://download.swift.org/swift-5.6-branch
3333

3434
# This is a small trick to enable if/else for arm64 and amd64.
35-
# Because of https://bugs.swift.org/browse/SR-14872 we need adjust tar options.
35+
# Because of https://bugs.swift.org/browse/SR-14872 we need adjust tar options.
3636
FROM base AS base-amd64
3737
ARG OS_ARCH_SUFFIX=
3838
ARG ADDITIONAL_TAR_OPTIONS="--strip-components=1"

nightly-5.6/centos/7/Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,12 @@ RUN yum install shadow-utils.x86_64 -y \
88
git \
99
glibc-static \
1010
libbsd-devel \
11+
libcurl-devel \
1112
libedit \
1213
libedit-devel \
1314
libicu-devel \
1415
libstdc++-static \
16+
libxml2-devel \
1517
pkg-config \
1618
python2 \
1719
python3 \

nightly-5.6/centos/8/Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,12 @@ RUN yum install --enablerepo=powertools -y \
1010
git \
1111
glibc-static \
1212
libbsd-devel \
13+
libcurl-devel \
1314
libedit \
1415
libedit-devel \
1516
libicu-devel \
1617
libstdc++-static \
18+
libxml2-devel \
1719
pkg-config \
1820
python2 \
1921
sqlite \

0 commit comments

Comments
 (0)