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

Apply review changes from the gtk3 build to the gtk4 builder #2803

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jonahgraham
Copy link
Contributor

@jonahgraham jonahgraham commented Feb 3, 2025

As the new swtgtk3nativebuild was copied from this Dockerfile and there is the hope to keep them as similar as possible I have applied the changes as discussed in #2802

  • Normalize end of file newlines
  • Remove JDK

@HannesWell
Copy link
Member

HannesWell commented Feb 3, 2025

Thanks for this, I really appreciate it.

Could you also remove the installation of the default -jdk and the set of the SWT environment variable. That shouldn't be necessary as well.

As the new swtgtk3nativebuild was copied from this Dockerfile
and there is the hope to keep them as similar as possible
I have applied the changes as discussed in eclipse-platform#2802

- Normalize end of file newlines
- Remove JDK
@jonahgraham
Copy link
Contributor Author

With commit 390e234 the diffs are now really minimal between the two:

$ diff -ru swtnativebuild/ swtgtk3nativebuild/
diff -ru swtnativebuild/Dockerfile swtgtk3nativebuild/Dockerfile
--- swtnativebuild/Dockerfile   2025-02-03 18:40:54.697327107 -0500
+++ swtgtk3nativebuild/Dockerfile       2025-02-03 18:41:50.882433027 -0500
@@ -1,4 +1,4 @@
-FROM debian:12
+FROM debian:10
 
 ### user name recognition at runtime w/ an arbitrary uid - for OpenShift deployments
 COPY scripts/uid_entrypoint /usr/local/bin/uid_entrypoint
@@ -14,7 +14,6 @@
       procps \
       git \
       libgtk-3-dev \
-      libgtk-4-dev \
       freeglut3-dev \
       webkit2gtk-driver

Commit message/summary updated too.

@jonahgraham jonahgraham changed the title Add missing newline at end of file Apply review changes from the gtk3 build to the gtk4 builder Feb 3, 2025
@@ -16,8 +16,7 @@ RUN apt-get update -qq && apt-get install -qq -y \
libgtk-3-dev \
libgtk-4-dev \
freeglut3-dev \
webkit2gtk-driver \
default-jdk
Copy link
Contributor

Choose a reason for hiding this comment

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

I would keep the default jdk as we need it for compilation (the headers at least) and installing it afterwards safe some space in the image, but then we need to download (and install) this saved thing afterwards. Also it would hinder others to use the docker image outside the jenkinsbuild,

Copy link
Member

Choose a reason for hiding this comment

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

As explained in #2802 (comment), that's not necessary because that's what is already happening.

Also it would hinder others to use the docker image outside the jenkinsbuild,

I don't think that's a relevant use-case for that docker-image. We have only considered the requirements of our use-case in releng/swt/equinox for these images in the past.

@@ -32,6 +31,5 @@ RUN chgrp -R 0 ${HOME} && chmod -R g=u ${HOME}

RUN localedef -i en_US -f UTF-8 en_US.UTF-8
ENV LANG=en_US.UTF-8
ENV SWT_JAVA_HOME=/usr/lib/jvm/default-java/
Copy link
Contributor

Choose a reason for hiding this comment

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

the build scripts require this setting, and this is the "swtnativebuild" image so I think it is valid to have this

Copy link
Member

Choose a reason for hiding this comment

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

As above (#2803 (comment)), that's already set by the corresponding Jenkinsfiles if necessary.

@jonahgraham
Copy link
Contributor Author

@laeubi and @HannesWell have differing opinions on the topic of including JDK or not. My experience with CDT (which uses a single docker image and cross compiles for windows/mac and other linux archs from it) is quite different than Platform that has many many different machines to manage. @HannesWell explains it better in #2802 (comment)

Therefore I think this change is now complete and ready for review + merge.

Copy link
Member

@HannesWell HannesWell left a comment

Choose a reason for hiding this comment

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

Therefore I think this change is now complete and ready for review + merge.

Yes, from my POV this is also ready.

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