Scripts to build a simple development environments with Docker containers.
Note: for Mac, you should set Lima with the docker template.
- Create a source voulme of the machine name under a persistent location (For example, you can create a directory
MyMachine
under/your/dev/files
). - Create a source voulme for a shared directory across containers under a persistent location (
Shared
under/your/dev/files
). - Create a directory of the machine name under this repository root (namely,
handy_development_containers
). - Prepare
Dockerfile
for the machine under the directory created in 2. - Run (replace
MyMachine
with your machine name):
handy_development_containers]$ ./build.sh MyMachine
If you need to build without cache, run:
handy_development_containers]$ ./build.sh MyMachine --no-cache
This section shows how to use control scripts.
handy_development_containers]$ ./control.sh up MyMachine [Host Name] [Root of the source volumes (`/your/dev/files` etc.)]
handy_development_containers]$ ./control.sh down MyMachine
handy_development_containers]$ ./control.sh stop MyMachine
handy_development_containers]$ ./control.sh start MyMachine
Two samples are provided in this repository: