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

[WIP] Multi-architecture container images #2397

Closed
wants to merge 4 commits into from
Closed

[WIP] Multi-architecture container images #2397

wants to merge 4 commits into from

Conversation

gramidt
Copy link
Member

@gramidt gramidt commented Feb 22, 2021

Description:
Update CI/CD to build multi-architecture container images. Currently multiple binaries are created for OS/architectures; however, only a single container image is created (linux/amd64). This PR will build and push both linux/amd64 and linux/arm64 container images and setup the foundation to make it trivial to build additional architecture images in the future.

Link to tracking Issue:
#2379

Testing:
TODO

Documentation:
TODO

Signed-off-by: Granville Schmidt <1246157+gramidt@users.noreply.github.com>
Signed-off-by: Granville Schmidt <1246157+gramidt@users.noreply.github.com>
Signed-off-by: Granville Schmidt <1246157+gramidt@users.noreply.github.com>
steps:
- run:
name: Install Docker buildx
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh forgot this was still circleci, doh!

docker build -t $(COMPONENT) ./cmd/$(COMPONENT)/
rm ./cmd/$(COMPONENT)/$(COMPONENT)
cp ./bin/$(COMPONENT)_linux_amd64 ./cmd/$(COMPONENT)
docker build -t $(COMPONENT) ./cmd/$(COMPONENT)/ --build-arg=TARGETOS=linux --build-arg=TARGETARCH=amd64
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it simpler to use buildx for this too so we don't need to define the args?

Copy link
Member Author

@gramidt gramidt Feb 22, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My opinion at this time is to make the multi-architecture build additive and not require buildx for all contributors. Since 'make docker-otelcontribcol' is pre-existing, I believe it should continue to work without contributors updating their tooling. If contributors want to build multi-arch images, then they'll need to install buildx (doesn't seem common at this time).

Maybe after we have buildx working as expected in the CI/CD pipeline and are okay with requiring contributors to install an experimental tool, then we can fully migrate to buildx. I'm hoping that buildx will be fully baked into Docker this year, so it will become a natural progression.

@gramidt gramidt changed the title Multi-architecture container images [WIP] Multi-architecture container images Feb 22, 2021
@github-actions
Copy link
Contributor

github-actions bot commented Mar 2, 2021

This PR was marked stale due to lack of activity. It will be closed in 7 days.

@github-actions github-actions bot added the Stale label Mar 2, 2021
@github-actions
Copy link
Contributor

github-actions bot commented Mar 9, 2021

Closed as inactive. Feel free to reopen if this PR is still being worked on.

@github-actions github-actions bot closed this Mar 9, 2021
ljmsc referenced this pull request in ljmsc/opentelemetry-collector-contrib Feb 21, 2022
* [website_docs] Link to website page via path

Contributes to open-telemetry/opentelemetry.io#922. /cc @austinlparker

* Make links relative and wrap paragraph text

Co-authored-by: Tyler Yahn <MrAlias@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants