/docker

Dockerize your project before messing up your computer 💣

Primary LanguageDockerfile

Dockerizer

Isolate and speed up the implementation of a new repo. Stop polluting your host machine with random packages!

Hits

Usage

  1. Clone the Dockerizer in the same folder where the code is: git clone https://github.com/enric1994/docker.git
  2. Add all the Python dependencies into docker/requirements.txt and the OS dependencies in docker/requirements_os.txt
  3. Start Dockerizer
cd docker
make run

4.Jump inside the evironment: make dev

Note: Remove the .git folder before pushing to other repository!: rm -rf docker/.git

Alias

Set this alias to automatically clone and remove the docker/.git:

alias dockerize='git clone https://github.com/enric1994/docker.git; rm -rf docker/.git'

Other commands

  • Rebuild the container after modifying the image: make build
  • Turn off the container: make down
  • Check the status of the container: make status
  • Visualize the logs: make logs

Dependencies