feat: Adds swift backtrace build arg, defaults to disabling which currently prints a bunch of memory warnings.
This commit is contained in:
@@ -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
|
||||
|
||||
14
README.md
14
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.
|
||||
|
||||
Reference in New Issue
Block a user