24 lines
549 B
Markdown
24 lines
549 B
Markdown
# Dev containers
|
|
|
|
## Commands
|
|
|
|
Build
|
|
```
|
|
podman build -t my-dev-container .
|
|
```
|
|
|
|
Run. Mount /workspace if you want to preserve changes. Mount /workspace if you want to preserve changes.
|
|
```
|
|
podman run -it --rm \
|
|
--userns=keep-id \
|
|
--network host \
|
|
-v $HOME/.ssh:/home/dev/.ssh:ro,Z \
|
|
-v $PWD:/workspace:Z \
|
|
my-dev-container
|
|
```
|
|
|
|
## Installed tools
|
|
- Common ones: curl, git, vim, tmux, zsh. Included dotfiles.
|
|
- NVM and nodejs (lts, v18, v20, v22).
|
|
- All package managers preinstalled (npm, pnpm, yarn). Enable with `corepack enable <pm>`.
|