Skip to content

Commit

Permalink
TESTING: rework Datasource
Browse files Browse the repository at this point in the history
issue #44
  • Loading branch information
Jaroslav380 committed Feb 4, 2025
1 parent caf34d2 commit abee23e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ FROM quay.io/wildfly/wildfly:latest-jdk21 AS build

WORKDIR /opt/jboss/wildfly/bin

RUN ./jboss-cli.sh --commands="embed-server --std-out=echo --server-config=standalone.xml, /subsystem=datasources/data-source=ExampleDS:write-attribute(name=connection-url, value=\"jdbc:h2:file:/opt/jboss/wildfly/database/gamertrackDB;DB_CLOSE_DELAY=-1;DB_CLOSE_ON_EXIT=FALSE;MODE=\${wildfly.h2.compatibility.mode:REGULAR}\")"
RUN ./jboss-cli.sh --commands="embed-server --std-out=echo --server-config=standalone.xml, /subsystem=datasources/data-source=ExampleDS:write-attribute(name=connection-url, value=\"jdbc:h2:file:/opt/jboss/wildfly/database/gamertrack1DB;DB_CLOSE_DELAY=-1;DB_CLOSE_ON_EXIT=FALSE;MODE=\${wildfly.h2.compatibility.mode:REGULAR}\")"

FROM quay.io/wildfly/wildfly:latest-jdk21
COPY --from=build /opt/jboss/wildfly/standalone/configuration/standalone.xml /opt/jboss/wildfly/standalone/configuration/standalone.xml
Expand Down

0 comments on commit abee23e

Please sign in to comment.