https://github.com/zefhemel/devm
Development VMs with Docker (running inside Docker)
https://github.com/zefhemel/devm
Last synced: over 1 year ago
JSON representation
Development VMs with Docker (running inside Docker)
- Host: GitHub
- URL: https://github.com/zefhemel/devm
- Owner: zefhemel
- Created: 2013-10-08T13:13:28.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2013-10-08T13:16:36.000Z (over 12 years ago)
- Last Synced: 2025-01-20T21:17:12.260Z (over 1 year ago)
- Language: Shell
- Size: 102 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
DeVM
====
DeVM is a means to easily set up development VMs in Docker containers. The
application itself is hosted inside of a container, so essentially you're
hosting docker containers inside of a docker container.
To build:
docker build -t devm .
To run (after tweaking the `DATADIR` directory in this script):
./docker-run.sh
You can then login with password "root":
ssh root@localhost -p2222
You can change the root password by running:
ssh root@localhost -p2222 set-root-passwd
To create a new dev environment:
ssh root@localhost -p2222 create-env
Notes:
* BASEIMAGE can by any Docker image identifier
* SSH KEY should be entire contents of ~/.ssh/id_rsa.pub"
Example (to create a project named 'myproject' based on the 'zefhemel/base-dev' image):
ssh root@localhost -p2222 create-env myproject zefhemel/base-dev `cat ~/.ssh/id_rsa.pub`
You can then login into it using:
ssh myproject@localhost -p2222