Resources ๐ to guide the training Development Lifecycle: CI/CD from KeepCoding DevOps bootcamp.
Part 1 out of 3: Local Pipelines ๐
- A docker hub account.
- A PyPI account.
docker
(Check thatdocker run hello-world
works)
make
(Check thatmake --version
in your terminal outputs something likeGNU Make 4.X [...]
)python3.8
or higher (Check thatpython3 --version
in your terminal outputs something likePython 3.X.X
)pip3
(Check thatpip3 --version
in your terminal outputs something likepip 20.X.X from [...] (python 3.X)
which points to previous installation ofpython3.8
)docker
(Check thatdocker run hello-world
works)
- Change the name of the user for dockerhub
kctest2
by the name of your own user inMakefile
- Set just the password for your dockerhub account in a file named
dockerHubPassword
in the root of the project - Create a .pypirc file with the standard format in the root of the project with your credentials to Pypi
docker build -t dockerized-env-make -f dockerized-env/Dockerfile . && \
docker run --rm -it -v /var/run/docker.sock:/var/run/docker.sock dockerized-env-make
make
- Create python app & .gitignore
- Create unit test and run them with the terminal
- Create targets to build the app
- Add unit-test and coverage targets
- Add version, package and publish targets
- Add docker files
- Add dockerize, push and integration-test