Isolate and speed up the implementation of a new repo. Stop polluting your host machine with random packages!
- Clone the Dockerizer in the same folder where the code is:
git clone https://github.com/enric1994/docker.git
- Add all the Python dependencies into docker/requirements.txt and the OS dependencies in docker/requirements_os.txt
- 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
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'
- 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
- Docker and Docker Compose
- NVIDIA-Docker (Optional, GPU required)