diff --git a/apps/knowage/.env b/apps/knowage/.env index 8f29f0c76..f3245e9e2 100644 --- a/apps/knowage/.env +++ b/apps/knowage/.env @@ -1,7 +1,7 @@ W9_REPO=knowagelabs/knowage-server-docker W9_DIST=community -# 8.1 not stable -W9_VERSION=7.4 +# 8.2 is stable +W9_VERSION=8.1 W9_POWER_PASSWORD=uQ8E1wVTzG8SOk3! #### -- Not allowed to edit below environments when recreate app based on existing data -- #### @@ -10,10 +10,9 @@ W9_HTTP_PORT_SET=9001 W9_HTTP_PORT=8080 W9_LOGIN_USER=biadmin -W9_LOGIN_PASSWORD=$W9_POWER_PASSWORD +W9_LOGIN_PASSWORD=biadmin W9_ADMIN_PATH="/knowage" W9_URL=internet_ip - W9_DB_EXPOSE="mariadb" W9_MARIADB_VERSION=10.3 @@ -42,5 +41,5 @@ PASSWORD_ENCRYPTION_SECRET=def456 SENSIBLE_DATA_ENCRYPTION_SECRET=ghi789 PUBLIC_ADDRESS=0.0.0.0 -HAZELCAST_HOSTS=hazelcast +HAZELCAST_HOSTS=$W9_ID-hazelcast HAZELCAST_PORT=5701 \ No newline at end of file diff --git a/apps/knowage/cmd.sh b/apps/knowage/cmd.sh deleted file mode 100644 index 3ad1738f6..000000000 --- a/apps/knowage/cmd.sh +++ /dev/null @@ -1,5 +0,0 @@ -sed -i "s/password=\"biadmin\"/password=\"$W9_LOGIN_PASSWORD\"/g" /home/knowage/apache-tomcat/webapps/knowage/WEB-INF/conf/config/internal_profiling.xml -sed -i "s/password=\"biadmin\"/password=\"$W9_LOGIN_PASSWORD\"/g" /home/knowage/apache-tomcat/webapps/knowage/WEB-INF/conf/webapp/authorizations.xml -mysqladmin -uroot -p$DB_PASS -h 127.0.0.1 knowage -e "DELETE FROM knowage.SBI_USER;" - -./entrypoint.sh ./apache-tomcat/bin/startup.sh diff --git a/apps/knowage/docker-compose.yml b/apps/knowage/docker-compose.yml index 8509a832d..c12d7e575 100644 --- a/apps/knowage/docker-compose.yml +++ b/apps/knowage/docker-compose.yml @@ -18,15 +18,10 @@ services: volumes: - knowage:/home/knowage/apache-tomcat/resources env_file: .env - command: bash -c "cat /my_cmd > /home/knowage/cmd.sh && chmod +x /home/knowage/cmd.sh && /home/knowage/cmd.sh" - configs: - - source: my_cmd - # from Knowage8 need this service hazelcast: - image: hazelcast/hazelcast:3.6 + image: hazelcast/hazelcast:3.6.5 container_name: $W9_ID-hazelcast - env_file: .env environment: - JAVA_OPTS=-Dhazelcast.local.publicAddress=hazelcast -Dhazelcast.config=/opt/hazelcast/hazelcast.xml volumes: @@ -36,7 +31,6 @@ services: image: mariadb:$W9_MARIADB_VERSION container_name: $W9_ID-mariadb restart: unless-stopped - env_file: .env environment: - MARIADB_USER=$W9_ID - MARIADB_PASSWORD=$W9_POWER_PASSWORD @@ -49,7 +43,6 @@ services: image: mariadb:$W9_MARIADB_VERSION container_name: $W9_ID-cache restart: unless-stopped - env_file: .env environment: - MARIADB_USER=${W9_ID}_cache - MARIADB_PASSWORD=$W9_POWER_PASSWORD @@ -62,15 +55,17 @@ services: container_name: $W9_ID-python image: knowagelabs/knowage-python-docker:$W9_VERSION restart: unless-stopped - env_file: .env environment: - - KNOWAGE_PUBLIC_ADDRESS=knowage + - HMAC_KEY=$HMAC_KEY + - KNOWAGE_PUBLIC_ADDRESS=$W9_ID + - PUBLIC_ADDRESS=$PUBLIC_ADDRESS knowager: container_name: $W9_ID-r image: knowagelabs/knowage-r-docker:$W9_VERSION restart: unless-stopped - env_file: .env + environment: + - HMAC_KEY=$HMAC_KEY networks: default: diff --git a/apps/knowage/src/README.md b/apps/knowage/src/README.md new file mode 100644 index 000000000..cdbd7a0b9 --- /dev/null +++ b/apps/knowage/src/README.md @@ -0,0 +1,3 @@ +# About + +This folder includes files mount to container and used by Websoft9 diff --git a/apps/knowage/src/after_up.sh b/apps/knowage/src/after_up.sh deleted file mode 100644 index 8b1378917..000000000 --- a/apps/knowage/src/after_up.sh +++ /dev/null @@ -1 +0,0 @@ - diff --git a/apps/knowage/src/get_version.sh b/apps/knowage/src/get_version.sh deleted file mode 100644 index 4efe2a8b1..000000000 --- a/apps/knowage/src/get_version.sh +++ /dev/null @@ -1 +0,0 @@ -sudo echo "knowage version:" $(docker images |grep knowagelabs |awk '{print $2}' |head -1 |cut -d- -f1) |sudo tee -a /data/logs/install_version.txt diff --git a/apps/knowage/src/hazelcast-server.xml b/apps/knowage/src/hazelcast-server.xml index 7fa289839..62c0329fa 100644 --- a/apps/knowage/src/hazelcast-server.xml +++ b/apps/knowage/src/hazelcast-server.xml @@ -1,5 +1,3 @@ -# hazelcast image not have this file, it from: https://github.com/KnowageLabs/Knowage-Server-Docker/blob/master/Knowage-Server-Docker/hazelcast-server.xml -