From 0861d497caf0b8885e4cb4b39c07391d396db39d Mon Sep 17 00:00:00 2001
From: Roland Jansky <roland.jansky@cern.ch>
Date: Fri, 3 May 2019 11:18:35 +0000
Subject: [PATCH] Revert "Revert "trying to add first CI and docker image
 building""

This reverts commit 5b4d74b16cae284c2bac9600c3cf94e7c14922a8
---
 .gitlab-ci.yml | 21 +++++++++++++++++++++
 Dockerfile     | 11 +++++++++++
 2 files changed, 32 insertions(+)
 create mode 100644 .gitlab-ci.yml
 create mode 100644 Dockerfile

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
new file mode 100644
index 00000000..26e19d47
--- /dev/null
+++ b/.gitlab-ci.yml
@@ -0,0 +1,21 @@
+variables:
+  # all submodules will be cloned recursively upon start of CI job
+  GIT_SUBMODULE_STRATEGY: recursive
+  GIT_SSL_NO_VERIFY: "true"
+
+stages:
+  - build
+
+##########################
+# BUILD stage            #                                
+##########################
+
+build_image:
+  # description: triggers a build of the project as a Docker image,
+  #              each branch will have an individual Docker image that will be used
+  #              in the following stages of the pipeline for testing the code
+  stage: build
+  tags:
+    - docker-image-build
+  script:
+    - ignore
diff --git a/Dockerfile b/Dockerfile
new file mode 100644
index 00000000..cca60d25
--- /dev/null
+++ b/Dockerfile
@@ -0,0 +1,11 @@
+# The release set in this Dockerfile defines the release of the whole project
+# and is parsed by every setup script and by the installation instructions.
+# Be aware of this effect if you edit the release here!
+FROM atlas/atlas_external_cvmfs
+ADD . /calypso
+WORKDIR /build
+RUN setupATLAS && \
+    asetup master,latest,Athena && \
+    cmake -DCMAKE_INSTALL_PREFIX=../run ../calypso && \
+    make
+
-- 
GitLab