All of the tools for building devops workflows
- dive into pathlib
/docs get to swagger
#change
docker build .
docker image ls
#find image
docker run -p 127.0.0.1:8080:8080 93fa55efa692
- Clone repo into Cloud9 (pick a machine with decent size CPU and RAM if possible, but students should use micro)
- Add ssh keys to GitHub
- resize to bigger disk
- Create virtualenv and add to bashrc and source
python3 -m venv ~/.venv && echo 'source ~/.venv/bin/activate' >> ~/.bashrc && source ~/.bashrc
- cd into checkout and run
make install
- Preview running FastAPI app after running: python main.py
- Create ECR repository by right-click in Cloud9
-
Navigate to ECR repo created or whatever you named it and follow "push" instructions
-
Navigate to AWS App Runner and Setup Continuous Delivery using ECR
-
Setup AWS Code Build to push container after each build (which triggers auto-deploy)
See following buildspec.yml and Makefile
- Linting Dockerfile and also dealing with containers
- Great way to find a package version:
pip freeze | grep ipython