From febe60419fca62c985cd330da0fec20659dce50a Mon Sep 17 00:00:00 2001
From: flange <38500-flange@users.noreply.git.rwth-aachen.de>
Date: Thu, 18 Apr 2024 16:22:52 +0200
Subject: [PATCH] add MoDalia to the "ontologies" dataset

---
 .gitignore     |  1 +
 .gitlab-ci.yml | 21 ++++++++++++++++++---
 Dockerfile     |  7 ++++++-
 3 files changed, 25 insertions(+), 4 deletions(-)
 create mode 100644 .gitignore

diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..2049388
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1 @@
+MoDalia.ttl
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 65d0ddb..3e60998 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,11 +1,26 @@
 stages:
-  - build
+  - download-modalia
+  - container
 
-build-job:
-  stage: build
+download-modalia-job:
+  stage: download-modalia
+  image: alpine:latest
+  script:
+    - apk add --no-cache git
+    - git clone https://gitlab-ci-token:${CI_JOB_TOKEN}@${CI_SERVER_HOST}/dalia/dalia-ontology.git
+    - cd dalia-ontology
+    - git checkout df3e3d230c9ae9971c77ef66f83ae54cdb7b3176
+  artifacts:
+    paths:
+      - dalia-ontology/MoDalia.ttl
+
+container-job:
+  stage: container
   image:
     name: gcr.io/kaniko-project/executor:debug
     entrypoint: [""]
+  dependencies:
+    - download-modalia-job
   script:
     - /kaniko/executor
       --context "${CI_PROJECT_DIR}"
diff --git a/Dockerfile b/Dockerfile
index 744a329..67752cc 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -35,10 +35,15 @@ RUN \
     mv apache-jena-fuseki-$FUSEKI_VERSION $FUSEKI_HOME
 
 #
-# Download ontologies
+# Install ontologies
 #
 WORKDIR $ONTOLOGIES_DIR
 
+COPY MoDalia.ttl $ONTOLOGIES_DIR
+RUN \
+    set -ex && \
+    echo "5a6376960b2f70de3cfca0ffefa94bb5773a1f8aeb5d7b4d1e2944a8cb7bfd32  MoDalia.ttl" | sha256sum --status -c
+
 RUN \
     set -ex && \
     # DFG Fachsystematik Ontology / DFG Classification of Subject Areas Ontology
-- 
GitLab