Why Running the Metrics API locally for development and integration tests will require a database available, and supplying an easy way for contributors to run it alongside a containerized build of the project can offer some benefits:
- Allow running of the project without requiring setup of a golang dev environment
- Making builds reproducible by enforcing golang version
- Help generate a container image for the APB targetting openshift
How Currently the repo has a set of container configs in the deployments/ directory These can be improved by:
- Utilizing the same make-based commands for compiling the project
- Utilizing multi-stage builds to generate a smaller final image
- Allowing the user to easily run the containerized database and metrics api project in any combination for development and testing purposes
- Add a separate configuration file for building an image on top of the official release binaries
The implementation would build on top of ideas spiked in the following closed PRs for the project repo:
|