Files
swift-dev-container/README.md
Michael Housh 125209a99b
All checks were successful
Create and publish a Docker image / build-and-push-image (push) Successful in 13m54s
feat: Adds swift backtrace build arg, defaults to disabling which currently prints a bunch of memory warnings.
2025-12-01 13:12:05 -05:00

35 lines
982 B
Markdown

# 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.
## Extra Packages
- bob (neovim version manager)
- cmake
- curl
- git
- neovim (nightly)
- tree-sitter-cli
- wget
## Usage
```bash
podman run -it --name "$(basename "$PWD")" \
-v "$HOME/.config/nvim":/root/.config/nvim \
-v "$HOME/.local/share/nvim":/root/.local/share/nvim \
-v "$PWD":/root/dev \
-w /root/dev \
git.housh.dev/michael/swift-dev-container:latest
```
### Notes
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.