Make cooking hassle-free and more friendly
- Use PowerShell or Bash shell for the steps below
From the root folder of the project:
docker-compose -f infra/docker_dev/docker-compose.yml -p smarty_recipe buildFrom the root folder of the project:
# Note, these are not sequential steps. You can use any of them independently of each other.
# To run bash shell
docker-compose -f infra/docker_dev/docker-compose.yml -p smarty_recipe run --rm webserver bash
# To run Flask Python shell
docker-compose -f infra/docker_dev/docker-compose.yml -p smarty_recipe run --rm webserver bash -c "source activate TEST && python backend/server/manage.py shell"
# To run the cluster up
docker-compose -f infra/docker_dev/docker-compose.yml -p smarty_recipe up- Make sure the images are built properly.
- To run Jupyter Hub
docker-compose -f infra/docker_dev/docker-compose.yml -p smarty_recipe run --rm -p 8888:8888 webserver bash -c "source activate TEST && jupyter notebook --allow-root --notebook-dir=./notebooks --ip=0.0.0.0 --port=8888"- Go http://localhost:8888?token=[token] (make sure copy paste the token from the terminal to [token])