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

root: Improve multi arch Docker image build speed #7355

Merged
merged 3 commits into from
Nov 1, 2023

Conversation

PKizzle
Copy link
Contributor

@PKizzle PKizzle commented Oct 27, 2023

Details

Use only the host architecture for GeoIP database updates and for Go cross-compilation.

This significantly speeds up image creation as the GeoIP database is architecture independent and does not need to be downloaded twice. Also, cross-compilation is faster than architecture emulation.

Note: The changes in this PR are part of #7118.

Use only host architecture for GeoIP database update and for Go cross-compilation
@PKizzle PKizzle requested a review from a team as a code owner October 27, 2023 20:54
@netlify
Copy link

netlify bot commented Oct 27, 2023

Deploy Preview for authentik-storybook canceled.

Name Link
🔨 Latest commit 45a7545
🔍 Latest deploy log https://app.netlify.com/sites/authentik-storybook/deploys/65426db1725d8d00085e6ac1

@PKizzle PKizzle changed the title Improve multi arch Docker image build speed root: Improve multi arch Docker image build speed Oct 27, 2023
@codecov
Copy link

codecov bot commented Oct 27, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (4a57c6f) 91.14% compared to head (45a7545) 92.41%.
Report is 29 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #7355      +/-   ##
==========================================
+ Coverage   91.14%   92.41%   +1.26%     
==========================================
  Files         587      587              
  Lines       28911    28895      -16     
==========================================
+ Hits        26351    26703     +352     
+ Misses       2560     2192     -368     
Flag Coverage Δ
e2e 49.60% <ø> (-1.31%) ⬇️
integration 26.01% <ø> (?)
unit 89.59% <ø> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

see 28 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Member

@BeryJu BeryJu left a comment

Choose a reason for hiding this comment

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

LGTM, I'll merge this and review your other open PRs next week 🎉

Copy link
Member

@rissson rissson left a comment

Choose a reason for hiding this comment

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

LGTM as well. Can we apply something similar for outposts?

@PKizzle
Copy link
Contributor Author

PKizzle commented Oct 31, 2023

Sure, the same changes can be applied to all images that run go build.

@rissson
Copy link
Member

rissson commented Oct 31, 2023

Do you want to do it?

@PKizzle
Copy link
Contributor Author

PKizzle commented Nov 1, 2023

I have updated the PR.

Copy link

netlify bot commented Nov 1, 2023

Deploy Preview for authentik ready!

Name Link
🔨 Latest commit f237485
🔍 Latest deploy log https://app.netlify.com/sites/authentik/deploys/654198314592fa00082e03da
😎 Deploy Preview https://deploy-preview-7355--authentik.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
1 paths audited
Performance: 96 (no change from production)
Accessibility: 90 (no change from production)
Best Practices: 100 (no change from production)
SEO: 80 (no change from production)
PWA: -
View the detailed breakdown and full score reports

To edit notification comments on pull requests, go to your Netlify site configuration.

@rissson
Copy link
Member

rissson commented Nov 1, 2023

I think we're missing the ldap.Dockerfile still

@PKizzle PKizzle requested a review from rissson November 1, 2023 17:04
@PKizzle
Copy link
Contributor Author

PKizzle commented Nov 1, 2023

I have changed that Dockerfile as well.

@PKizzle PKizzle requested a review from BeryJu November 1, 2023 17:04
@BeryJu BeryJu merged commit e92bda2 into goauthentik:main Nov 1, 2023
62 of 63 checks passed
@BeryJu
Copy link
Member

BeryJu commented Nov 3, 2023

/cherry-pick version-2023.10

gcp-cherry-pick-bot bot pushed a commit that referenced this pull request Nov 3, 2023
* Improve multi arch Docker image build speed

Use only host architecture for GeoIP database update and for Go cross-compilation

* Speedup Go multi-arch compilation for other images

* Speedup multi-arch ldap image build
@PKizzle PKizzle deleted the feature/multi-arch-docker-build branch November 3, 2023 11:06
BeryJu pushed a commit that referenced this pull request Nov 3, 2023
…#7426)

root: Improve multi arch Docker image build speed (#7355)

* Improve multi arch Docker image build speed

Use only host architecture for GeoIP database update and for Go cross-compilation

* Speedup Go multi-arch compilation for other images

* Speedup multi-arch ldap image build

Co-authored-by: Philipp Kolberg <39984529+PKizzle@users.noreply.github.com>
kensternberg-authentik added a commit that referenced this pull request Nov 3, 2023
* main:
  translate: Updates for file web/xliff/en.xlf in fr (#7416)
  website: bump react-tooltip from 5.21.6 to 5.22.0 in /website (#7412)
  core: bump selenium from 4.14.0 to 4.15.0 (#7411)
  core: bump django from 4.2.6 to 4.2.7 (#7413)
  web: bump the eslint group in /web with 1 update (#7414)
  web: bump the eslint group in /tests/wdio with 1 update (#7415)
  root: Improve multi arch Docker image build speed (#7355)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants