Stream: dev

Topic: Fast Redeploy Dataverse using Netbeans + Docker (OS Ubuntu)


view this post on Zulip koharudin mahid (Nov 24 2024 at 23:33):

Hi everyone, i've installed dataverse on Docker, as you can see the pictures below
image.png
image.png
image.png

view this post on Zulip koharudin mahid (Nov 24 2024 at 23:40):

I set up the server in NetBeans to connect with Payara on Docker (remote).
image.png
image.png
image.png
image.png

view this post on Zulip koharudin mahid (Nov 25 2024 at 01:30):

Login payara admin, undeploy the existing dataverse on payara.
image.png
image.png

Log from the dev_dataverse container during the undeploy process.
image.png

view this post on Zulip koharudin mahid (Nov 25 2024 at 01:43):

Debug dataverse project

image.png
image.png

view this post on Zulip koharudin mahid (Nov 25 2024 at 01:47):

Run Project Dataverse
image.png
image.png
image.png

view this post on Zulip koharudin mahid (Nov 25 2024 at 01:49):

After waiting for a long time, no Dataverse was deployed on the Payara server. Are there any steps I missed? Thank you for your attention and help.

view this post on Zulip Philip Durbin ๐Ÿš€ (Nov 25 2024 at 02:11):

@koharudin mahid hi! One thing I do differently now than when I recorded the video is that I add "skipDeploy" like this:

mvn -Pct clean package docker:run -Dapp.skipDeploy

view this post on Zulip Philip Durbin ๐Ÿš€ (Nov 25 2024 at 02:12):

After a little while there will be a loop where it's checking if Dataverse is deployed or not. You'll see output like this over and over:

dev_bootstrap> 2024-11-25T13:47:14Z INF [HTTP] Checking the http://dataverse:8080/api/info/version ...
dev_bootstrap> 2024-11-25T13:47:14Z ERR Expectation failed error="the status code doesn't expect" actual=404 expect=200

You'll have maybe a minute or two to deploy Dataverse before it gives up. If you aren't fast enough, you'll see this:

dev_bootstrap> Error: context deadline exceeded

view this post on Zulip Philip Durbin ๐Ÿš€ (Nov 25 2024 at 02:13):

To deploy Dataverse, I do the "Debug Project" step you showed.

view this post on Zulip Philip Durbin ๐Ÿš€ (Nov 25 2024 at 02:14):

The nice thing about this "skip deploy" method is that you don't have to mess around in the Payara admin GUI (the thing you're showing running on port 4949).

view this post on Zulip Philip Durbin ๐Ÿš€ (Nov 25 2024 at 02:14):

Can you please give this "skip deploy" method a try?

view this post on Zulip koharudin mahid (Nov 26 2024 at 08:23):

Hi, After several attempts, I successfully debugged Dataverse on the Payara Docker platform.

image.png
image.png
docker-compose-coba.yml

view this post on Zulip Philip Durbin ๐Ÿš€ (Nov 26 2024 at 13:19):

@koharudin mahid great news! I'm glad you got it working!

view this post on Zulip Philip Durbin ๐Ÿš€ (Nov 26 2024 at 13:20):

It is quite fiddly, I have to admit. Not as smooth as Quarkus in dev mode, for example.


Last updated: Nov 01 2025 at 14:11 UTC