diff --git a/arm64v8-4.2.0-futurejones/Makefile b/arm64v8-4.2.0-futurejones/Makefile new file mode 100644 index 0000000..2c72afa --- /dev/null +++ b/arm64v8-4.2.0-futurejones/Makefile @@ -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 diff --git a/arm64v8-4.2.0-futurejones/README.md b/arm64v8-4.2.0-futurejones/README.md new file mode 100644 index 0000000..4a15aa9 --- /dev/null +++ b/arm64v8-4.2.0-futurejones/README.md @@ -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 diff --git a/arm64v8-4.2.0-futurejones/arm64v8-ubuntu-swift-4.2.0.dockerfile b/arm64v8-4.2.0-futurejones/arm64v8-ubuntu-swift-4.2.0.dockerfile new file mode 100644 index 0000000..3a1efb1 --- /dev/null +++ b/arm64v8-4.2.0-futurejones/arm64v8-ubuntu-swift-4.2.0.dockerfile @@ -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ß " + +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