Add Docker and Docker Compose support for running OpAMP server …#473
Conversation
…and agent examples
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #473 +/- ##
==========================================
- Coverage 81.71% 81.52% -0.19%
==========================================
Files 27 27
Lines 2122 2122
==========================================
- Hits 1734 1730 -4
- Misses 263 267 +4
Partials 125 125 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
douglascamata
left a comment
There was a problem hiding this comment.
Neat! I think this will be great to support some automated small e2e tests in other related repositories, like the releases one. Thank you!
|
Please move all the files to |
|
@tigrannajaryan the Dockerfile files are in the root of the project because of the docker build context, allowing us to easily COPY the opamp-go library which is a local reference with It is a trade off. Let's find a work around |
|
@juandemanjon: I think it could be fine with the Dockerfiles in an |
… update references
|
I had moved the docker files and temporarily updated the action to build with any commit |
|
We still have .dockerignore, docker-compose.yml and makefile changes at the root. Can you move those to "examples" too? We can have a makefile in "examples" and also move existing targets from the root makefile. I don't want to add complexity to root directory. Everything about examples should ideally be self-contained in the examples directory. |
|
Sure, I can do that. |
|
@tigrannajaryan before merging into main. Please, create the |
|
Looks like the build succeeded: https://github.com/orgs/open-telemetry/packages?repo_name=opamp-go Please verify published images. |
|
The images where created, we need to improve the images tags though ghcr.io/open-telemetry/opamp-go/opamp-agent-example:renovate-actions-checkout-6.x-71b4ad5 |
Add Docker Support for OpAMP Examples
This PR adds Docker support to make it easier to run and test the OpAMP agent and server examples.
Docker Compose
# Stop all services make docker-compose-down# View logs make docker-compose-logsDocker build and run locally
CI/CD
Images are automatically published to GHCR when version tags are pushed. The workflow can also be triggered manually for testing (main branch).
Relays on secret
PACKAGES_TOKEN_GITHUBto publish images to GHCR.Closes #443