Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a79e7a81f3 | ||
|
|
0183bd124e | ||
|
|
d9610dd781 | ||
|
|
26aba7fda3 | ||
|
|
d5fca63168 | ||
|
|
8ff2bb62d1 | ||
|
|
a0caac22d0 | ||
|
|
09e221c100 | ||
|
|
04c5d352b4 | ||
|
|
540479ff53 | ||
|
|
6c08335fea | ||
|
|
01ab1eaa56 | ||
|
|
cfd2409cc9 | ||
|
|
67a530d5c5 | ||
|
|
ed07a702d0 | ||
|
|
013d8831a1 | ||
|
|
ffe484690e | ||
|
|
d8aff21b20 | ||
|
|
77cb630320 | ||
|
|
42775f4fd8 | ||
|
|
63de0a32bb | ||
|
|
2d66c4d94f | ||
|
|
2615215bd9 |
@@ -8,18 +8,18 @@ Additionally you will find the source files for modifying the core images in cas
|
|||||||
## Installation: ##
|
## Installation: ##
|
||||||
In order to install metasfresh in a docker environment you're free to follow this guide:
|
In order to install metasfresh in a docker environment you're free to follow this guide:
|
||||||
|
|
||||||
[Install metasfresh on Docker](http://docs.metasfresh.org/installation_collection/EN/How_do_I_setup_the_metasfresh_stack_using_Docker.html)
|
[Install metasfresh on Docker](https://docs.metasfresh.org/installation_collection/EN/How_do_I_setup_the_metasfresh_stack_using_Docker.html)
|
||||||
|
|
||||||
[Install metasfresh on Docker - SSL](http://docs.metasfresh.org/installation_collection/EN/How_do_I_setup_metasfresh_docker_with_ssl.html)
|
[Install metasfresh on Docker - SSL](https://docs.metasfresh.org/installation_collection/EN/How_do_I_setup_metasfresh_docker_with_ssl.html)
|
||||||
## Guides: ##
|
## Guides: ##
|
||||||
|
|
||||||
* [Create a database backup](http://docs.metasfresh.org/howto_collection/EN/How_do_I_backup_metasfresh_docker.html)
|
* [Create a database backup](https://docs.metasfresh.org/installation_collection/EN/How_do_I_backup_metasfresh_docker.html)
|
||||||
|
|
||||||
* [Update your metasfresh-docker installation](http://docs.metasfresh.org/howto_collection/EN/How_do_I_update_metasfresh_using_Docker.html)
|
* [Update your metasfresh-docker installation](https://docs.metasfresh.org/howto_collection/EN/How_do_I_update_metasfresh_using_Docker.html)
|
||||||
|
|
||||||
* [Use the Java Swing Client with metasfresh-docker](http://docs.metasfresh.org/howto_collection/EN/How_do_I_use_Java_Client_using_Docker.html)
|
* [Use the Java Swing Client with metasfresh-docker](https://docs.metasfresh.org/howto_collection/EN/How_do_I_use_Java_Client_using_Docker.html)
|
||||||
|
|
||||||
* [Run multiple metasfresh-docker stacks / Change webui ports](http://docs.metasfresh.org/installation_collection/EN/How_do_I_change_the_webui_ports_for_metasfresh_docker.html)
|
* [Run multiple metasfresh-docker stacks / Change webui ports](https://docs.metasfresh.org/installation_collection/EN/How_do_I_change_the_webui_ports_for_metasfresh_docker.html)
|
||||||
|
|
||||||
## Frequent Questions: ##
|
## Frequent Questions: ##
|
||||||
* **Q: Where are the database files located at?**
|
* **Q: Where are the database files located at?**
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
FROM metasfresh/metasfresh-app:5.173
|
FROM metasfresh/metasfresh-app:5.174
|
||||||
|
|
||||||
COPY sources/configs/* /opt/metasfresh/
|
COPY sources/configs/* /opt/metasfresh/
|
||||||
COPY sources/start_app.sh /opt/metasfresh/
|
COPY sources/start_app.sh /opt/metasfresh/
|
||||||
|
|||||||
@@ -10,7 +10,6 @@ PID_FOLDER=/opt/metasfresh
|
|||||||
|
|
||||||
JAVA_OPTS="\
|
JAVA_OPTS="\
|
||||||
-Xmx1024M\
|
-Xmx1024M\
|
||||||
-XX:MaxPermSize=512M\
|
|
||||||
-XX:+HeapDumpOnOutOfMemoryError\
|
-XX:+HeapDumpOnOutOfMemoryError\
|
||||||
-DPropertyFile=/opt/metasfresh/metasfresh.properties\
|
-DPropertyFile=/opt/metasfresh/metasfresh.properties\
|
||||||
-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=8788\
|
-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=8788\
|
||||||
|
|||||||
@@ -53,12 +53,21 @@ run_metasfresh()
|
|||||||
# info: https://docs.oracle.com/cd/E26362_01/E40761/html/known-bugs-issues.html
|
# info: https://docs.oracle.com/cd/E26362_01/E40761/html/known-bugs-issues.html
|
||||||
# https://stackoverflow.com/a/19379760
|
# https://stackoverflow.com/a/19379760
|
||||||
|
|
||||||
|
#2019-01-29 jb: added '-XX:HeapDumpPath=/opt/metasfresh/heapdump' to java opts
|
||||||
|
# gh issue: https://github.com/metasfresh/metasfresh-docker/issues/41
|
||||||
|
|
||||||
|
#2022-04-23 ts: added '-Dloader.path=/opt/metasfresh/external-lib':
|
||||||
|
# Allow loading jars from /opt/metasfresh/external-lib.
|
||||||
|
# This assumes that the app uses PropertiesLauncher (can be verified by opening the jar e.g. with 7-zip and checking META-INF/MANIFEST.MF)
|
||||||
|
# Also see https://docs.spring.io/spring-boot/docs/current/reference/html/executable-jar.html#executable-jar-property-launcher-features
|
||||||
|
|
||||||
cd /opt/metasfresh/ && java \
|
cd /opt/metasfresh/ && java \
|
||||||
-Dsun.misc.URLClassPath.disableJarChecking=true \
|
-Dsun.misc.URLClassPath.disableJarChecking=true \
|
||||||
-Xmx1024M -XX:MaxPermSize=512M \
|
-Xmx1024M \
|
||||||
-XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/opt/metasfresh/heapdump \
|
-XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/opt/metasfresh/heapdump \
|
||||||
-DPropertyFile=/opt/metasfresh/metasfresh.properties \
|
-DPropertyFile=/opt/metasfresh/metasfresh.properties \
|
||||||
-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=8788 \
|
-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=8788 \
|
||||||
|
-Dloader.path=/opt/metasfresh/external-lib \
|
||||||
-Dcom.sun.net.ssl.enableECC=false \
|
-Dcom.sun.net.ssl.enableECC=false \
|
||||||
-jar metasfresh_server.jar
|
-jar metasfresh_server.jar
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
FROM metasfresh/metasfresh-db:5.173
|
FROM metasfresh/metasfresh-db:5.174
|
||||||
|
|
||||||
RUN localedef -i de_DE -c -f UTF-8 -A /usr/share/locale/locale.alias de_DE.UTF-8
|
RUN localedef -i de_DE -c -f UTF-8 -A /usr/share/locale/locale.alias de_DE.UTF-8
|
||||||
RUN localedef -i en_US -c -f UTF-8 -A /usr/share/locale/locale.alias en_US.UTF-8
|
RUN localedef -i en_US -c -f UTF-8 -A /usr/share/locale/locale.alias en_US.UTF-8
|
||||||
@@ -7,6 +7,6 @@ ENV LANG=de_DE.UTF-8
|
|||||||
ENV LANGUAGE=en_US.UTF-8
|
ENV LANGUAGE=en_US.UTF-8
|
||||||
ENV LC_MESSAGES=en_US.UTF-8
|
ENV LC_MESSAGES=en_US.UTF-8
|
||||||
|
|
||||||
ENTRYPOINT ["/docker-entrypoint.sh"]
|
ENTRYPOINT ["/usr/local/bin/docker-entrypoint.sh"]
|
||||||
|
|
||||||
CMD ["postgres"]
|
CMD ["postgres"]
|
||||||
|
|||||||
@@ -21,12 +21,12 @@ app:
|
|||||||
- search:search
|
- search:search
|
||||||
expose:
|
expose:
|
||||||
- "8282"
|
- "8282"
|
||||||
- "61616"
|
|
||||||
- "8788"
|
- "8788"
|
||||||
restart: always
|
restart: always
|
||||||
volumes:
|
volumes:
|
||||||
- ./volumes/app/log:/opt/metasfresh/log:rw
|
- ./volumes/app/log:/opt/metasfresh/log:rw
|
||||||
- ./volumes/app/heapdump:/opt/metasfresh/heapdump:rw
|
- ./volumes/app/heapdump:/opt/metasfresh/heapdump:rw
|
||||||
|
- ./volumes/app/external-lib:/opt/metasfresh/external-lib:rw
|
||||||
- /etc/localtime:/etc/localtime:ro
|
- /etc/localtime:/etc/localtime:ro
|
||||||
- /etc/timezone:/etc/timezone:ro
|
- /etc/timezone:/etc/timezone:ro
|
||||||
environment:
|
environment:
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
FROM ubuntu:16.04
|
FROM ubuntu:20.04
|
||||||
|
|
||||||
|
|
||||||
RUN apt update && apt -y full-upgrade
|
RUN apt update && apt -y full-upgrade
|
||||||
@@ -6,13 +6,13 @@ RUN apt autoclean && apt update
|
|||||||
|
|
||||||
RUN apt -y install netcat \
|
RUN apt -y install netcat \
|
||||||
&& apt -y install curl \
|
&& apt -y install curl \
|
||||||
&& apt -y install openjdk-8-jdk-headless \
|
&& apt -y install openjdk-17-jdk-headless \
|
||||||
&& apt -y install postgresql-client-9.5 \
|
&& apt -y install postgresql-client-12 \
|
||||||
&& apt -y autoremove \
|
&& apt -y autoremove \
|
||||||
&& apt -y autoclean
|
&& apt -y autoclean
|
||||||
|
|
||||||
RUN mkdir -p /opt/metasfresh
|
RUN mkdir -p /opt/metasfresh
|
||||||
RUN curl https://repo.metasfresh.com/repository/mvn-release-releases/de/metas/dist/metasfresh-dist-dist/5.173.2-389+release/metasfresh-dist-dist-5.173.2-389+release-dist.tar.gz \
|
RUN curl https://repo.metasfresh.com/repository/mvn-master_java14-releases/de/metas/dist/metasfresh-dist-dist/5.176.2-63+masterjava14/metasfresh-dist-dist-5.176.2-63+masterjava14-dist.tar.gz \
|
||||||
| tar -xzC /opt/metasfresh/
|
| tar -xzC /opt/metasfresh/
|
||||||
RUN mkdir -p /opt/metasfresh/heapdump
|
RUN mkdir -p /opt/metasfresh/heapdump
|
||||||
|
|
||||||
|
|||||||
@@ -56,12 +56,18 @@ run_metasfresh()
|
|||||||
#2019-01-29 jb: added '-XX:HeapDumpPath=/opt/metasfresh/heapdump' to java opts
|
#2019-01-29 jb: added '-XX:HeapDumpPath=/opt/metasfresh/heapdump' to java opts
|
||||||
# gh issue: https://github.com/metasfresh/metasfresh-docker/issues/41
|
# gh issue: https://github.com/metasfresh/metasfresh-docker/issues/41
|
||||||
|
|
||||||
|
#2022-04-23 ts: added '-Dloader.path=/opt/metasfresh/external-lib':
|
||||||
|
# Allow loading jars from /opt/metasfresh/external-lib.
|
||||||
|
# This assumes that the app uses PropertiesLauncher (can be verified by opening the jar e.g. with 7-zip and checking META-INF/MANIFEST.MF)
|
||||||
|
# Also see https://docs.spring.io/spring-boot/docs/current/reference/html/executable-jar.html#executable-jar-property-launcher-features
|
||||||
|
|
||||||
cd /opt/metasfresh/ && java \
|
cd /opt/metasfresh/ && java \
|
||||||
-Dsun.misc.URLClassPath.disableJarChecking=true \
|
-Dsun.misc.URLClassPath.disableJarChecking=true \
|
||||||
-Xmx1024M -XX:MaxPermSize=512M \
|
-Xmx1024M \
|
||||||
-XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/opt/metasfresh/heapdump \
|
-XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/opt/metasfresh/heapdump \
|
||||||
-DPropertyFile=/opt/metasfresh/metasfresh.properties \
|
-DPropertyFile=/opt/metasfresh/metasfresh.properties \
|
||||||
-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=8788 \
|
-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=8788 \
|
||||||
|
-Dloader.path=/opt/metasfresh/external-lib \
|
||||||
-Dcom.sun.net.ssl.enableECC=false \
|
-Dcom.sun.net.ssl.enableECC=false \
|
||||||
-jar metasfresh_server.jar
|
-jar metasfresh_server.jar
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
FROM postgres:9.5
|
FROM postgres:15.1
|
||||||
|
|
||||||
RUN apt update
|
RUN apt update
|
||||||
RUN apt install -y curl
|
RUN apt install -y curl
|
||||||
@@ -11,7 +11,7 @@ ENV LC_MESSAGES=en_US.UTF-8
|
|||||||
COPY sources/create_db.sh /docker-entrypoint-initdb.d/
|
COPY sources/create_db.sh /docker-entrypoint-initdb.d/
|
||||||
COPY sources/metasfresh.pgdump /tmp/
|
COPY sources/metasfresh.pgdump /tmp/
|
||||||
|
|
||||||
ENTRYPOINT ["/docker-entrypoint.sh"]
|
ENTRYPOINT ["/usr/local/bin/docker-entrypoint.sh"]
|
||||||
|
|
||||||
CMD ["postgres"]
|
CMD ["postgres"]
|
||||||
EXPOSE 5432
|
EXPOSE 5432
|
||||||
|
|||||||
@@ -19,6 +19,7 @@ app:
|
|||||||
volumes:
|
volumes:
|
||||||
- ./volumes/app/log:/opt/metasfresh/log:rw
|
- ./volumes/app/log:/opt/metasfresh/log:rw
|
||||||
- ./volumes/app/heapdump:/opt/metasfresh/heapdump:rw
|
- ./volumes/app/heapdump:/opt/metasfresh/heapdump:rw
|
||||||
|
- ./volumes/app/external-lib:/opt/metasfresh/external-lib:rw
|
||||||
- /etc/localtime:/etc/localtime:ro
|
- /etc/localtime:/etc/localtime:ro
|
||||||
environment:
|
environment:
|
||||||
- METASFRESH_HOME=/opt/metasfresh
|
- METASFRESH_HOME=/opt/metasfresh
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
FROM ubuntu:16.04
|
FROM ubuntu:20.04
|
||||||
|
|
||||||
|
|
||||||
RUN apt update && apt -y full-upgrade
|
RUN apt update && apt -y full-upgrade
|
||||||
@@ -6,8 +6,8 @@ RUN apt autoclean && apt update
|
|||||||
|
|
||||||
RUN apt -y install netcat \
|
RUN apt -y install netcat \
|
||||||
&& apt -y install curl \
|
&& apt -y install curl \
|
||||||
&& apt -y install openjdk-8-jdk-headless \
|
&& apt -y install openjdk-17-jdk-headless \
|
||||||
&& apt -y install postgresql-client-9.5 \
|
&& apt -y install postgresql-client-12 \
|
||||||
&& apt -y autoremove \
|
&& apt -y autoremove \
|
||||||
&& apt -y autoclean
|
&& apt -y autoclean
|
||||||
|
|
||||||
@@ -15,7 +15,7 @@ COPY sources/configs/local_settings.properties /root/
|
|||||||
RUN mkdir -p /opt/metasfresh-webui-api/metasfresh-webui-api \
|
RUN mkdir -p /opt/metasfresh-webui-api/metasfresh-webui-api \
|
||||||
&& mkdir -p /opt/metasfresh-webui-api/log \
|
&& mkdir -p /opt/metasfresh-webui-api/log \
|
||||||
&& mkdir -p /opt/metasfresh-webui-api/heapdump
|
&& mkdir -p /opt/metasfresh-webui-api/heapdump
|
||||||
RUN curl https://repo.metasfresh.com/repository/mvn-release/de/metas/ui/web/metasfresh-webui-api/5.173.2-389+release/metasfresh-webui-api-5.173.2-389+release.jar \
|
RUN curl https://repo.metasfresh.com/repository/mvn-master_java14/de/metas/ui/web/metasfresh-webui-api/5.176.2-63+masterjava14/metasfresh-webui-api-5.176.2-63+masterjava14.jar \
|
||||||
--output /opt/metasfresh-webui-api/metasfresh-webui-api.jar \
|
--output /opt/metasfresh-webui-api/metasfresh-webui-api.jar \
|
||||||
&& chmod 750 /opt/metasfresh-webui-api/metasfresh-webui-api.jar
|
&& chmod 750 /opt/metasfresh-webui-api/metasfresh-webui-api.jar
|
||||||
|
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ wait_dbms()
|
|||||||
run_metasfresh()
|
run_metasfresh()
|
||||||
{
|
{
|
||||||
cd /opt/metasfresh-webui-api/ && java -Dsun.misc.URLClassPath.disableJarChecking=true \
|
cd /opt/metasfresh-webui-api/ && java -Dsun.misc.URLClassPath.disableJarChecking=true \
|
||||||
-Xmx1024M -XX:MaxPermSize=512M \
|
-Xmx1024M \
|
||||||
-XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/opt/metasfresh/heapdump \
|
-XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/opt/metasfresh/heapdump \
|
||||||
-DPropertyFile=/opt/metasfresh-webui-api/metasfresh.properties \
|
-DPropertyFile=/opt/metasfresh-webui-api/metasfresh.properties \
|
||||||
-Dcom.sun.management.jmxremote.port=1618 \
|
-Dcom.sun.management.jmxremote.port=1618 \
|
||||||
|
|||||||
@@ -1,9 +1,10 @@
|
|||||||
FROM ubuntu:16.04
|
FROM ubuntu:20.04
|
||||||
|
|
||||||
RUN apt update && apt -y full-upgrade
|
RUN apt update && apt -y full-upgrade
|
||||||
RUN apt autoclean && apt update
|
RUN apt autoclean && apt update
|
||||||
|
|
||||||
RUN apt -y install apache2 \
|
#thx to https://askubuntu.com/questions/909277/avoiding-user-interaction-with-tzdata-when-installing-certbot-in-a-docker-contai
|
||||||
|
RUN DEBIAN_FRONTEND="noninteractive" apt -y install apache2 \
|
||||||
&& apt -y autoremove \
|
&& apt -y autoremove \
|
||||||
&& apt -y autoclean
|
&& apt -y autoclean
|
||||||
|
|
||||||
|
|||||||
@@ -19,7 +19,7 @@
|
|||||||
RewriteCond %{HTTP:CONNECTION} Upgrade$ [NC]
|
RewriteCond %{HTTP:CONNECTION} Upgrade$ [NC]
|
||||||
RewriteRule .* ws://webapi:8080%{REQUEST_URI} [P]
|
RewriteRule .* ws://webapi:8080%{REQUEST_URI} [P]
|
||||||
ProxyPass ws://webapi:8080/stomp/ retry=0 acquire=3000 timeout=600 Keepalive=On
|
ProxyPass ws://webapi:8080/stomp/ retry=0 acquire=3000 timeout=600 Keepalive=On
|
||||||
ProxyPassReverse ws://webapi:8080/stomp/ retry=0 acquire=3000 timeout=600 Keepalive=On
|
ProxyPassReverse ws://webapi:8080/stomp/
|
||||||
ProxyPass http://webapi:8080/stomp/ retry=0 acquire=3000 timeout=600 Keepalive=On
|
ProxyPass http://webapi:8080/stomp/ retry=0 acquire=3000 timeout=600 Keepalive=On
|
||||||
ProxyPassReverse http://webapi:8080/stomp/
|
ProxyPassReverse http://webapi:8080/stomp/
|
||||||
</Location>
|
</Location>
|
||||||
@@ -83,10 +83,18 @@
|
|||||||
AllowOverride All
|
AllowOverride All
|
||||||
Require all granted
|
Require all granted
|
||||||
RewriteEngine On
|
RewriteEngine On
|
||||||
|
|
||||||
|
# Existing file or directory
|
||||||
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} -f [OR]
|
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} -f [OR]
|
||||||
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} -d
|
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} -d
|
||||||
RewriteCond %{REQUEST_URI} !^/mobile?$
|
|
||||||
RewriteRule ^ - [L]
|
RewriteRule ^ - [L]
|
||||||
|
|
||||||
|
# mobile UI
|
||||||
|
RewriteCond %{REQUEST_URI} ^/mobile
|
||||||
|
RewriteRule ^ /mobile/index.html [L]
|
||||||
|
|
||||||
|
# Fallback:
|
||||||
RewriteRule ^ /index.html
|
RewriteRule ^ /index.html
|
||||||
</Directory>
|
</Directory>
|
||||||
|
|
||||||
</VirtualHost>
|
</VirtualHost>
|
||||||
|
|||||||
@@ -2,10 +2,18 @@
|
|||||||
<VirtualHost *:443>
|
<VirtualHost *:443>
|
||||||
ProxyRequests Off
|
ProxyRequests Off
|
||||||
DocumentRoot /opt/metasfresh-webui-frontend/dist/
|
DocumentRoot /opt/metasfresh-webui-frontend/dist/
|
||||||
ErrorLog ${APACHE_LOG_DIR}/webui_error.log
|
|
||||||
CustomLog ${APACHE_LOG_DIR}/webui_access.log combined
|
|
||||||
|
|
||||||
|
|
||||||
|
# Logging
|
||||||
|
ErrorLog ${APACHE_LOG_DIR}/webui_error.log
|
||||||
|
CustomLog ${APACHE_LOG_DIR}/webui_access.log combined
|
||||||
|
|
||||||
|
# Debugging
|
||||||
|
# NOTE: pls comment the ErrorLog and CustomLog entries above
|
||||||
|
#ErrorLog /dev/stdout
|
||||||
|
#TransferLog /dev/stdout
|
||||||
|
#LogLevel alert rewrite:trace8
|
||||||
|
|
||||||
<Location /rest>
|
<Location /rest>
|
||||||
Order allow,deny
|
Order allow,deny
|
||||||
Allow from all
|
Allow from all
|
||||||
@@ -78,33 +86,24 @@
|
|||||||
Header set Expires "Wed, 21 Oct 2015 07:28:00 GMT"
|
Header set Expires "Wed, 21 Oct 2015 07:28:00 GMT"
|
||||||
</Location>
|
</Location>
|
||||||
|
|
||||||
<Directory /opt/metasfresh-webui-frontend/dist/>
|
<Directory /opt/metasfresh-webui-frontend/dist/>
|
||||||
Options Indexes FollowSymLinks
|
Options Indexes FollowSymLinks
|
||||||
AllowOverride All
|
AllowOverride All
|
||||||
Require all granted
|
Require all granted
|
||||||
RewriteEngine On
|
RewriteEngine On
|
||||||
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} -f [OR]
|
|
||||||
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} -d
|
|
||||||
RewriteCond %{REQUEST_URI} !^/mobile?$
|
|
||||||
RewriteRule ^ - [L]
|
|
||||||
RewriteRule ^ /index.html
|
|
||||||
</Directory>
|
|
||||||
|
|
||||||
<Files index.html>
|
# Existing file or directory
|
||||||
FileETag None
|
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} -f [OR]
|
||||||
Header unset ETag
|
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} -d
|
||||||
Header set Cache-Control "max-age=0, no-cache, no-store, must-revalidate"
|
RewriteRule ^ - [L]
|
||||||
Header set Pragma "no-cache"
|
|
||||||
Header set Expires "Wed, 21 Oct 2015 07:28:00 GMT"
|
|
||||||
</Files>
|
|
||||||
|
|
||||||
<Files service-worker.js>
|
# mobile UI
|
||||||
FileETag None
|
RewriteCond %{REQUEST_URI} ^/mobile
|
||||||
Header unset ETag
|
RewriteRule ^ /mobile/index.html [L]
|
||||||
Header set Cache-Control "max-age=0, no-cache, no-store, must-revalidate"
|
|
||||||
Header set Pragma "no-cache"
|
# Fallback:
|
||||||
Header set Expires "Wed, 21 Oct 2015 07:28:00 GMT"
|
RewriteRule ^ /index.html
|
||||||
</Files>
|
</Directory>
|
||||||
|
|
||||||
SSLCertificateFile /etc/apache2/certs/fullchain.pem
|
SSLCertificateFile /etc/apache2/certs/fullchain.pem
|
||||||
SSLCertificateKeyFile /etc/apache2/certs/privkey.pem
|
SSLCertificateKeyFile /etc/apache2/certs/privkey.pem
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
e05fb14f424a57e00beb2ccf2b96992cf35afff2
|
829fb345925d3ac279c12bd33e5f1456b4ef40e8
|
||||||
@@ -1 +1 @@
|
|||||||
2021-10-25T11:33:52+02:00
|
2022-03-18T05:58:38+01:00
|
||||||
@@ -1 +1 @@
|
|||||||
e05fb14
|
829fb34
|
||||||
|
Before Width: | Height: | Size: 20 KiB After Width: | Height: | Size: 20 KiB |
@@ -1 +1 @@
|
|||||||
<!doctype html><html><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no" name="viewport"><meta name="mobile-web-app-capable" content="yes"><link rel="icon" type="image/png" href="/favicon.png"><title>Metasfresh</title><script defer="defer" src="/bundle-e05fb14f424a57e00beb2ccf2b96992cf35afff2-git-dd849f270cde19eb3c6a.js"></script></head><body><div id="root"></div><script src="/config.js"></script></body></html>
|
<!doctype html><html><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no" name="viewport"><meta name="mobile-web-app-capable" content="yes"><link rel="icon" type="image/png" href="/favicon.png"><title>Metasfresh</title><script defer="defer" src="/bundle-829fb345925d3ac279c12bd33e5f1456b4ef40e8-git-600a28bfd186015be05e.js"></script></head><body><div id="root"></div><script src="/config.js"></script></body></html>
|
||||||
@@ -1,10 +1,10 @@
|
|||||||
{
|
{
|
||||||
"build": {
|
"build": {
|
||||||
"releaseVersion": "5.173.2-386+release",
|
"releaseVersion": "5.174.2-458+release",
|
||||||
"jenkinsBuildUrl": "https://jenkins.metasfresh.com/job/metasfresh/job/release/386/",
|
"jenkinsBuildUrl": "https://jenkins.metasfresh.com/job/metasfresh/job/release/458/",
|
||||||
"jenkinsBuildNo": "386",
|
"jenkinsBuildNo": "458",
|
||||||
"jenkinsJobName": "metasfresh/release",
|
"jenkinsJobName": "metasfresh/release",
|
||||||
"jenkinsBuildTag": "jenkins-metasfresh-release-386"
|
"jenkinsBuildTag": "jenkins-metasfresh-release-458"
|
||||||
"gitSHA1": "e05fb14f424a57e00beb2ccf2b96992cf35afff2"
|
"gitSHA1": "829fb345925d3ac279c12bd33e5f1456b4ef40e8"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Before Width: | Height: | Size: 636 B After Width: | Height: | Size: 636 B |
|
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.1 KiB |
|
Before Width: | Height: | Size: 2.2 KiB After Width: | Height: | Size: 2.2 KiB |
|
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 1.2 KiB |
|
Before Width: | Height: | Size: 95 KiB After Width: | Height: | Size: 95 KiB |
|
Before Width: | Height: | Size: 90 KiB After Width: | Height: | Size: 90 KiB |
|
Before Width: | Height: | Size: 95 KiB After Width: | Height: | Size: 95 KiB |
|
Before Width: | Height: | Size: 90 KiB After Width: | Height: | Size: 90 KiB |
|
Before Width: | Height: | Size: 39 KiB After Width: | Height: | Size: 39 KiB |
|
Before Width: | Height: | Size: 801 B After Width: | Height: | Size: 801 B |
|
Before Width: | Height: | Size: 10 KiB After Width: | Height: | Size: 10 KiB |
|
Before Width: | Height: | Size: 781 B After Width: | Height: | Size: 781 B |
|
Before Width: | Height: | Size: 888 B After Width: | Height: | Size: 888 B |
|
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 1.2 KiB |
|
Before Width: | Height: | Size: 2.2 KiB After Width: | Height: | Size: 2.2 KiB |
|
Before Width: | Height: | Size: 8.1 KiB After Width: | Height: | Size: 8.1 KiB |
|
Before Width: | Height: | Size: 529 B After Width: | Height: | Size: 529 B |
|
Before Width: | Height: | Size: 890 B After Width: | Height: | Size: 890 B |
|
Before Width: | Height: | Size: 932 B After Width: | Height: | Size: 932 B |
|
Before Width: | Height: | Size: 333 B After Width: | Height: | Size: 333 B |
@@ -1,7 +1,10 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
# if the environment parameter for "WEBAPI_URL" is set in docker-compose.yml, replace all placeholder variables with that parameter
|
||||||
|
# otherwise, a manual edit of './webui/sources/configs/config.js' and './webui/sources/configs/mobile/config.js' is required
|
||||||
|
#
|
||||||
if [[ ! -z $WEBAPI_URL ]]; then
|
if [[ ! -z $WEBAPI_URL ]]; then
|
||||||
sed -i 's,http\:\/\/MYDOCKERHOST\:PORT,'$WEBAPI_URL',g' /opt/metasfresh-webui-frontend/dist/config.js
|
find /opt/metasfresh-webui-frontend/dist/ -type f -name 'config.js' -exec sed -i 's,http\:\/\/MYDOCKERHOST\:PORT,'$WEBAPI_URL',g' {} +
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ -f "/etc/apache2/certs/fullchain.pem" ]] && [[ -f "/etc/apache2/certs/privkey.pem" ]]; then
|
if [[ -f "/etc/apache2/certs/fullchain.pem" ]] && [[ -f "/etc/apache2/certs/privkey.pem" ]]; then
|
||||||
|
|||||||
@@ -5,6 +5,9 @@ FROM docker.elastic.co/elasticsearch/elasticsearch:7.9.3
|
|||||||
# Also see https://www.elastic.co/guide/en/elasticsearch/reference/current/docker.html#docker-cli-run-dev-mode
|
# Also see https://www.elastic.co/guide/en/elasticsearch/reference/current/docker.html#docker-cli-run-dev-mode
|
||||||
ENV discovery.type=single-node
|
ENV discovery.type=single-node
|
||||||
|
|
||||||
|
# mitigate CVE-2021-44228 log4j2 vulnerability - http://cve.mitre.org/cgi-bin/cvename.cgi?name=2021-44228
|
||||||
|
ENV LOG4J_FORMAT_MSG_NO_LOOKUPS=true
|
||||||
|
|
||||||
COPY sources/start-custom.sh /usr/local/bin/start-custom.sh
|
COPY sources/start-custom.sh /usr/local/bin/start-custom.sh
|
||||||
RUN chmod +x /usr/local/bin/start-custom.sh
|
RUN chmod +x /usr/local/bin/start-custom.sh
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
FROM metasfresh/metasfresh-webapi:5.173
|
FROM metasfresh/metasfresh-webapi:5.174
|
||||||
|
|
||||||
COPY sources/configs/* /opt/metasfresh-webui-api/
|
COPY sources/configs/* /opt/metasfresh-webui-api/
|
||||||
COPY sources/start_webapi.sh /opt/metasfresh-webui-api/
|
COPY sources/start_webapi.sh /opt/metasfresh-webui-api/
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
FROM metasfresh/metasfresh-webui:5.173
|
FROM metasfresh/metasfresh-webui:5.174
|
||||||
|
|
||||||
COPY sources/configs/config.js /opt/metasfresh-webui-frontend/dist/
|
COPY sources/configs/config.js /opt/metasfresh-webui-frontend/dist/
|
||||||
COPY sources/configs/mobile/config.js /opt/metasfresh-webui-frontend/dist/mobile/
|
COPY sources/configs/mobile/config.js /opt/metasfresh-webui-frontend/dist/mobile/
|
||||||
|
|||||||
@@ -1,8 +1,17 @@
|
|||||||
<VirtualHost *:80>
|
<VirtualHost *:80>
|
||||||
ProxyRequests Off
|
ProxyRequests Off
|
||||||
DocumentRoot /opt/metasfresh-webui-frontend/dist/
|
DocumentRoot /opt/metasfresh-webui-frontend/dist/
|
||||||
|
|
||||||
|
# Logging
|
||||||
ErrorLog ${APACHE_LOG_DIR}/webui_error.log
|
ErrorLog ${APACHE_LOG_DIR}/webui_error.log
|
||||||
CustomLog ${APACHE_LOG_DIR}/webui_access.log combined
|
CustomLog ${APACHE_LOG_DIR}/webui_access.log combined
|
||||||
|
|
||||||
|
# Debugging
|
||||||
|
# NOTE: pls comment the ErrorLog and CustomLog entries above
|
||||||
|
#ErrorLog /dev/stdout
|
||||||
|
#TransferLog /dev/stdout
|
||||||
|
#LogLevel alert rewrite:trace8
|
||||||
|
|
||||||
<Location /rest>
|
<Location /rest>
|
||||||
Order allow,deny
|
Order allow,deny
|
||||||
Allow from all
|
Allow from all
|
||||||
@@ -87,10 +96,17 @@
|
|||||||
AllowOverride All
|
AllowOverride All
|
||||||
Require all granted
|
Require all granted
|
||||||
RewriteEngine On
|
RewriteEngine On
|
||||||
|
|
||||||
|
# Existing file or directory
|
||||||
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} -f [OR]
|
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} -f [OR]
|
||||||
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} -d
|
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} -d
|
||||||
RewriteCond %{REQUEST_URI} !^/mobile?$
|
|
||||||
RewriteRule ^ - [L]
|
RewriteRule ^ - [L]
|
||||||
|
|
||||||
|
# mobile UI
|
||||||
|
RewriteCond %{REQUEST_URI} ^/mobile
|
||||||
|
RewriteRule ^ /mobile/index.html [L]
|
||||||
|
|
||||||
|
# Fallback:
|
||||||
RewriteRule ^ /index.html
|
RewriteRule ^ /index.html
|
||||||
</Directory>
|
</Directory>
|
||||||
|
|
||||||
|
|||||||
@@ -2,8 +2,17 @@
|
|||||||
<VirtualHost *:443>
|
<VirtualHost *:443>
|
||||||
ProxyRequests Off
|
ProxyRequests Off
|
||||||
DocumentRoot /opt/metasfresh-webui-frontend/dist/
|
DocumentRoot /opt/metasfresh-webui-frontend/dist/
|
||||||
|
|
||||||
|
# Logging
|
||||||
ErrorLog ${APACHE_LOG_DIR}/webui_error.log
|
ErrorLog ${APACHE_LOG_DIR}/webui_error.log
|
||||||
CustomLog ${APACHE_LOG_DIR}/webui_access.log combined
|
CustomLog ${APACHE_LOG_DIR}/webui_access.log combined
|
||||||
|
|
||||||
|
# Debugging
|
||||||
|
# NOTE: pls comment the ErrorLog and CustomLog entries above
|
||||||
|
#ErrorLog /dev/stdout
|
||||||
|
#TransferLog /dev/stdout
|
||||||
|
#LogLevel alert rewrite:trace8
|
||||||
|
|
||||||
<Location /rest>
|
<Location /rest>
|
||||||
Order allow,deny
|
Order allow,deny
|
||||||
Allow from all
|
Allow from all
|
||||||
@@ -88,10 +97,17 @@
|
|||||||
AllowOverride All
|
AllowOverride All
|
||||||
Require all granted
|
Require all granted
|
||||||
RewriteEngine On
|
RewriteEngine On
|
||||||
|
|
||||||
|
# Existing file or directory
|
||||||
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} -f [OR]
|
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} -f [OR]
|
||||||
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} -d
|
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} -d
|
||||||
RewriteCond %{REQUEST_URI} !^/mobile?$
|
|
||||||
RewriteRule ^ - [L]
|
RewriteRule ^ - [L]
|
||||||
|
|
||||||
|
# mobile UI
|
||||||
|
RewriteCond %{REQUEST_URI} ^/mobile
|
||||||
|
RewriteRule ^ /mobile/index.html [L]
|
||||||
|
|
||||||
|
# Fallback:
|
||||||
RewriteRule ^ /index.html
|
RewriteRule ^ /index.html
|
||||||
</Directory>
|
</Directory>
|
||||||
|
|
||||||
|
|||||||