Skip to content

Commit

Permalink
knowage
Browse files Browse the repository at this point in the history
  • Loading branch information
qiaofeng1227 committed Jul 19, 2024
1 parent 42845f4 commit 2ca2299
Show file tree
Hide file tree
Showing 8 changed files with 14 additions and 26 deletions.
9 changes: 4 additions & 5 deletions apps/knowage/.env
Original file line number Diff line number Diff line change
@@ -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 -- ####
Expand All @@ -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

Expand Down Expand Up @@ -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
5 changes: 0 additions & 5 deletions apps/knowage/cmd.sh

This file was deleted.

17 changes: 6 additions & 11 deletions apps/knowage/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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:
Expand Down
3 changes: 3 additions & 0 deletions apps/knowage/src/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# About

This folder includes files mount to container and used by Websoft9
1 change: 0 additions & 1 deletion apps/knowage/src/after_up.sh

This file was deleted.

1 change: 0 additions & 1 deletion apps/knowage/src/get_version.sh

This file was deleted.

2 changes: 0 additions & 2 deletions apps/knowage/src/hazelcast-server.xml
Original file line number Diff line number Diff line change
@@ -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

<?xml version="1.0" encoding="UTF-8"?>
<hazelcast xsi:schemaLocation="http://www.hazelcast.com/schema/config hazelcast-config-3.6.xsd"
xmlns="http://www.hazelcast.com/schema/config"
Expand Down
2 changes: 1 addition & 1 deletion apps/knowage/variables.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"edition": [
{
"dist": "community",
"version": ["7.4.18"]
"version": ["8.1"]
}
],
"requirements": {
Expand Down

0 comments on commit 2ca2299

Please sign in to comment.