opentelemetry-collector icon indicating copy to clipboard operation
opentelemetry-collector copied to clipboard

Add ocb Docker image

Open mx-psi opened this issue 3 years ago • 8 comments
trafficstars

Is your feature request related to a problem? Please describe.

Per open-telemetry/opentelemetry-collector-releases/pull/164, we want to promote usage of the OpenTelemetry Collector Builder so that people build their own distribution with only the components they use.

We currently only provide the binaries on each release (example), but we don't have a Docker image for this, which would ease the use of the builder.

Describe the solution you'd like

Provider a Docker image for the builder.

Describe alternatives you've considered

Do nothing, if we consider this is not going to get usage.

mx-psi avatar Jul 20 '22 16:07 mx-psi

@dmitryax @jpkrohling As far as I could understand, we want to create a Dockerfile & release docker images for the collector builder, can I work on this if this is still relevant?

sakshi1215 avatar Oct 10 '22 11:10 sakshi1215

Sure, I think it would be worth the exercise. I'm not convinced this would work seamlessly for some Linux distributions (like Fedora), as selinux would prevent containers from writing to the host's file system, but I might be wrong.

jpkrohling avatar Oct 18 '22 19:10 jpkrohling

@jpkrohling that should work using the z or Z mount option like here: https://github.com/open-telemetry/opentelemetry-go-build-tools/issues/222

frzifus avatar Feb 15 '23 13:02 frzifus

I see that we have docker images for the official releases, but I'm thinking it might still be useful to have docker images for custom builds. It seems like there's no way to build a custom collector using the releases distributions Dockerfiles besides the default contrib, k8s, or core configuration. I might be wrong, as I am still trying to dig more into this process.

jackgopack4 avatar Jul 15 '24 19:07 jackgopack4

Hi there, i'd like to create another repository under the "otel" organization on DockerHub, I believe it could be called "otel/opentelemetry-collector-builder" or "otel/ocb"; who has the ability to create this? thanks.

jackgopack4 avatar Sep 16 '24 19:09 jackgopack4

@jackgopack4 I'd guess this would be done through an issue in the community repository but we should discuss what name we want first.

mx-psi avatar Sep 17 '24 09:09 mx-psi

PRs are up: https://github.com/open-telemetry/opentelemetry-collector-releases/pull/671 https://github.com/open-telemetry/opentelemetry-collector/pull/11234 Will appreciate reviews on either or both! I'm still working on a blurb for opentelemetry.io as well under "building a custom collector" but will likely get to it Monday

jackgopack4 avatar Sep 20 '24 19:09 jackgopack4

Hi there, until https://github.com/open-telemetry/opentelemetry-collector-releases/pull/671 is merged into releases, I think this issue should still stay open

jackgopack4 avatar Oct 04 '24 16:10 jackgopack4

Fixed by open-telemetry/opentelemetry-collector-releases/pull/671

mx-psi avatar Oct 23 '24 08:10 mx-psi