From 8c6314eeaf75f7a644f9dbfa425036eadea05037 Mon Sep 17 00:00:00 2001
From: Stefano Alberto Russo <stefano.russo@gmail.com>
Date: Mon, 20 Jul 2020 16:19:05 +0200
Subject: [PATCH] Duplicated ddf2 public container code in a separate folder in
 preparation of branch merge.

---
 ddf2_public/Dockerfile                | 21 +++++++++++++++++++++
 ddf2_public/build_docker_container.sh |  4 ++++
 ddf2_public/run_docker_container.sh   |  2 ++
 3 files changed, 27 insertions(+)
 create mode 100644 ddf2_public/Dockerfile
 create mode 100755 ddf2_public/build_docker_container.sh
 create mode 100755 ddf2_public/run_docker_container.sh

diff --git a/ddf2_public/Dockerfile b/ddf2_public/Dockerfile
new file mode 100644
index 0000000..4f77a5c
--- /dev/null
+++ b/ddf2_public/Dockerfile
@@ -0,0 +1,21 @@
+FROM lofarit/base3.10
+
+USER root
+
+RUN apt-get install llvm-7 -y
+ENV LLVM_CONFIG=llvm-config-7 
+ENV PYTHONPATH /opt/lofarsoft/lib/python2.7/site-packages
+#------------------------
+# Get and install ddf2
+#------------------------
+# DDF pipeline
+RUN cd /opt && git clone https://github.com/mhardcastle/ddf-pipeline.git
+RUN cd /opt/ddf-pipeline && git checkout DR1
+
+RUN cd /opt ./ddf-pipeline/scripts/install.sh
+
+RUN cd /opt && git clone https://www.ict.inaf.it/gitlab/lofarit/container-data.git
+
+
+ENV CONTAINER_NAME='ddf2_public_base3.10'
+ENV DDF_PIPELINE_CATALOGS='/opt/container-data/bootstrap-cats/'
diff --git a/ddf2_public/build_docker_container.sh b/ddf2_public/build_docker_container.sh
new file mode 100755
index 0000000..71c1887
--- /dev/null
+++ b/ddf2_public/build_docker_container.sh
@@ -0,0 +1,4 @@
+#!/bin/bash
+set -e 
+
+docker build  . -t lofarit/ddf2_public_base3.10 
diff --git a/ddf2_public/run_docker_container.sh b/ddf2_public/run_docker_container.sh
new file mode 100755
index 0000000..b372470
--- /dev/null
+++ b/ddf2_public/run_docker_container.sh
@@ -0,0 +1,2 @@
+#!/bin/bash
+docker run --rm -v $PWD/data:/data -it lofarit/ddf2_public_base3.10 /bin/bash
-- 
GitLab