Boilerplate configurations for dev-container based projects.
These boilerplate dev-container projects build and use customizable local base images - to avoid the need to publish/pay to/for a container registry during development. Always configure your post-development base-images to be as small as possible.
- Ubuntu (Debian) dev platform.
- Docker and VSCode are installed & configured for dev-container based development.
Steps - In brief [In detail]
- Create a locally cloned empty git repo for your project.
- Copy the contents of this repo's appropriate boiler-plate's folder into
<project>/ cdinto<your project dir>- Run
code . - Confirm VSCode's suggestion to run as a dev container. Wait ...
- VSCode will let you know when its finished.
Each boilerplate project dev-container is constructed as follows:
dev-container
(1) -> Dockerfile image
(2) -> base-image/Dockerfile image
(3) -> mcr.microsoft.com/devcontainers/<image>
(4) -> ...
Use (1) for project customizations. Use (2) to extend (3).
Clone this repo, then:
-
Create a locally cloned empty git repo for your project.
Eg: /.../<this repo>/ /.../<project>/ -
Copy the contents of this repo's appropriate boiler-plate's folder into
<project>/Eg: rsync -a <this repo's dir>/typescript/ <your project dir>/ -
cdinto<your project dir> -
Run
code . -
Confirm VSCode's suggestion to run as a dev container. Wait ...
VSCode will:
- Run
<project dir>/.devcontainer/init.sh, which builds the dev-container's base image. - Build the dev-container using the built base image and mount
<your project dir> - Install the dev-container's extensions.
- Build the boiler-plate project.
- Let you know when its finished.
- Run
Happy hackingâ–®