update readme
This commit is contained in:
parent
20b0ac68c8
commit
61a900501e
28
README.md
28
README.md
@ -1 +1,27 @@
|
||||
# Dev Containers
|
||||
# Development Containers
|
||||
|
||||
## Authentication
|
||||
Before updating development images, authenticate to the registry:
|
||||
|
||||
```sh
|
||||
docker login registry.tomastm.com
|
||||
```
|
||||
|
||||
## Updating Development Images
|
||||
Follow these steps to update development images:
|
||||
|
||||
### Step 1: Update and Commit Changes
|
||||
- Modify the Dockerfile or install script as needed.
|
||||
- Ensure that each commit updates only a single development image.
|
||||
- Commit the changes to version control.
|
||||
|
||||
### Step 2: Build the Image
|
||||
- Run the following command to build the image:
|
||||
|
||||
```sh
|
||||
./build-image.sh <image>
|
||||
```
|
||||
|
||||
- Since `dockerx` does not function properly inside `qemu`, execute this command separately on machines with different CPU architectures.
|
||||
- Build the image on both `amd64` and `arm64` architectures.
|
||||
- Once both architectures are built, the script will automatically generate a manifest.
|
||||
|
||||
@ -1,26 +0,0 @@
|
||||
# Dev containers
|
||||
|
||||
## Commands
|
||||
|
||||
Build
|
||||
```
|
||||
docker build \
|
||||
--build-arg UID=$(id -u) \
|
||||
--build-arg GID=$(id -g) \
|
||||
-t web-stack .
|
||||
```
|
||||
|
||||
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>`.
|
||||
@ -1,26 +0,0 @@
|
||||
# Dev containers
|
||||
|
||||
## Commands
|
||||
|
||||
Build
|
||||
```
|
||||
docker build \
|
||||
--build-arg UID=$(id -u) \
|
||||
--build-arg GID=$(id -g) \
|
||||
-t web-stack .
|
||||
```
|
||||
|
||||
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>`.
|
||||
Loading…
Reference in New Issue
Block a user