diff --git a/doc/amq/Dockerfile b/doc/amq/Dockerfile new file mode 100644 index 00000000..f855db25 --- /dev/null +++ b/doc/amq/Dockerfile @@ -0,0 +1,20 @@ +FROM opensuse/leap:15.5 +ARG AMQ_VERSION=2.31.0 + +ENV ARTEMIS_USER holarse +ENV ARTEMIS_PASSWORD geheim +ENV ANONYMOUS_LOGIN false + +RUN zypper ref && zypper in -y java-17-openjdk-headless wget tar gzip libaio +RUN mkdir -p /opt/ +WORKDIR /opt/ +RUN wget "https://www.apache.org/dyn/closer.cgi?filename=activemq/activemq-artemis/${AMQ_VERSION}/apache-artemis-${AMQ_VERSION}-bin.tar.gz&action=download" -O apache-artemis-${AMQ_VERSION}-bin.tar.gz +RUN tar xvzf apache-artemis-${AMQ_VERSION}-bin.tar.gz +RUN /opt/apache-artemis-${AMQ_VERSION}/bin/artemis create --no-amqp-acceptor --no-hornetq-acceptor --no-mqtt-acceptor --no-stomp-acceptor --home /opt/apache-artemis-${AMQ_VERSION}/ --user ${ARTEMIS_USER} --password ${ARTEMIS_PASSWORD} --queues drueckblick,import,mail,searchidx --http-host 0.0.0.0 --relax-jolokia --require-login holaq + +EXPOSE 8161 +EXPOSE 61616 + +VOLUME /opt/holaq/data/journal + +CMD /opt/holaq/bin/artemis run --relax-jolokia diff --git a/doc/docker-compose.yml b/doc/docker-compose.yml index df234ae9..848dd0e2 100644 --- a/doc/docker-compose.yml +++ b/doc/docker-compose.yml @@ -12,8 +12,29 @@ services: ports: - 5432:5432 volumes: - - my_pgdata:/var/lib/postgresql/data - + - website_my_pgdata:/var/lib/postgresql/data + amq: + image: holarse/amq:1 + restart: always + ports: + - 8161:8161 + - 61616:61616 + volumes: + - amq_journal_data:/opt/holaq/data + app: + image: tomcat:11.0-jdk21-openjdk + restart: always + ports: + - 8080:8080 + volumes: + - './tomcat/conf/context.xml:/usr/local/tomcat/conf/context.xml' + - './tomcat/conf/server.xml:/usr/local/tomcat/conf/server.xml' + - './tomcat/conf/tomcat-users.xml:/usr/local/tomcat/conf/tomcat-users.xml' + - './tomcat/lib/postgresql-42.3.1.jar:/usr/local/tomcat/lib/postgresql-42.3.1.jar' volumes: - my_pgdata: + website_my_pgdata: + external: true + amq_journal_data: + external: true + diff --git a/doc/tomcat/README.md b/doc/tomcat/README.md deleted file mode 100644 index 290fbd2f..00000000 --- a/doc/tomcat/README.md +++ /dev/null @@ -1,51 +0,0 @@ -# Application Server Setup - -## Apache Tomcat 9.x -``` -wget https://artfiles.org/apache.org/tomcat/tomcat-9/v9.0.46/bin/apache-tomcat-9.0.46.tar.gz -tar xfvz apache-tomcat-9.0.46.tar.gz -``` - -## PostgreSQL-JDBC-Treiber -``` -wget https://jdbc.postgresql.org/download/postgresql-42.2.20.jar -O apache-tomcat-9.0.46/lib/postgresql-42.2.20.jar -``` - -## Konfiguration -### Benutzer -In der Datei `conf/tomcat-users.xml` im Abschnitt `` folgende Rolle und Benutzer anlegen: -``` - - - -``` - -### Resource -In der Datei `conf/server.xml` im Abschnitt `` folgende Resource anlegen: - -``` - -``` - -### JNDI-Resource -In der Datei `conf/context.xml` im Abschnitt `` die JNDI-Resource definieren: - -``` - -``` - diff --git a/doc/tomcat/conf/context.xml b/doc/tomcat/conf/context.xml new file mode 100644 index 00000000..472d1db2 --- /dev/null +++ b/doc/tomcat/conf/context.xml @@ -0,0 +1,33 @@ + + + + + + + + WEB-INF/web.xml + WEB-INF/tomcat-web.xml + ${catalina.base}/conf/web.xml + + + + + + diff --git a/doc/tomcat/conf/server.xml b/doc/tomcat/conf/server.xml new file mode 100644 index 00000000..fa1219be --- /dev/null +++ b/doc/tomcat/conf/server.xml @@ -0,0 +1,170 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/doc/tomcat/conf/tomcat-users.xml b/doc/tomcat/conf/tomcat-users.xml new file mode 100644 index 00000000..74ec076e --- /dev/null +++ b/doc/tomcat/conf/tomcat-users.xml @@ -0,0 +1,54 @@ + + + + + + + + + diff --git a/doc/tomcat/lib/postgresql-42.3.1.jar b/doc/tomcat/lib/postgresql-42.3.1.jar new file mode 100644 index 00000000..17af3fcd Binary files /dev/null and b/doc/tomcat/lib/postgresql-42.3.1.jar differ diff --git a/holarse-domain.xml b/holarse-domain.xml deleted file mode 100644 index ac537eb6..00000000 --- a/holarse-domain.xml +++ /dev/null @@ -1,209 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/nb-configuration.xml b/nb-configuration.xml deleted file mode 100644 index d9e80591..00000000 --- a/nb-configuration.xml +++ /dev/null @@ -1,27 +0,0 @@ - - - - - - Tomcat - ide - gpl30 - /less:/css - false - false - - - /scss:/css - 10-web - -