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
All checks were successful
Create and publish a Docker image / build-and-push-image (push) Successful in 13m54s
This commit is contained in:
@@ -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
|
||||||
|
|||||||
14
README.md
14
README.md
@@ -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.
|
||||||
|
|||||||
Reference in New Issue
Block a user