From 125209a99be6c6c8678d77db0a6f781501c18556 Mon Sep 17 00:00:00 2001 From: Michael Housh Date: Mon, 1 Dec 2025 13:12:05 -0500 Subject: [PATCH] feat: Adds swift backtrace build arg, defaults to disabling which currently prints a bunch of memory warnings. --- Dockerfile | 3 +++ README.md | 14 +++++--------- 2 files changed, 8 insertions(+), 9 deletions(-) diff --git a/Dockerfile b/Dockerfile index a84ee8b..e906b40 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,5 @@ ARG SWIFT_VERSION="swift:latest" +ARG SWIFT_BACKTRACE="enable=no" FROM docker.io/${SWIFT_VERSION} AS build @@ -36,6 +37,8 @@ PATH="/root/bin:/root/.local/share/bob/nvim-bin:$PATH" alias n='nvim' EOF +ENV SWIFT_BACKTRACE=${SWIFT_BACKTRACE} + WORKDIR /root/dev VOLUME /root/dev diff --git a/README.md b/README.md index 3ead16f..995d644 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,7 @@ # Swift development container -A development container built off swift / ubuntu as base image. This is needed because -I currently can not get swift to install on arch linux, so this -is used to develop inside a docker container. +A development container built off swift / ubuntu as base image. This is needed because I currently can not get swift to +install on arch linux, so this is used to develop inside a docker container. ## Extra Packages @@ -29,10 +28,7 @@ podman run -it --name "$(basename "$PWD")" \ 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 -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 above runs a container and names it so that it can be restarted 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.