Stream: containers

Topic: โœ” can't build Payara 6 base image


view this post on Zulip Philip Durbin ๐Ÿš€ (Jul 25 2023 at 13:15):

I'm on an M2 Mac and trying to build the base image from the 8305-payara6-ee10-v3 branch.

I'm seeing "Command start-domain failed" and [INFO] DOCKER> ERROR: failed to solve: process "/bin/bash -euo pipefail -c # Set admin password

view this post on Zulip Philip Durbin ๐Ÿš€ (Jul 25 2023 at 13:16):

Here's the output:
p6builderr.txt

view this post on Zulip Philip Durbin ๐Ÿš€ (Jul 25 2023 at 13:16):

Any ideas? :sweat_smile:

view this post on Zulip Philip Durbin ๐Ÿš€ (Jul 27 2023 at 18:14):

@Thomas van Erven since you mentioned M1/M2, lemme know if you have time to try to reproduce this. :big_smile:

view this post on Zulip Thomas van Erven (Jul 28 2023 at 10:35):

I'll ask a colleague next Monday; I don't have a M2 nor have intentions to use it : )

view this post on Zulip Don Sizemore (Jul 28 2023 at 11:56):

Philip Durbin said:

Any ideas? :sweat_smile:

I thought you all were building with Ubuntu? That matches the stack trace Payara generated on fresh installs when the latest RHEL-packaged OpenJDK failed to include tzdata-java as a dependency.

view this post on Zulip Philip Durbin ๐Ÿš€ (Jul 31 2023 at 12:09):

Yes, the base image is Ubuntu but from my Mac (M2 at home and Intel at work), I've been running this to build the base image locally:

mvn -Pct -f modules/container-base install

It works on the intel Mac but not the M2. I'm not sure why.

view this post on Zulip Oliver Bertuch (Aug 09 2023 at 12:23):

I looked into your error log

view this post on Zulip Oliver Bertuch (Aug 09 2023 at 12:23):

Did you see that there was a Java EE OSGI error refusing to load >6.0?

view this post on Zulip Notification Bot (Aug 09 2023 at 12:24):

2 messages were moved here from #containers > base image build matrix by Oliver Bertuch.

view this post on Zulip Philip Durbin ๐Ÿš€ (Aug 09 2023 at 12:29):

No, I didn't notice that.

view this post on Zulip Philip Durbin ๐Ÿš€ (Aug 09 2023 at 12:29):

Should we try building an arm image using GitHub Actions?

view this post on Zulip Oliver Bertuch (Aug 09 2023 at 12:36):

I'm not sure what you mean - we do build ARM images using GHA already?

view this post on Zulip Philip Durbin ๐Ÿš€ (Aug 09 2023 at 13:14):

For PRs we build app and configbaker but not base: https://github.com/IQSS/dataverse/pull/9685#issuecomment-1670371449

view this post on Zulip Oliver Bertuch (Aug 09 2023 at 13:28):

Oh. Yeah. True. Should we do that? Is it worth the extra minutes? We would need to push the image to some registry though - we can't keep both architectures in the local cache

view this post on Zulip Oliver Bertuch (Aug 09 2023 at 13:29):

We could push a P6 image manually for the time being to some place. It's not like we are altering much in the base image so far.

view this post on Zulip Philip Durbin ๐Ÿš€ (Aug 09 2023 at 16:09):

Yes, we should push the base image somewhere.

view this post on Zulip Philip Durbin ๐Ÿš€ (Aug 09 2023 at 16:10):

Not necessarily on every commit. Maybe manually with workflow dispatch?

view this post on Zulip Philip Durbin ๐Ÿš€ (Aug 10 2023 at 10:35):

@Oliver Bertuch is there something you'd like me to try on my M2? I have a couple hours until I bike to work.

view this post on Zulip Oliver Bertuch (Aug 10 2023 at 11:00):

We could try stuff if you want to

view this post on Zulip Oliver Bertuch (Aug 10 2023 at 11:00):

I'm around

view this post on Zulip Oliver Bertuch (Aug 10 2023 at 11:01):

Want me to light the fire in a Zoom room?

view this post on Zulip Philip Durbin ๐Ÿš€ (Aug 10 2023 at 11:01):

Sure, but gimme 5 min plz

view this post on Zulip Philip Durbin ๐Ÿš€ (Aug 10 2023 at 11:10):

@Oliver Bertuch https://harvard.zoom.us/j/94466543559?pwd=MC9ZVTFNT3RHd1JvbWE5V21YR2JXdz09

view this post on Zulip Oliver Bertuch (Aug 10 2023 at 11:11):

Now people are asking me to join a work meeting. Sry. Raincheck? (Hopefully will not take very long)

view this post on Zulip Philip Durbin ๐Ÿš€ (Aug 10 2023 at 11:12):

Raincheck is fine. I'll go eat breakfast. :big_smile:

view this post on Zulip Oliver Bertuch (Aug 10 2023 at 12:21):

Done. Should we give it a go?

view this post on Zulip Philip Durbin ๐Ÿš€ (Aug 10 2023 at 12:23):

Sure, but don't make me late for the ct meeting in an hour. I still need to bike to work. https://harvard.zoom.us/j/92566286460?pwd=bzdKamdrM09oYUQrdktqcmZtNTl3QT09

view this post on Zulip Philip Durbin ๐Ÿš€ (Aug 10 2023 at 12:37):

This seems to help!
mvn clean -f modules/container-base

view this post on Zulip Oliver Bertuch (Aug 10 2023 at 12:38):

My educated guess: the builder saves a state locally to reuse cached layers. Probably you got caught in the middle here, so cleaning up the target dir removed that state and you're good to go again.

view this post on Zulip Philip Durbin ๐Ÿš€ (Aug 10 2023 at 12:43):

It worked! Thanks, @Oliver Bertuch ! :dataverse_man:

view this post on Zulip Notification Bot (Aug 10 2023 at 14:50):

Philip Durbin has marked this topic as resolved.


Last updated: Oct 30 2025 at 05:14 UTC