Skip to content

Fix docker image build when multiple platforms are specified#5658

Merged
jlind23 merged 3 commits intoelastic:mainfrom
pchila:fix-fix-unified-release
Oct 2, 2024
Merged

Fix docker image build when multiple platforms are specified#5658
jlind23 merged 3 commits intoelastic:mainfrom
pchila:fix-fix-unified-release

Conversation

@pchila
Copy link
Member

@pchila pchila commented Oct 2, 2024

What does this PR do?

This PR extends the behaviour introduced in #5647 by copying platform-independent components into /archive/ instead of moving them.

This fixes the build of docker image service when multiple platforms are specified for the build: without this fix the platform-independent component would be moved exactly once, in the directory of the first platform considered during the build.

Note:
It seems that EXTERNAL=true SNAPSHOT=true mage package still suffers from some inconsistencies when downloading connectors dependency for multiple platforms but this is unrelated to this fix and will be tracked by a separate issue.

Why is it important?

To correctly build elastic-agent-service docker image for multiple platforms during the Unified Release.

Checklist

  • My code follows the style guidelines of this project
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • I have made corresponding change to the default configuration files
  • I have added tests that prove my fix is effective or that my feature works
  • I have added an entry in ./changelog/fragments using the changelog tool
  • I have added an integration test or an E2E test

Disruptive User Impact

How to test this PR locally

Related issues

Questions to ask yourself

  • How are we going to support this in production?
  • How are we going to measure its adoption?
  • How are we going to debug this?
  • What are the metrics I should take care of?
  • ...

@pchila pchila added bug Something isn't working Team:Elastic-Agent-Control-Plane Label for the Agent Control Plane team skip-changelog labels Oct 2, 2024
@pchila pchila self-assigned this Oct 2, 2024
@pchila pchila requested a review from a team as a code owner October 2, 2024 07:29
@elasticmachine
Copy link
Contributor

Pinging @elastic/elastic-agent-control-plane (Team:Elastic-Agent-Control-Plane)

@mergify
Copy link
Contributor

mergify bot commented Oct 2, 2024

This pull request does not have a backport label. Could you fix it @pchila? 🙏
To fixup this pull request, you need to add the backport labels for the needed
branches, such as:

  • backport-./d./d is the label to automatically backport to the 8./d branch. /d is the digit

@mergify
Copy link
Contributor

mergify bot commented Oct 2, 2024

backport-v8.x has been added to help with the transition to the new branch 8.x.
If you don't need it please use backport-skip label and remove the backport-8.x label.

@mergify mergify bot added the backport-8.x Automated backport to the 8.x branch with mergify label Oct 2, 2024
@jlind23 jlind23 merged commit b8a685c into elastic:main Oct 2, 2024
mergify bot pushed a commit that referenced this pull request Oct 2, 2024
Force merging to unblock the unified release process

(cherry picked from commit b8a685c)

# Conflicts:
#	magefile.go
@elastic-sonarqube
Copy link

Quality Gate passed Quality Gate passed

Issues
0 New issues
0 Fixed issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
No data about Duplication

See analysis details on SonarQube

blakerouse pushed a commit that referenced this pull request Oct 9, 2024
Force merging to unblock the unified release process
pierrehilbert pushed a commit that referenced this pull request Oct 14, 2024
#5634)

* Add elastic-agent-service container to packaging (#5349)

Adds the elastic-agent-service container with the py-connectors component enabled.

(cherry picked from commit 701f8b9)

# Conflicts:
#	dev-tools/mage/manifest/manifest.go

* Update manifest.go

Fix conflicts caused by mergify

* Include python wheel packages when moving downloaded dependencies archives (#5647)

This commit modifies movePackagesToArchive() function to include python
wheel packages introduced with commit 701f8b9 .
This solves an issue when packaging docker images using a DROP_PATH env
var: prior to this change, the python wheel archives present in
DROP_PATH were not moved to `<DROP PATH>/archive/<platform>` failing to
create an image for which the Dockerfile expects to install the python
wheel package

* Fix docker image build when multiple platforms are specified (#5658)

Force merging to unblock the unified release process

---------

Co-authored-by: Blake Rouse <blake.rouse@elastic.co>
Co-authored-by: Julien Lind <julien.lind@elastic.co>
Co-authored-by: Paolo Chilà <paolo.chila@elastic.co>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport-8.x Automated backport to the 8.x branch with mergify bug Something isn't working skip-changelog Team:Elastic-Agent-Control-Plane Label for the Agent Control Plane team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants