Testing
Before Testing
After making code changes to a feature branch of the project it is required to rebuild the docker containers. For that it is necessary to close the running containers.
If and which docker containers are currently running can be monitored by using the docker ps command or alternatively with:
docker container ls
To fully shut down running docker containers, first go to the firmware_vault/docker_compose_dir directory, then use the command:
docker compose down
The project can now be rebuilt and started up again in the firmware_vault/docker_compose_dir directory using the command:
docker compose up -d --build
Alternatively, if using mise, you can manage the Compose stack from the repository root:
# Rebuild and restart the stack
mise run compose:rebuild
# Start the stack
mise run compose:up
# Start with live file watching (compose.dev.yaml)
mise run compose:watch
# Stop the stack
mise run compose:down
For docker compose up and docker compose down it is possible to only target specified containers by adding their names at the end of the command. For example:
docker compose down mysql_db frontend api_scheduler executor
Testing of new features and bugfixes can now begin.
Building and starting docker containers is explained in detail in the Installation Page of the Introduction section of the projects documentation. A full list of available containers and their names can also be found in the Installation Page under the Docker Container segment.
Docusaurus Documentation
To test the docusaurus documentation it is not necessary to rebuild any docker containers.
Both the local documentation task and the firmware_vault_doc container will automatically update changes to the documentation in your active branch. The current state of your documentation can be seen under the URL http://localhost:3000.
To start the documentation development server using mise:
mise run docs:start
Alternatively, to start the firmware_vault_doc container use the following command in the firmware_vault/docs/ directory:
docker run --rm -it -v $(pwd):/docs -p 3000:3000 firmware_vault_doc
A description of the the firmware_vault_doc container starting process can also be viewed in firmware_vault/docs/README.md.
Do not forget to
- update the
sidebars.tsto see new files or categories in the sidebar on the left - update the
docusaurus.config.tsto see new categories in the dropdown menu Docs in the top left