From ceef0936694d93271332f74ce6ca04e8bc526b4c Mon Sep 17 00:00:00 2001
From: mancini <mancini@astron.nl>
Date: Wed, 10 Jul 2019 16:58:38 +0200
Subject: [PATCH] SSB-47: add entrypoint for docker image to source lofar code

---
 CAL/Docker/HolographyBuild/Dockerfile    | 1 +
 CAL/Docker/HolographyBuild/entrypoint.sh | 2 ++
 2 files changed, 3 insertions(+)
 create mode 100644 CAL/Docker/HolographyBuild/entrypoint.sh

diff --git a/CAL/Docker/HolographyBuild/Dockerfile b/CAL/Docker/HolographyBuild/Dockerfile
index 1c8bc2ca434..bc160345899 100644
--- a/CAL/Docker/HolographyBuild/Dockerfile
+++ b/CAL/Docker/HolographyBuild/Dockerfile
@@ -11,3 +11,4 @@ RUN mkdir -p /root/src/build/gnucxx11_debug
 WORKDIR /root/src/build/gnucxx11_debug
 RUN cmake ../../ -DUSE_LOG4CPLUS=OFF -DBUILD_PACKAGES=CAL -DCMAKE_INSTALL_PREFIX=/opt/lofar
 RUN make install
+COPY ./entrypoint.sh /root/entrypoint.sh
diff --git a/CAL/Docker/HolographyBuild/entrypoint.sh b/CAL/Docker/HolographyBuild/entrypoint.sh
new file mode 100644
index 00000000000..60255aed76d
--- /dev/null
+++ b/CAL/Docker/HolographyBuild/entrypoint.sh
@@ -0,0 +1,2 @@
+#!/usr/bin/env bash
+source /opt/lofar/lofarinit.sh
\ No newline at end of file
-- 
GitLab