Open martin-v opened 7 months ago
@martin-v , when using the cloud feature-pack, the server configuration is updated differently than on bare-metal. The environment variable PORT_OFFSET (https://github.com/wildfly/wildfly-cekit-modules/blob/main/jboss/container/wildfly/launch/port-offset/module.yaml) is to be used in order to set a port offset. The server shutdown in a cloud environment retrieves the offset thanks to this env variable (https://github.com/wildfly/wildfly-cekit-modules/blob/main/jboss/container/wildfly/run/bash/artifacts/opt/jboss/container/wildfly/run/run-utils.sh#L36).
@jfdenise Thanks for the reply! Can you show me an example configuration with the correct configuration? Didn't find anything and my guess, didn't work.
<env>
<PORT_OFFSET>3</PORT_OFFSET>
</env>
Use case is I have different services and want to run/debug them in parallel.
I don't think actually that you will manage to run the server with a PORT_OFFSET. The cloud server is dedicated to run inside WildFly runtime docker image. The problem is that run goal calls bin/standalone.sh although to have the PORT_OFFSET to be taken into account, the launcher: bin/openshift-launch.sh needs to be called. I suggest that you don't build a cloud server when launching the server using the run goal.
@martin-v , I think that we could make a small change in order to have the standalone.sh be usable with PORT_OFFSET. I will use this issue to track progress.
Hi,
the following POM doesn't respect the javaOpts port config for
wildfly:run
orwildfly:dev
. In case I remove the cloud-galleon-pack it works as expected (e.g. Admin console listening on :9993).(Ignore the "The server did not start within 60 seconds." this is caused by https://issues.redhat.com/browse/WFMP-244)