From 1bca9c1638cb9179e541774821a229b8e455a146 Mon Sep 17 00:00:00 2001
From: Orestis <orestis.malaspinas@pm.me>
Date: Wed, 11 Aug 2021 23:09:04 +0300
Subject: [PATCH] added docker-compose and test in CI

---
 .gitlab-ci.yml     | 10 ++++++++--
 docker-compose.yml | 12 ++++++++++++
 2 files changed, 20 insertions(+), 2 deletions(-)
 create mode 100644 docker-compose.yml

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 4adcd5a..a776a52 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -29,12 +29,17 @@ before_script:
    - echo "$SSH_KNOWN_HOSTS" > ~/.ssh/known_hosts
    - chmod 644 ~/.ssh/known_hosts
 
-
-
 build_only:
   script:
     - make
 
+build_only:
+  image: docker:latest
+  tags: 
+    - dfromd
+  script:
+    - docker-compose run --rm pandoc make
+
 build_and_deploy:
   script:
     - make
@@ -53,6 +58,7 @@ build_and_test_practical_work:
   script:
     - cd practical_work/vec2/
     - make test
+
 build_artifacts:
   script:
     - make
diff --git a/docker-compose.yml b/docker-compose.yml
new file mode 100644
index 0000000..986f296
--- /dev/null
+++ b/docker-compose.yml
@@ -0,0 +1,12 @@
+version: "3.3"
+services:
+    pandoc:
+        #To use dockerfile : build: . 
+        image: omalaspinas/pandoc:latest
+        user: 1000:1000
+        container_name: pandoc
+        volumes:
+            - .:/app
+        working_dir: /app
+
+
-- 
GitLab