Skip to content

This is a simple project to build a virtual development enviroment using docker.

License

Notifications You must be signed in to change notification settings

Padawan-org/Padawan-Docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

Padawan-Docker

This is a simple project to build a virtual development environment using docker.
Here we will show common commands an the prerequisites for using docker, the others branches will show only specific content.
We've build some environment samples, choose one just click on a link bellow.

Environments

The master branch is empty, just to point another branch with desired environment sample.
By now we have those options:

Prerequisites

You will need to download and install these tools.

If you are on Mac Os X or Windows you will need to install

But there's an all in one installers for boot2docker that comes with VirtualBox.

Setup

It's simple, after instalation you will need to Change these files to match your project

  • Dockerfile
  • docker-compose.yml

How to use

If you are using boot2docker start it using these command bellow. Learn more

	$ boot2docker init
	$ boot2docker up

To Build your containers, this will look at you docker-compose.yml.

	$ docker-compose build

Run your containers

	$ docker-compose up

Stop your containers

	$ docker-compose stop

Run a command in a new container

	$ docker-compose run <container name on docker-compose.yml> <command>

List your containers from docker-compose.yml

	$ docker-compose ps

List your all running containers

	$ docker ps

Run a command in a existing container, needs the previous command result

	$ docker exec -i -t <container id or name> <command>

Inspiration and Thanks

This project is inspired by Padawan-Vagrant.
Thanks to Mr Enderson for help me to start this project.

Useful Aliases

I use these aliases on my machine, just put then in your bashrc.

	alias dc='docker-compose'
	alias dcu='dc up'
	alias dcl='dc logs'

About

This is a simple project to build a virtual development enviroment using docker.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages