Stream: containers

Topic: βœ” iterating on configbaker


view this post on Zulip Philip Durbin πŸš€ (Aug 15 2023 at 20:59):

From what I understand, to rebuild configbaker I have to do a "package" of the whole Dataverse app. Is that right? I ask because it's slow. If I could rebuild just the configbaker image I would.

view this post on Zulip Oliver Bertuch (Aug 15 2023 at 22:27):

Yes you can rebuild cb only

view this post on Zulip Oliver Bertuch (Aug 15 2023 at 22:27):

Lookup DMP filter. IIRC it's docker.filter or similar

view this post on Zulip Philip Durbin πŸš€ (Aug 15 2023 at 22:40):

Great!

view this post on Zulip Philip Durbin πŸš€ (Aug 16 2023 at 13:50):

I tried mvn -Pct clean package -Ddocker.filter="gdcc/configbaker" but it didn't work.

view this post on Zulip Philip Durbin πŸš€ (Aug 16 2023 at 13:51):

https://dmp.fabric8.io says:

"In order to temporarily restrict the operation of plugin goals this configuration option can be used. Typically this will be set via the system property docker.filter when Maven is called. The value can be a single image name (either its alias or full name) or it can be a comma separated list with multiple image names. Any name which doesn’t refer an image in the configuration will be ignored."

view this post on Zulip Philip Durbin πŸš€ (Aug 16 2023 at 13:51):

https://stackoverflow.com/questions/74239993/fabric8-docker-maven-plugin-how-to-tag-just-one-image-dockertag isn't very helpful

view this post on Zulip Philip Durbin πŸš€ (Aug 31 2023 at 13:11):

I just tried mvn -Pct clean package -Ddocker.filter=dev_bootstrap but it's still slow and still builds dataverse-5.14.jar.

view this post on Zulip Oliver Bertuch (Aug 31 2023 at 13:23):

Does mvn -Pct docker:run -Ddocker.filter=dev_bootstrap run more than just the configbakery?

view this post on Zulip Oliver Bertuch (Aug 31 2023 at 13:24):

And can you try "docker:build" instead of "package"?

view this post on Zulip Oliver Bertuch (Aug 31 2023 at 13:25):

Oh wait - "package" obviously will do compilation and packaging of the Java app... That's not really avoidable because these are just the normal Maven steps, triggered by the "package" target

view this post on Zulip Oliver Bertuch (Aug 31 2023 at 13:25):

So if you want to avoid compilation etc, you will have to go for "docker:build"

view this post on Zulip Philip Durbin πŸš€ (Aug 31 2023 at 14:28):

Thanks, I think it's working!!!

mvn -Pct docker:build -Ddocker.filter=dev_bootstrap

view this post on Zulip Oliver Bertuch (Aug 31 2023 at 14:30):

As mentioned, go try mvn -Pct docker:build docker:run -Ddocker.filter=dev_bootstrap to build and execute in the same go!

view this post on Zulip Philip Durbin πŸš€ (Sep 06 2023 at 20:03):

I just tried messing with a script in configbaker (modules/container-configbaker/scripts/bootstrap.sh) as part of #containers > running using compose and the above worked fine!

view this post on Zulip Philip Durbin πŸš€ (Sep 06 2023 at 20:03):

Before resolving this, we should document it. Or at least add it to a list of things to document.

view this post on Zulip Philip Durbin πŸš€ (Sep 06 2023 at 20:17):

I just created a PR: https://github.com/IQSS/dataverse/pull/9885

view this post on Zulip Notification Bot (Sep 07 2023 at 10:47):

Philip Durbin has marked this topic as resolved.


Last updated: Oct 30 2025 at 05:14 UTC