Envcontainer, an extremely simple way to create a development environment with docker containers.
Check latest version on relase page here.
- Docker version 18.02.0+.
Linux based systems:
- Ubuntu (64-bit)
- Debian (64-bit)
- CentOS (64-bit)
Note
Obs: Windows system have not been yet tested.
Using Envcontainer is a three-step process:
- Define your app's container environment with a
.envcontainer.yaml
file.[!TIP] configuration files exemples here.
- Run
envcontainer build
- Lastly, run
envcontainer start
and Envcontainer will start and enter your container.
A Envcontainer file looks like this:
project:
name: <YOUR_PROJECT_NAME> # Envcontainer
version: <YOUR_PROJECT_VERSION> # 1.0.0
description: <YOUR_PROJECT_DESCRIPTION> # Create a development environment for Envcontainer Application.
container:
# write Dockerfile to build container
build: |
FROM ubuntu:latest
auto-stop: false
For more information about envcontainer, run envcontainer help
Usage: envcontainer COMMAND --FLAGS
Commands
build: build a image using envcontainer configuration in the current directory
down: remove all envcontainer configuration running in the current directory
--name: container name
--get-closer: will get the closest configuration file and remove all envcontainer
help: Run envcontainer COMMAND' for more information on a command. See: 'envcontainer help'
ls:
run: execute an .envcontainer on the current directory without saving it locally
--command: execute command inside container
--name: container name
--image: envcontainer image
up: run the envcontainer configuration to start the container and link it to the current directory
--code: open with vscode
--get-closer: will get the closest configuration file to run a new container
--auto-stop: terminal shell that must be used
version: show envcontainer version
Note
devcontainer
commands do not support all features to manage your containers, in this case you can use docker
cli commands if you need.