Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ocb Docker image #5712

Open
mx-psi opened this issue Jul 20, 2022 · 7 comments · May be fixed by #11234
Open

Add ocb Docker image #5712

mx-psi opened this issue Jul 20, 2022 · 7 comments · May be fixed by #11234
Assignees
Labels
area:builder enhancement New feature or request

Comments

@mx-psi
Copy link
Member

mx-psi commented Jul 20, 2022

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.

@sakshi1215
Copy link
Contributor

@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?

@jpkrohling
Copy link
Member

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.

@frzifus
Copy link
Member

frzifus commented Feb 15, 2023

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

@jackgopack4
Copy link
Contributor

jackgopack4 commented Jul 15, 2024

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.

dmitryax pushed a commit that referenced this issue Aug 9, 2024
After discussion with the collector SIG call this week, July
31st, I have made small tweaks to the artifact release that will not
require an "extra step" of pushing tags. If these changes are accepted,
the distributions will be released under tag "vX.XXX.X" and the ocb
binaries will be released under "cmd/builder/vX.XXX.X" but both under
this repo, opentelemetry-collector-releases. The workflow
`builder-release.yaml` in releases repo will push the additional tags
necessary for the builder release.

Refactoring the release process as mentioned in past issues/PRs. ocb
binary is currently released in a separate release tag under this
repository, which makes it harder to find and inconsistent with the rest
of the binaries and images releasing in the
opentelemetry-collector-releases repository.

Releasing the ocb binaries in opentelemetry-collector-releases makes
this process more standardized and also opens the opportunity to release
more tools alongside ocb binary down the road, like corresponding docker
images (as discussed in #5712).

#### Link to tracking issue
Fixes #10662
Mentioned in [releases issue #
295](open-telemetry/opentelemetry-collector-releases#295)
[Corresponding PR in
opentelemetry-collector-releases](open-telemetry/opentelemetry-collector-releases#608)

#### Testing
Sample binary release in [forked
jackgopack4/opentelemetry-collector-releases
repo](https://github.com/jackgopack4/opentelemetry-collector-releases/releases/tag/cmd%2Fbuilder%2Fv0.106.1)

#### Documentation
Updated corresponding documentation to reflect new release process

---------

Co-authored-by: Pablo Baeyens <pbaeyens31+github@gmail.com>
@jackgopack4
Copy link
Contributor

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.

@mx-psi
Copy link
Member Author

mx-psi commented Sep 17, 2024

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

@jackgopack4
Copy link
Contributor

PRs are up:
open-telemetry/opentelemetry-collector-releases#671
#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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:builder enhancement New feature or request
Projects
None yet
5 participants