Skip to content

Commit

Permalink
Use built graphDB image to autoload repositories
Browse files Browse the repository at this point in the history
  • Loading branch information
webb-ben committed Feb 10, 2025
1 parent 2380f7d commit e7031c4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 20 deletions.
22 changes: 2 additions & 20 deletions Docker/Docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ services:
graphdb:
image: khaller/graphdb-free
container_name: scheduler_graphdb
build:
context: ./graphdb
ports:
- "7200:7200"
environment:
Expand All @@ -38,26 +40,6 @@ services:
- localInfra
- production

# Creates repositories in GraphDB
createrepositories:
image: alpine/curl
depends_on:
- graphdb
entrypoint: >
/bin/sh -c "
sleep 5;
curl -X POST http://graphdb:7200/rest/repositories -H 'Content-Type: multipart/form-data' -F 'config=@graphdb/iow-config.ttl';
curl -X POST http://graphdb:7200/rest/repositories -H 'Content-Type: multipart/form-data' -F 'config=@graphdb/iowprov-config.ttl';
sleep infinity;
"
networks:
- dagster_network
volumes:
- ./graphdb:/graphdb
profiles:
- localInfra
- production

# PostgreSQL database for Dagster
dagster_postgres:
image: postgres:11
Expand Down
6 changes: 6 additions & 0 deletions Docker/graphdb/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Copyright 2025 Lincoln Institute of Land Policy
# SPDX-License-Identifier: Apache-2.0

FROM khaller/graphdb-free

COPY *.ttl /repository.init/

0 comments on commit e7031c4

Please sign in to comment.