Something similar to Development Containers build with docker-compose and a few simple bash scripts.
Requires docker, docker-compose and some basic tools like git, bash, ssh, etc.
The commands bin/dev
and bin/path
should be somewhere in your PATH.
- Assuming a project called
allkinds
in~/projects/allkinds
- Clone this repo into the project root
cd ~/projects/allkinds/ ; git clone git@github.com:f0i/container
- Modify the
Dockerfile
to include the services and tools you need - Build the docker container using the
dev
commanddev allkinds build
anddev allkinds up
- Start the docker container with
dev allkinds start
- Connect to the container
dev allkinds
and start development - Enable port forwarding to the host
ports 3000 8080:80
, in this case port 3000 and 8080 of the host will be forwarded to port 3000 and 80 of the container