diff --git a/Dockerfile b/Dockerfile index cfe7cf7..2452550 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,8 +1,11 @@ -FROM jboss/wildfly:20.0.1.Final +FROM jboss/wildfly:22.0.1.Final LABEL description="Imixs-Muluk" LABEL maintainer="ralph.soika@imixs.com" +# Setup configuration +COPY ./docker/configuration/wildfly/* /opt/jboss/wildfly/standalone/configuration/ + # Deploy artefact ADD ./target/*.war /opt/jboss/wildfly/standalone/deployments/ diff --git a/Dockerfile-Dev b/Dockerfile-Dev index 564b730..221d676 100644 --- a/Dockerfile-Dev +++ b/Dockerfile-Dev @@ -1,8 +1,10 @@ -FROM jboss/wildfly:20.0.1.Final +FROM jboss/wildfly:22.0.1.Final LABEL description="Imixs-Muluk" LABEL maintainer="ralph.soika@imixs.com" +# Setup configuration +COPY ./docker/configuration/wildfly/* /opt/jboss/wildfly/standalone/configuration/ # Deploy artefact ADD ./target/*.war /opt/jboss/wildfly/standalone/deployments/ diff --git a/README.md b/README.md index 95db00f..fc1f4e9 100644 --- a/README.md +++ b/README.md @@ -9,11 +9,15 @@ Muluk is a super simple WebService Monitor. Muluk watches your web services and # How to Start -Muluk is hosted on Docker-Hub. So you simply need Docker to run Muluk as a Web Service on any kind of server within you private network or in the itnernet. +Muluk is hosted on Docker-Hub. So you simply need Docker to run Muluk as a Web Service on any kind of server within you private network or in the Internet. - + $ docker run \ + -e TZ="CET" \ + -e LANG="en_US.UTF-8" \ + -v $PWD/config.xml:/opt/jboss/config.xml \ + -p "8080:8080" \ + imixs/muluk:latest - docker run.... ## The Configuration @@ -21,7 +25,13 @@ All you need is a configuration file defining the targets to monitor. - + + + http://localhost:8080 + + + + ... @@ -31,7 +41,6 @@ All you need is a configuration file defining the targets to monitor. https://www.imixs.org Imixs-Workflow supports the BPMN 2.0 standard - https://foo.com/ my-data @@ -45,7 +54,20 @@ All you need is a configuration file defining the targets to monitor. +### Security +The Web interface is protected with a BASIC authentication security realm. You can use the default user 'admin' with the default password 'adminadmin'. + +To change the user/password you simply need to create/edit the files '*muluk-users.properties*' and '*muluk-roles.properties*' and map these files into your docker container. + + $ docker run \ + -e TZ="CET" \ + -e LANG="en_US.UTF-8" \ + -v $PWD/config.xml:/opt/jboss/config.xml \ + -v $PWD/muluk-users.properties:/opt/jboss/wildfly/standalone/configuration/muluk-users.properties \ + -v $PWD/muluk-roles.properties:/opt/jboss/wildfly/standalone/configuration/muluk-roles.properties \ + -p "8080:8080" \ + imixs/muluk:latest ## Kubernetes @@ -74,7 +96,6 @@ to start the container run: $ docker run \ -e TZ="CET" \ -e LANG="en_US.UTF-8" \ - -e MULUK_CONFIG_FILE="/opt/jboss/wildfly/config.xml" \ -v $PWD/docker/configuration/config.xml:/opt/jboss/wildfly/config.xml \ -p "8080:8080" \ imixs/muluk:latest @@ -93,7 +114,6 @@ to start the container in dev mode run: $ docker run \ -e TZ="CET" \ -e LANG="en_US.UTF-8" \ - -e MULUK_CONFIG_FILE="/opt/jboss/wildfly/config.xml" \ -v $PWD/docker/deployments:/opt/jboss/wildfly/standalone/deployments/ \ -v $PWD/docker/configuration/config.xml:/opt/jboss/wildfly/config.xml \ -p "8080:8080" \ diff --git a/config.xml b/config.xml new file mode 100644 index 0000000..db132fc --- /dev/null +++ b/config.xml @@ -0,0 +1,32 @@ + + + + + + + http://localhost:8080 + + + + + + + + + + https://www.imixs.org + Imixs-Workflow supports the BPMN 2.0 standard + + + https://manik.imixs.org/ + Manik Hot-Deploy + + + diff --git a/doc/resources/screen-01.png b/doc/resources/screen-01.png index 7a5556e..a4e7ad1 100644 Binary files a/doc/resources/screen-01.png and b/doc/resources/screen-01.png differ diff --git a/docker/configuration/wildfly/muluk-roles.properties b/docker/configuration/wildfly/muluk-roles.properties new file mode 100644 index 0000000..1d777c2 --- /dev/null +++ b/docker/configuration/wildfly/muluk-roles.properties @@ -0,0 +1 @@ +admin=org.imixs.ACCESSLEVEL.READERACCESS diff --git a/docker/configuration/wildfly/muluk-users.properties b/docker/configuration/wildfly/muluk-users.properties new file mode 100644 index 0000000..27a3faf --- /dev/null +++ b/docker/configuration/wildfly/muluk-users.properties @@ -0,0 +1,2 @@ +# Username = Password +admin=adminadmin diff --git a/docker/configuration/wildfly/sampleapp-roles.properties b/docker/configuration/wildfly/sampleapp-roles.properties deleted file mode 100644 index 9686787..0000000 --- a/docker/configuration/wildfly/sampleapp-roles.properties +++ /dev/null @@ -1,11 +0,0 @@ -admin=org.imixs.ACCESSLEVEL.MANAGERACCESS -manfred=org.imixs.ACCESSLEVEL.MANAGERACCESS -anna=org.imixs.ACCESSLEVEL.AUTHORACCESS -alex=org.imixs.ACCESSLEVEL.MANAGERACCESS -marty=org.imixs.ACCESSLEVEL.AUTHORACCESS -melman=org.imixs.ACCESSLEVEL.AUTHORACCESS -gloria=org.imixs.ACCESSLEVEL.AUTHORACCESS -skipper=org.imixs.ACCESSLEVEL.AUTHORACCESS -kowalski=org.imixs.ACCESSLEVEL.AUTHORACCESS -private=org.imixs.ACCESSLEVEL.AUTHORACCESS -rico=org.imixs.ACCESSLEVEL.AUTHORACCESS \ No newline at end of file diff --git a/docker/configuration/wildfly/sampleapp-users.properties b/docker/configuration/wildfly/sampleapp-users.properties deleted file mode 100644 index 56edf64..0000000 --- a/docker/configuration/wildfly/sampleapp-users.properties +++ /dev/null @@ -1,11 +0,0 @@ -admin=adminadmin -manfred=password -anna=password -marty=password -alex=password -melman=password -gloria=password -skipper=password -kowalski=password -private=password -rico=password \ No newline at end of file diff --git a/docker/configuration/wildfly/standalone-wildfly24-origin.xml b/docker/configuration/wildfly/standalone-origin.xml similarity index 87% rename from docker/configuration/wildfly/standalone-wildfly24-origin.xml rename to docker/configuration/wildfly/standalone-origin.xml index 4bed9e9..4bcd1e1 100644 --- a/docker/configuration/wildfly/standalone-wildfly24-origin.xml +++ b/docker/configuration/wildfly/standalone-origin.xml @@ -1,6 +1,6 @@ - + @@ -18,6 +18,7 @@ + @@ -28,11 +29,11 @@ - - + + @@ -171,12 +172,12 @@ - + - + - + false @@ -186,16 +187,16 @@ - + - + - + @@ -222,7 +223,7 @@ - + @@ -234,14 +235,11 @@ - - - - + @@ -340,53 +338,33 @@ - - - - - - - - - - - - - - - - - - - - + + + + + + + - + - - - - - + - + - + - - - @@ -420,7 +398,7 @@ - + @@ -428,10 +406,11 @@ - + - + + @@ -446,6 +425,38 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -453,7 +464,7 @@ - + @@ -463,7 +474,7 @@ - + @@ -480,9 +491,6 @@ - - - ${jboss.bind.address:127.0.0.1} @@ -513,7 +521,7 @@ - + \ No newline at end of file diff --git a/docker/configuration/wildfly/standalone.xml b/docker/configuration/wildfly/standalone.xml index 99f48ef..21df684 100644 --- a/docker/configuration/wildfly/standalone.xml +++ b/docker/configuration/wildfly/standalone.xml @@ -1,6 +1,6 @@ - + @@ -18,6 +18,7 @@ + @@ -38,12 +39,7 @@ - - - - - - + @@ -164,15 +160,10 @@ sa - - - org.h2.jdbcx.JdbcDataSource - - @@ -187,7 +178,7 @@ - + false @@ -197,16 +188,16 @@ - + - + - + @@ -245,16 +236,11 @@ - - - - - - + @@ -275,9 +261,6 @@ - - - @@ -289,12 +272,6 @@ - - - - - @@ -380,24 +357,23 @@ - - - + + - + - + - + @@ -443,7 +419,7 @@ - + @@ -452,7 +428,7 @@ - + @@ -472,6 +448,46 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -479,7 +495,7 @@ - + @@ -489,7 +505,7 @@ - + @@ -506,10 +522,6 @@ - - - - ${jboss.bind.address:127.0.0.1} diff --git a/muluk-roles.properties b/muluk-roles.properties new file mode 100644 index 0000000..cb6fbda --- /dev/null +++ b/muluk-roles.properties @@ -0,0 +1,6 @@ +################################################## +# Each user listed in the muluk-users.properties file +# must be assigned to the role org.imixs.ACCESSLEVEL.READERACCESS +# If you add additional users also assign the role here. +################################################## +admin=org.imixs.ACCESSLEVEL.READERACCESS diff --git a/muluk-users.properties b/muluk-users.properties new file mode 100644 index 0000000..8c7f0d5 --- /dev/null +++ b/muluk-users.properties @@ -0,0 +1,6 @@ +################################################## +# You can change the password here. +# Username=Password +# Optional you can add addintioal Users, if so also add the user to the muluk-roles.properties file +################################################## +admin=adminadmin diff --git a/src/main/webapp/WEB-INF/glassfish-web.xml b/src/main/webapp/WEB-INF/glassfish-web.xml deleted file mode 100644 index 65bfd7f..0000000 --- a/src/main/webapp/WEB-INF/glassfish-web.xml +++ /dev/null @@ -1,7 +0,0 @@ - - - - - / - - \ No newline at end of file diff --git a/src/main/webapp/WEB-INF/jboss-web.xml b/src/main/webapp/WEB-INF/jboss-web.xml index 2270d78..3eb029c 100644 --- a/src/main/webapp/WEB-INF/jboss-web.xml +++ b/src/main/webapp/WEB-INF/jboss-web.xml @@ -3,5 +3,8 @@ UTF-8 / - + imixsrealm + + + diff --git a/src/main/webapp/WEB-INF/web.xml b/src/main/webapp/WEB-INF/web.xml index 91d87fd..265e4f5 100644 --- a/src/main/webapp/WEB-INF/web.xml +++ b/src/main/webapp/WEB-INF/web.xml @@ -3,14 +3,30 @@ xmlns="http://java.sun.com/xml/ns/javaee" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd" version="3.0"> - Imixs Admin Client + Imixs Muluk Web Monitor - index.xhtml - - + javax.faces.PROJECT_STAGE Development + + + + BASIC + imixsrealm + + + + restricted + /* + + + org.imixs.ACCESSLEVEL.READERACCESS + + + + org.imixs.ACCESSLEVEL.READERACCESS +