sudo docker system prune -a -f
sudo docker rm -v $(sudo docker ps -a -q -f status=exited)
sudo docker rmi -f $(sudo docker images -f "dangling=true" -q)
docker volume ls -qf dangling=true | xargs -r docker volume rm
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| stages: | |
| - build | |
| - package | |
| - test | |
| variables: | |
| APP_VERSION: $CI_PIPELINE_IID | |
| build website: | |
| image: node:16-alpine |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| stages: | |
| - build | |
| - test | |
| - deploy staging | |
| - deploy production | |
| variables: | |
| APP_VERSION: $CI_PIPELINE_IID | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| vscode tests to be discoverable add __init__.py in tests folders | |
| correct approach to run pytest ; here tests is the folder name | |
| python -m pytest tests | |
| to run pytest in venv install pytest in venv and Chai |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Your credentials are stored at ~/.config/gcloud |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #Crate conda environment | |
| conda create --name py35 python=3.5 | |
| #Install package | |
| conda install jupyter | |
| pip3 install -r requirements.txt | |
| #auto generate requirements file | |
| pipreqs . |
NewerOlder