feat: Adds swift backtrace build arg, defaults to disabling which currently prints a bunch of memory warnings.
All checks were successful
Create and publish a Docker image / build-and-push-image (push) Successful in 13m54s

This commit is contained in:
2025-12-01 13:12:05 -05:00
parent 934598b6c7
commit 125209a99b
2 changed files with 8 additions and 9 deletions

View File

@@ -1,4 +1,5 @@
ARG SWIFT_VERSION="swift:latest" ARG SWIFT_VERSION="swift:latest"
ARG SWIFT_BACKTRACE="enable=no"
FROM docker.io/${SWIFT_VERSION} AS build FROM docker.io/${SWIFT_VERSION} AS build
@@ -36,6 +37,8 @@ PATH="/root/bin:/root/.local/share/bob/nvim-bin:$PATH"
alias n='nvim' alias n='nvim'
EOF EOF
ENV SWIFT_BACKTRACE=${SWIFT_BACKTRACE}
WORKDIR /root/dev WORKDIR /root/dev
VOLUME /root/dev VOLUME /root/dev

View File

@@ -1,8 +1,7 @@
# Swift development container # Swift development container
A development container built off swift / ubuntu as base image. This is needed because A development container built off swift / ubuntu as base image. This is needed because I currently can not get swift to
I currently can not get swift to install on arch linux, so this install on arch linux, so this is used to develop inside a docker container.
is used to develop inside a docker container.
## Extra Packages ## Extra Packages
@@ -29,10 +28,7 @@ podman run -it --name "$(basename "$PWD")" \
The default command will open neovim in the `/root/dev` folder. The default command will open neovim in the `/root/dev` folder.
The above runs a container and names it so that it can be restarted The above runs a container and names it so that it can be restarted in the future to continue working on a project.
in the future to continue working on a project.
The `-w | --workdir` is not required if you mount your project to the
`/root/dev` folder, as that is the default declared by the container, it
is shown here for clarity.
The `-w | --workdir` is not required if you mount your project to the `/root/dev` folder, as that is the default
declared by the container, it is shown here for clarity.