diff --git a/config/migrations/2023/20230203150000-remove-dummy-worship.sparql b/config/migrations-triggering-indexing/2023/20230203150000-remove-dummy-worship.sparql similarity index 71% rename from config/migrations/2023/20230203150000-remove-dummy-worship.sparql rename to config/migrations-triggering-indexing/2023/20230203150000-remove-dummy-worship.sparql index 0f52eec..314c464 100644 --- a/config/migrations/2023/20230203150000-remove-dummy-worship.sparql +++ b/config/migrations-triggering-indexing/2023/20230203150000-remove-dummy-worship.sparql @@ -48,20 +48,3 @@ DELETE { } } } - -# The associated call to trigger a reindex is : - -# curl --location --request POST '172.25.0.34/update' \ -# --header 'Content-Type: application/vnd.api+json' \ -# --data-raw ' [ -# { -# "deletes": [ -# { -# "subject": { "type": "uri", "value": "http://data.lblod.info/id/besturenVanDeEredienst/578bf96f86056e2260dc21cee91aa519" }, -# "predicate": { "type": "uri", "value": "http://www.w3.org/1999/02/22-rdf-syntax-ns#type" }, -# "object": { "type": "uri", "value": "http://data.vlaanderen.be/ns/besluit#Bestuurseenheid" } -# } -# ], -# "inserts": [] -# } -# ]' \ No newline at end of file diff --git a/docker-compose.dev.yml b/docker-compose.dev.yml index 5eecc28..5d68e6d 100644 --- a/docker-compose.dev.yml +++ b/docker-compose.dev.yml @@ -17,6 +17,8 @@ services: volumes: - ./config/dev-migrations:/data/migrations/dev/ restart: "no" + migrations-triggering-indexing: + restart: "no" resource: restart: "no" cache: diff --git a/docker-compose.yml b/docker-compose.yml index ea4f4e7..78d8ac1 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -59,6 +59,16 @@ services: - "logging=true" restart: always logging: *default-logging + migrations-triggering-indexing: + image: semtech/mu-migrations-service:0.8.0 + links: + - db:database + volumes: + - ./config/migrations-triggering-indexing:/data/migrations + labels: + - "logging=true" + restart: always + logging: *default-logging resource: image: semtech/mu-cl-resources:1.21.1 environment: