Skip to content

Commit

Permalink
[#107] Add configuration of spipes engine within deployments
Browse files Browse the repository at this point in the history
  • Loading branch information
palagdan committed Dec 30, 2024
1 parent d899076 commit a07580d
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 5 deletions.
2 changes: 1 addition & 1 deletion bin/spe.bat
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ for %%A in (%*) do (
)
cd %PROJECT_DIR%/deploy
echo starting s-pipes-editor-ui with scripts %CUSTOM_SCRIPT_PATHS%
docker-compose --env-file=.env.custom-script-paths up
docker-compose --env-file=.env up
:eof


2 changes: 1 addition & 1 deletion bin/spe.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,6 @@ done


cd $PROJECT_DIR/deploy
CUSTOM_SCRIPT_PATHS="$CUSTOM_SCRIPT_PATHS" docker-compose --env-file=.env.custom-script-paths up
CUSTOM_SCRIPT_PATHS="$CUSTOM_SCRIPT_PATHS" docker-compose --env-file=.env up
cd

2 changes: 2 additions & 0 deletions deploy/.env
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,5 @@
#PUBLIC_ORIGIN=http://localhost
#SPIPES_ENGINE=http://s-pipes-engine:8080/s-pipes/
#SPIPES_EDITOR_REST=s-pipes-editor-rest:18115
#SHARED_ROOT=/host_mnt
SPIPES_ENGINE_URL=http://host.docker.internal:8080/s-pipes
1 change: 0 additions & 1 deletion deploy/.env.custom-script-paths

This file was deleted.

7 changes: 6 additions & 1 deletion deploy/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,12 @@ services:
NGINX_ENVSUBST_OUTPUT_DIR: "/etc/nginx"
APP_ORIGIN: "${PUBLIC_ORIGIN:-http://localhost:${INTERNAL_HOST_PORT:-1235}}"
SPIPES_EDITOR_REST_SERVICE_URL: "${SPIPES_EDITOR_REST:-http://s-pipes-editor-rest:18115}"
SPIPES_ENGINE_URL: "${SPIPES_ENGINE_URL:-http://s-pipes-engine:8080/s-pipes}"
volumes:
- ./nginx/nginx.conf:/etc/nginx/templates/nginx.conf.template:ro
- ./nginx/error.html:/usr/share/nginx/html/error.html:ro
extra_hosts:
- "host.docker.internal:host-gateway"

s-pipes-editor-ui:
image: "ghcr.io/kbss-cvut/s-pipes-editor-ui/s-pipes-editor-ui:latest"
Expand All @@ -41,14 +44,16 @@ services:
environment:
SCRIPTPATHS: "${SCRIPTPATHS:-${PWD}/../../s-pipes-modules;${CUSTOM_SCRIPT_PATHS:-${PWD}/../../s-pipes/doc/examples}}"
SCRIPTRULES: "${SCRIPTRULES:-${PWD}/../../s-pipes-editor/src/main/resources/rules}"
ENGINEURL: "${SPIPES_ENGINE:-http://s-pipes-engine:8080/s-pipes}/"
ENGINEURL: "${SPIPES_ENGINE_URL:-http://s-pipes-engine:8080/s-pipes}/"
RDF4J_REPOSITORYURL: "${RDF4J_SERVER_URL:-http://db-server:7200}/repositories"
RDF4J_REPOSITORYNAME: "${RDF4J_REPOSITORYNAME:-s-pipes-hello-world}"
RDF4J_PCONFIGURL: "${RDF4J_PCONFIGURL:-./s-pipes-engine/config.ttl}"
volumes:
- /tmp:/tmp
- ${SHARED_ROOT:-/home}:${SHARED_ROOT:-/home}
- /usr/local/tomcat/temp/:/usr/local/tomcat/temp/
extra_hosts:
- "host.docker.internal:host-gateway"

s-pipes-engine:
image: "ghcr.io/kbss-cvut/s-pipes/s-pipes-engine:latest"
Expand Down
2 changes: 1 addition & 1 deletion deploy/nginx/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ http
}

location /services/s-pipes/ {
proxy_pass http://s-pipes-engine:8080/;
proxy_pass ${SPIPES_ENGINE_URL}/;
}

location /health-check
Expand Down

0 comments on commit a07580d

Please sign in to comment.