(My) Minimal viable development environment in a container.
I use podman but Docker should also be fine, so you could just swap the podman
command with docker
.
podman build . --build-arg ACCESS_KEY_ID='<redacted>' --build-arg SECRET_ACCESS_KEY='<redacted>' -t env
podman run --rm -ti -p --name env env
Unfortunately the Visual Studio Code Remote - Containers extension does not support podman at this time, so I'm SSHing into the container instead.
podman build . --build-arg ACCESS_KEY_ID='<redacted>' --build-arg SECRET_ACCESS_KEY='<redacted>' -t env
podman build -f code.Dockerfile -t codeenv
podman run --rm -ti -p 2222:22 --name codeenv codeenv # password is 'root'
You will then be able to SSH into the container as described here and with the command:
ssh -p 2222 root@localhost