Skip to content

diamondrod/handy_development_containers

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Handy Development Containers

Scripts to build a simple development environments with Docker containers.

Note: for Mac, you should set Lima with the docker template.

1. Build Virtual Machine Image

  1. Create a source voulme of the machine name under a persistent location (For example, you can create a directory MyMachine under /your/dev/files).
  2. Create a source voulme for a shared directory across containers under a persistent location (Shared under /your/dev/files).
  3. Create a directory of the machine name under this repository root (namely, handy_development_containers).
  4. Prepare Dockerfile for the machine under the directory created in 2.
  5. 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

2. Control Script

This section shows how to use control scripts.

2.1. Create a New Container from Machine Image

handy_development_containers]$ ./control.sh up MyMachine [Host Name] [Root of the source volumes (`/your/dev/files` etc.)]

2.2. Remove a Container

handy_development_containers]$ ./control.sh down MyMachine

2.3. Stop a Container

handy_development_containers]$ ./control.sh stop MyMachine

2.4. Start a Container

handy_development_containers]$ ./control.sh start MyMachine

3. Samples

Two samples are provided in this repository:

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published