Skip to content

Latest commit

 

History

History
45 lines (35 loc) · 1.02 KB

developer_mode.md

File metadata and controls

45 lines (35 loc) · 1.02 KB

Develop with separate containers running

  1. Build your container in "developer mode":
sudo ./scripts/devel-compose up --build
  1. Switch into webapp container:
sudo podman exec -it vmaas-webapp bash

Now your local git directory is mounted under /git in the container so any change you make you can immediatelly test.

python3 ./app.py

Note that by default container does NOT run the application (so you can run your own modificationtion) so if you want to run "original" (unmodified) application use

/app/entrypoint.sh

Now you have bash inside vmaas_webapp container, run:

./entrypoint.sh

  1. Switch into reposcan container:
sudo podman exec -it vmaas-reposcan bash

Now run:

./entrypoint.sh

  1. Switch to database container to gain access to db:
sudo podman exec -it vmaas-database bash

Now you can run database terminal with:

psql -d vmaas

  1. Safe EXIT
sudo podman-compose down

Otherwise pod and containers remain up and running.