-
Story
-
Resolution: Done
-
Normal
-
None
-
None
-
Future Sustainability
-
5
-
False
-
-
False
-
None
-
Unset
-
None
-
-
-
-
Plat-Ex Services Sprint 50
Description
Write basic tests to check the dockerfile and scripts are correct and generate correct frontend image.
For hermetic build it should be just making sure the files are coppied correctly in the image.
We can use github actions to run the tests.
mmarosi123 to add 3 layers of tests
- testing caddy
- create some fake "JS package" with the npm run build script that outputs correct dir with some JS/CSS/JSON assets
- build image
- Run curl (or any other networking tool) to verify files are in the right place
- A nice and simple testing framework is also encouraged, we don't want to write tests in .sh
- Testing env variables
- any env variables that are set to the Docker and use during build/runtime should be verified
- Dir structure
- make sure that the files are where they are supposed to be
Hermetic builds are simpler as they do not include the Caddy at all. They are only "assets artifact containers" within a small RHEL image (Konflxu will not allow FROM SCRATCH)