Add a 4.2.0 dockerfile based on @futurejones'

Use the @futurejones package for ARM 64bit image of Swift 4.2.0.
This commit is contained in:
Helge Heß
2019-01-14 12:54:23 +01:00
parent b4654e8661
commit 28f1e65542
3 changed files with 61 additions and 0 deletions
+13
View File
@@ -0,0 +1,13 @@
# Makefile
all:
@echo "use 'build' target"
build:
time docker build -t helje5/arm64v8-swift:4.2.0 \
-f arm64v8-ubuntu-swift-4.2.0.dockerfile \
$(PWD)/../empty-ctx
docker images | grep helje5/arm64v8
publish:
time docker push helje5/arm64v8-swift:4.2.0
+6
View File
@@ -0,0 +1,6 @@
# Personal Notes on Building the image
Packages:
- https://packagecloud.io/swift-arm/release/packages/ubuntu/bionic/swift4_4.2_arm64.deb
@@ -0,0 +1,42 @@
# Dockerfile
#
# docker build -t helje5/arm64v8-swift:4.2.0 \
# -f arm64v8-4.2.0-futurejones/arm64v8-ubuntu-swift-4.2.0.dockerfile \
# ./empty-ctx
# docker run -i --tty --rm helje5/arm64v8-swift:4.2.0
#
FROM arm64v8/ubuntu:18.04
LABEL maintainer "Helge Heß <me@helgehess.eu>"
ARG SWIFTPKG=https://packagecloud.io/swift-arm/release/packages/ubuntu/bionic/swift4_4.2_arm64.deb
ENV DEBIAN_FRONTEND noninteractive
RUN apt-get update
RUN apt-get upgrade -y
# Funny: libcurl3 provies libcurl.so.4 :-)
# Maybe libpython3.5 makes libpython2.7 obsolete?
RUN apt-get install -y \
git \
libedit2 \
libpython2.7 libcurl4 libxml2 libicu60 \
libc6-dev \
libatomic1 \
libpython3.5 \
curl
RUN bash -c "curl -s https://packagecloud.io/install/repositories/swift-arm/release/script.deb.sh | bash"
RUN apt-get install -y swift4=4.2
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"
RUN useradd -u 501 --create-home --shell /bin/bash swift
USER swift
WORKDIR /home/swift