Update Dockerfile to use multi-stage builds#4746
Conversation
efbd9e1 to
dace4b4
Compare
c93e88f to
998daa5
Compare
| && rbenv global ${RUBY_VERSION} \ | ||
| && gem install bundler cocoapods | ||
|
|
||
| # Install 'CocoaPods'. As https://github.com/CocoaPods/CocoaPods/pull/10609 is needed but not yet released. |
There was a problem hiding this comment.
CocoaPods/CocoaPods#10609 was merged and I believe also released?
There was a problem hiding this comment.
Maybe, but i do not want change this since is this way on upstream Dockerfile. If we merge, then in later step i change to newer version of CocoaPods.
There was a problem hiding this comment.
Please see again how this is now done in the "legacy" Dockerfile.
0106250 to
25d0408
Compare
This comment has been minimized.
This comment has been minimized.
ef532fa to
dfe9dcc
Compare
3ce67da to
1e59dca
Compare
c219a54 to
319991d
Compare
Signed-off-by: Helio Chissini de Castro <helio.chissini-de-castro@bmw.de>
Signed-off-by: Helio Chissini de Castro <helio.chissini-de-castro@bmw.de>
Signed-off-by: Helio Chissini de Castro <helio.chissini-de-castro@bmw.de>
- User, user id and group id can now be passed as ARGs, USERNAME, USER_ID and USER_GID rescpectively - Moved the order of main container package install to allow sudo been enabled Signed-off-by: Helio Chissini de Castro <helio.chissini-de-castro@bmw.de>
Signed-off-by: Helio Chissini de Castro <helio.chissini-de-castro@bmw.de>
Signed-off-by: Helio Chissini de Castro <helio.chissini-de-castro@bmw.de>
Signed-off-by: Helio Chissini de Castro <helio.chissini-de-castro@bmw.de>
- Python default version is 3.10.2 - Python2 can be optionally installed through build-arg PYTHON2_VERSION - Scancode build was removed in favor of pip based version Signed-off-by: Helio Chissini de Castro <helio.chissini-de-castro@bmw.de>
Signed-off-by: Helio Chissini de Castro <helio.chissini-de-castro@bmw.de>
Signed-off-by: Helio Chissini de Castro <helio.chissini-de-castro@bmw.de>
Signed-off-by: Helio Chissini de Castro <helio.chissini-de-castro@bmw.de>
Signed-off-by: Helio Chissini de Castro <helio.chissini-de-castro@bmw.de>
Signed-off-by: Helio Chissini de Castro <helio.chissini-de-castro@bmw.de>
- Update Ruby to 3.1.2 ( ssl3 ) - Update PHP composer to latest using installer - Update PIP - Move work user to Ort to be Batect compliant - Update NodeJS for current LTS Signed-off-by: Helio Chissini de Castro <helio.chissini-de-castro@bmw.de>
…mand line Signed-off-by: Helio Chissini de Castro <helio.chissini-de-castro@bmw.de>
Signed-off-by: Helio Chissini de Castro <helio.chissini-de-castro@bmw.de>
Signed-off-by: Helio Chissini de Castro <helio.chissini-de-castro@bmw.de>
- Move python packages to last stage to redice big copy and permission long chmod - Change android sdk permissions - Install pnpm ( missing ) - Update npm version - Fix pyenv version Signed-off-by: Helio Chissini de Castro <helio.chissini-de-castro@bmw.de>
- Add locale on image defaults to en_US.UTF-8 Signed-off-by: Helio Chissini de Castro <helio.chissini-de-castro@bmw.de>
Signed-off-by: Helio Chissini de Castro <helio.chissini-de-castro@bmw.de>
… poetry Signed-off-by: Helio Chissini de Castro <helio.chissini-de-castro@bmw.de>
- Fix android sdk folder permissions - Add buildx as default docker engine build and add implicit amd64 to build on non x86 based systems Signed-off-by: Helio Chissini de Castro <helio.chissini-de-castro@bmw.de>
|
Cross-posting from Slack: Please don't merge this with a whopping 43 (!) commits in the history. I guess most of this should be squashable, or? |
sschuberth
left a comment
There was a problem hiding this comment.
Sorry, the Git history in this PR is a mess. I'm blocking the merge until the TSC has decided on how to proceed.
| ENV LC_ALL=en_US.UTF-8 | ||
|
|
||
| RUN echo $LANG > /etc/locale.gen | ||
| RUN echo $LANG > /etc/locale.gen \ |
There was a problem hiding this comment.
How is this related to "Make batect understand entrypoint"?
|
@mnonnenmacher @MarcelBochtler @fviernau could you live with the Git history in this PR? |
@sschuberth I would not merge it like this, because just from a short look I see so many issues:
And this is not the complete list. I understand that this PR was worked on for almost a year now, and that this was probably a bit frustrating. So I want to thank @heliocastro for being to persistent with your efforts to improve our Docker setup. But nevertheless this PR should follow our standards. We have put a lot of effort into maintaining a clean Git history for this project because it brings a lot of benefits, and I would not like to ignore this now just because someone has an urge to merge these changes. My suggestion to move this forward in a clean way would be to squash all changes into just a few commits, so that the PR can be reviewed properly, for example:
@sschuberth @fviernau @MarcelBochtler Does one of you maybe have a better idea how to clean this up? And as a general comment, if you work on a contribution that takes a long time, to a project with mandatory code review, it is super important to rebase your changes on top of the current main branch on a regular basis. Yes, this can be a lot of work, but it is the responsibility of the author to make sure that their changes are in a reviewable state. |
Looks like a clean-up was already done in #5760. I'll close this PR in favor of that one. Let's continue the discussion over there. |
Uh oh!
There was an error while loading. Please reload this page.