Skip to content

Setup a swift.conf ld.so config #224

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions 5.3/ubuntu/16.04/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -55,5 +55,11 @@ RUN set -e; \
&& rm -rf "$GNUPGHOME" swift.tar.gz.sig swift.tar.gz \
&& apt-get purge --auto-remove -y curl


RUN bash -c "echo '/usr/lib/swift/linux' > /etc/ld.so.conf.d/swift.conf;\
echo '/usr/lib/swift/clang/lib/linux' >> /etc/ld.so.conf.d/swift.conf;\
echo '/usr/lib/swift/pm' >> /etc/ld.so.conf.d/swift.conf;\
ldconfig"

# Print Installed Swift Version
RUN swift --version
5 changes: 5 additions & 0 deletions 5.3/ubuntu/16.04/slim/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -44,3 +44,8 @@ RUN set -e; \
&& chmod -R o+r /usr/lib/swift \
&& rm -rf "$GNUPGHOME" swift.tar.gz.sig swift.tar.gz \
&& apt-get purge --auto-remove -y curl

RUN bash -c "echo '/usr/lib/swift/linux' > /etc/ld.so.conf.d/swift.conf;\
echo '/usr/lib/swift/clang/lib/linux' >> /etc/ld.so.conf.d/swift.conf;\
echo '/usr/lib/swift/pm' >> /etc/ld.so.conf.d/swift.conf;\
ldconfig"
6 changes: 6 additions & 0 deletions 5.3/ubuntu/18.04/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -55,5 +55,11 @@ RUN set -e; \
&& rm -rf "$GNUPGHOME" swift.tar.gz.sig swift.tar.gz \
&& apt-get purge --auto-remove -y curl


RUN bash -c "echo '/usr/lib/swift/linux' > /etc/ld.so.conf.d/swift.conf;\
echo '/usr/lib/swift/clang/lib/linux' >> /etc/ld.so.conf.d/swift.conf;\
echo '/usr/lib/swift/pm' >> /etc/ld.so.conf.d/swift.conf;\
ldconfig"

# Print Installed Swift Version
RUN swift --version
5 changes: 5 additions & 0 deletions 5.3/ubuntu/18.04/slim/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -44,3 +44,8 @@ RUN set -e; \
&& chmod -R o+r /usr/lib/swift \
&& rm -rf "$GNUPGHOME" swift.tar.gz.sig swift.tar.gz \
&& apt-get purge --auto-remove -y curl gnupg

RUN bash -c "echo '/usr/lib/swift/linux' > /etc/ld.so.conf.d/swift.conf;\
echo '/usr/lib/swift/clang/lib/linux' >> /etc/ld.so.conf.d/swift.conf;\
echo '/usr/lib/swift/pm' >> /etc/ld.so.conf.d/swift.conf;\
ldconfig"
5 changes: 5 additions & 0 deletions 5.3/ubuntu/20.04/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -56,5 +56,10 @@ RUN set -e; \
&& rm -rf "$GNUPGHOME" swift.tar.gz.sig swift.tar.gz \
&& apt-get purge --auto-remove -y curl

RUN bash -c "echo '/usr/lib/swift/linux' > /etc/ld.so.conf.d/swift.conf;\
echo '/usr/lib/swift/clang/lib/linux' >> /etc/ld.so.conf.d/swift.conf;\
echo '/usr/lib/swift/pm' >> /etc/ld.so.conf.d/swift.conf;\
ldconfig"

# Print Installed Swift Version
RUN swift --version
8 changes: 7 additions & 1 deletion 5.3/ubuntu/20.04/slim/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,10 @@ RUN set -e; \
&& tar -xzf swift.tar.gz --directory / --strip-components=1 $SWIFT_VERSION-$SWIFT_PLATFORM/usr/lib/swift/linux \
&& chmod -R o+r /usr/lib/swift \
&& rm -rf "$GNUPGHOME" swift.tar.gz.sig swift.tar.gz \
&& apt-get purge --auto-remove -y curl gnupg
&& apt-get purge --auto-remove -y curl gnupg

RUN bash -c "echo '/usr/lib/swift/linux' > /etc/ld.so.conf.d/swift.conf;\
echo '/usr/lib/swift/clang/lib/linux' >> /etc/ld.so.conf.d/swift.conf;\
echo '/usr/lib/swift/pm' >> /etc/ld.so.conf.d/swift.conf;\
ldconfig"

6 changes: 6 additions & 0 deletions nightly-5.3/ubuntu/16.04/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,12 @@ RUN set -e; \
&& rm -rf "$GNUPGHOME" latest_toolchain.tar.gz.sig latest_toolchain.tar.gz \
&& apt-get purge --auto-remove -y curl


RUN bash -c "echo '/usr/lib/swift/linux' > /etc/ld.so.conf.d/swift.conf;\
echo '/usr/lib/swift/clang/lib/linux' >> /etc/ld.so.conf.d/swift.conf;\
echo '/usr/lib/swift/pm' >> /etc/ld.so.conf.d/swift.conf;\
ldconfig"

# Print Installed Swift Version
RUN swift --version

Expand Down
6 changes: 6 additions & 0 deletions nightly-5.3/ubuntu/18.04/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,12 @@ RUN set -e; \
&& rm -rf "$GNUPGHOME" latest_toolchain.tar.gz.sig latest_toolchain.tar.gz \
&& apt-get purge --auto-remove -y curl


RUN bash -c "echo '/usr/lib/swift/linux' > /etc/ld.so.conf.d/swift.conf;\
echo '/usr/lib/swift/clang/lib/linux' >> /etc/ld.so.conf.d/swift.conf;\
echo '/usr/lib/swift/pm' >> /etc/ld.so.conf.d/swift.conf;\
ldconfig"

# Print Installed Swift Version
RUN swift --version

Expand Down
6 changes: 6 additions & 0 deletions nightly-5.3/ubuntu/20.04/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,12 @@ RUN set -e; \
&& rm -rf "$GNUPGHOME" latest_toolchain.tar.gz.sig latest_toolchain.tar.gz \
&& apt-get purge --auto-remove -y curl


RUN bash -c "echo '/usr/lib/swift/linux' > /etc/ld.so.conf.d/swift.conf;\
echo '/usr/lib/swift/clang/lib/linux' >> /etc/ld.so.conf.d/swift.conf;\
echo '/usr/lib/swift/pm' >> /etc/ld.so.conf.d/swift.conf;\
ldconfig"

# Print Installed Swift Version
RUN swift --version

Expand Down
6 changes: 6 additions & 0 deletions nightly-5.4/ubuntu/16.04/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,12 @@ RUN set -e; \
&& rm -rf "$GNUPGHOME" latest_toolchain.tar.gz.sig latest_toolchain.tar.gz \
&& apt-get purge --auto-remove -y curl


RUN bash -c "echo '/usr/lib/swift/linux' > /etc/ld.so.conf.d/swift.conf;\
echo '/usr/lib/swift/clang/lib/linux' >> /etc/ld.so.conf.d/swift.conf;\
echo '/usr/lib/swift/pm' >> /etc/ld.so.conf.d/swift.conf;\
ldconfig"

# Print Installed Swift Version
RUN swift --version

Expand Down
6 changes: 6 additions & 0 deletions nightly-5.4/ubuntu/18.04/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,12 @@ RUN set -e; \
&& rm -rf "$GNUPGHOME" latest_toolchain.tar.gz.sig latest_toolchain.tar.gz \
&& apt-get purge --auto-remove -y curl


RUN bash -c "echo '/usr/lib/swift/linux' > /etc/ld.so.conf.d/swift.conf;\
echo '/usr/lib/swift/clang/lib/linux' >> /etc/ld.so.conf.d/swift.conf;\
echo '/usr/lib/swift/pm' >> /etc/ld.so.conf.d/swift.conf;\
ldconfig"

# Print Installed Swift Version
RUN swift --version

Expand Down
6 changes: 6 additions & 0 deletions nightly-5.4/ubuntu/20.04/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,12 @@ RUN set -e; \
&& rm -rf "$GNUPGHOME" latest_toolchain.tar.gz.sig latest_toolchain.tar.gz \
&& apt-get purge --auto-remove -y curl


RUN bash -c "echo '/usr/lib/swift/linux' > /etc/ld.so.conf.d/swift.conf;\
echo '/usr/lib/swift/clang/lib/linux' >> /etc/ld.so.conf.d/swift.conf;\
echo '/usr/lib/swift/pm' >> /etc/ld.so.conf.d/swift.conf;\
ldconfig"

# Print Installed Swift Version
RUN swift --version

Expand Down
6 changes: 6 additions & 0 deletions nightly-main/ubuntu/16.04/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,12 @@ RUN set -e; \
&& rm -rf "$GNUPGHOME" latest_toolchain.tar.gz.sig latest_toolchain.tar.gz \
&& apt-get purge --auto-remove -y curl


RUN bash -c "echo '/usr/lib/swift/linux' > /etc/ld.so.conf.d/swift.conf;\
echo '/usr/lib/swift/clang/lib/linux' >> /etc/ld.so.conf.d/swift.conf;\
echo '/usr/lib/swift/pm' >> /etc/ld.so.conf.d/swift.conf;\
ldconfig"

# Print Installed Swift Version
RUN swift --version

Expand Down
6 changes: 6 additions & 0 deletions nightly-main/ubuntu/18.04/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,12 @@ RUN set -e; \
&& rm -rf "$GNUPGHOME" latest_toolchain.tar.gz.sig latest_toolchain.tar.gz \
&& apt-get purge --auto-remove -y curl


RUN bash -c "echo '/usr/lib/swift/linux' > /etc/ld.so.conf.d/swift.conf;\
echo '/usr/lib/swift/clang/lib/linux' >> /etc/ld.so.conf.d/swift.conf;\
echo '/usr/lib/swift/pm' >> /etc/ld.so.conf.d/swift.conf;\
ldconfig"

# Print Installed Swift Version
RUN swift --version

Expand Down
6 changes: 6 additions & 0 deletions nightly-main/ubuntu/20.04/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,12 @@ RUN set -e; \
&& rm -rf "$GNUPGHOME" latest_toolchain.tar.gz.sig latest_toolchain.tar.gz \
&& apt-get purge --auto-remove -y curl


RUN bash -c "echo '/usr/lib/swift/linux' > /etc/ld.so.conf.d/swift.conf;\
echo '/usr/lib/swift/clang/lib/linux' >> /etc/ld.so.conf.d/swift.conf;\
echo '/usr/lib/swift/pm' >> /etc/ld.so.conf.d/swift.conf;\
ldconfig"

# Print Installed Swift Version
RUN swift --version

Expand Down