Closed kjsanger closed 7 months ago
Using make to call git inside the container feels strange. Passing things through variables may be better. As it is now, it works. So we could create an issue to improve later if you think it is reasonable.
Then we'd have two different build commands, one building in the container and one for outside (the Makefile). We don't worry about copying bash scripts into containers to run them (it's an accepted way of avoiding hairy RUN
commands), so I don't think we should worry about Makefiles (especially as make
is provided by the container).
I found it unusual to mount .git
in container build to resolve the version. Also had issues executing tests with make
so I think there will be more work on the Makefile anyway. I had to check how things were working in actions to figure out how to do things locally.
The container doesn't install the test dependencies - it's purely for building after the tests have been run by the test workflow. The test framework is installed for the tests here https://github.com/wtsi-npg/sqyrrl/blob/404291adcb3bb86c56a91bcee71e1693de7bda47/.github/workflows/run-tests.yml#L59
Fix setting version string in the built application