Michael Housh michael
  • Joined on 2024-04-01

swift-dev-container (0.2.1)

Published 2026-02-02 14:16:28 +00:00 by michael in michael/swift-dev-container

Installation

docker pull git.housh.dev/michael/swift-dev-container:0.2.1
sha256:29c1de9549f76f7409fdc9a8c56d59cb4a4838832e9da8b9622e2c6ed3d1ca78

Images

Digest OS / Arch Size
3602a4aee8 linux/arm64 1.2 GiB

Image Layers ( linux/arm64)

ARG RELEASE
ARG LAUNCHPAD_BUILD_ARCH
LABEL org.opencontainers.image.ref.name=ubuntu
LABEL org.opencontainers.image.version=24.04
ADD file:6089c6bede9eca8ec4f424e5798a0ae0712a6fe38c9b97f9afb9d24d9675024e in /
CMD ["/bin/bash"]
LABEL maintainer=Swift Infrastructure <swift-infrastructure@forums.swift.org>
LABEL description=Docker Container for the Swift programming language
RUN /bin/sh -c export DEBIAN_FRONTEND=noninteractive DEBCONF_NONINTERACTIVE_SEEN=true && apt-get -q update && apt-get -q install -y binutils git unzip gnupg2 libc6-dev libcurl4-openssl-dev libedit2 libgcc-13-dev libpython3-dev libsqlite3-0 libstdc++-13-dev libxml2-dev libncurses-dev libz3-dev pkg-config tzdata zlib1g-dev && rm -r /var/lib/apt/lists/* # buildkit
ARG SWIFT_SIGNING_KEY=52BB7E3DE28A71BE22EC05FFEF80A866B47A981F
ARG SWIFT_PLATFORM=ubuntu24.04
ARG SWIFT_BRANCH=swift-6.2.3-release
ARG SWIFT_VERSION=swift-6.2.3-RELEASE
ARG SWIFT_WEBROOT=https://download.swift.org
ENV SWIFT_SIGNING_KEY=52BB7E3DE28A71BE22EC05FFEF80A866B47A981F SWIFT_PLATFORM=ubuntu24.04 SWIFT_BRANCH=swift-6.2.3-release SWIFT_VERSION=swift-6.2.3-RELEASE SWIFT_WEBROOT=https://download.swift.org
RUN |5 SWIFT_SIGNING_KEY=52BB7E3DE28A71BE22EC05FFEF80A866B47A981F SWIFT_PLATFORM=ubuntu24.04 SWIFT_BRANCH=swift-6.2.3-release SWIFT_VERSION=swift-6.2.3-RELEASE SWIFT_WEBROOT=https://download.swift.org /bin/sh -c set -e; ARCH_NAME="$(dpkg --print-architecture)"; url=; case "${ARCH_NAME##*-}" in 'amd64') OS_ARCH_SUFFIX=''; ;; 'arm64') OS_ARCH_SUFFIX='-aarch64'; ;; *) echo >&2 "error: unsupported architecture: '$ARCH_NAME'"; exit 1 ;; esac; SWIFT_WEBDIR="$SWIFT_WEBROOT/$SWIFT_BRANCH/$(echo $SWIFT_PLATFORM | tr -d .)$OS_ARCH_SUFFIX" && SWIFT_BIN_URL="$SWIFT_WEBDIR/$SWIFT_VERSION/$SWIFT_VERSION-$SWIFT_PLATFORM$OS_ARCH_SUFFIX.tar.gz" && SWIFT_SIG_URL="$SWIFT_BIN_URL.sig" && export DEBIAN_FRONTEND=noninteractive && apt-get -q update && apt-get -q install -y curl && rm -rf /var/lib/apt/lists/* && export GNUPGHOME="$(mktemp -d)" && curl -fsSL "$SWIFT_BIN_URL" -o swift.tar.gz "$SWIFT_SIG_URL" -o swift.tar.gz.sig && gpg --batch --quiet --keyserver keyserver.ubuntu.com --recv-keys "$SWIFT_SIGNING_KEY" && gpg --batch --verify swift.tar.gz.sig swift.tar.gz && tar -xzf swift.tar.gz --directory / --strip-components=1 && chmod -R o+r /usr/lib/swift && rm -rf "$GNUPGHOME" swift.tar.gz.sig swift.tar.gz && apt-get purge --auto-remove -y curl # buildkit
RUN |5 SWIFT_SIGNING_KEY=52BB7E3DE28A71BE22EC05FFEF80A866B47A981F SWIFT_PLATFORM=ubuntu24.04 SWIFT_BRANCH=swift-6.2.3-release SWIFT_VERSION=swift-6.2.3-RELEASE SWIFT_WEBROOT=https://download.swift.org /bin/sh -c swift --version # buildkit
RUN /bin/sh -c export DEBIAN_FRONTEND=noninteractive DEBCONF_NONINTERACTIVE_SEEN=true && apt-get -q update && apt-get -q dist-upgrade -y && apt-get -q install -y curl direnv eza fzf ripgrep zsh && rm -rf /var/lib/apt/lists/* # buildkit
RUN /bin/sh -c touch /var/mail/ubuntu && chown ubuntu /var/mail/ubuntu && userdel -r ubuntu || true # buildkit
RUN /bin/sh -c groupadd --gid 1000 swift && useradd -s /bin/zsh --uid 1000 --gid 1000 -m swift # buildkit
COPY /root/.cargo/bin/starship /usr/local/bin/starship # buildkit
COPY /root/.cargo/bin/bob /home/swift/.local/bin/bob # buildkit
COPY /root/.local/share/bob /home/swift/.local/share/bob # buildkit
RUN /bin/sh -c chown -R swift:swift /home/swift/.local # buildkit
USER swift

Labels

Key Value
description Docker Container for the Swift programming language
maintainer Swift Infrastructure <swift-infrastructure@forums.swift.org>
org.opencontainers.image.created 2026-02-02T14:11:27.502Z
org.opencontainers.image.description Docker container for swift development.
org.opencontainers.image.licenses
org.opencontainers.image.ref.name ubuntu
org.opencontainers.image.revision 5616b2728d1c18cea9872db2be0fe09b8bb1ab76
org.opencontainers.image.source https://git.housh.dev/michael/swift-dev-container
org.opencontainers.image.title swift-dev-container
org.opencontainers.image.url https://git.housh.dev/michael/swift-dev-container
org.opencontainers.image.version 0.2.1
Details
Container
2026-02-02 14:16:28 +00:00
0
OCI / Docker
Versions (16) View all
0.2.1 2026-02-02
latest 2026-02-02
main 2026-02-02
sha-5616b27 2026-02-02
0.2.0 2026-02-01