...
 
......@@ -22,12 +22,12 @@ prepare_ci_lta_docker_image:
- docker build -t ci_base -f Docker/lofar-ci/Dockerfile_ci_base .
- docker build -t ci_lta -f Docker/lofar-ci/Dockerfile_ci_lta .
#TODO: make proper MAC docker image with WinCC (rpm packages from mcu001)
#prepare_ci_mac_docker_image:
# stage: prepare
# script:
# - docker build -t ci_base -f Docker/lofar-ci/Dockerfile_ci_base .
# - docker build -t ci_mac -f Docker/lofar-ci/Dockerfile_ci_mac .
TODO: make proper MAC docker image with WinCC (rpm packages from mcu001)
prepare_ci_mac_docker_image:
stage: prepare
script:
- docker build -t ci_base -f Docker/lofar-ci/Dockerfile_ci_base .
- docker build -t ci_mac -f Docker/lofar-ci/Dockerfile_ci_mac .
#
# BUILD STAGE
......@@ -87,24 +87,24 @@ build_LTAIngest:
paths:
- build/gnucxx11_opt
# TODO: enable when prepare_ci_mac_docker_image is fixed
#build_MCU_MAC:
# stage: build
# image: ci_mac:latest
# script:
# - PACKAGE=MCU_MAC
# - echo "Building $PACKAGE..."
# - mkdir -p build/gnucxx11_opt
# - cd build/gnucxx11_opt
# - cmake -DBUILD_PACKAGES=$PACKAGE -DUSE_LOG4CPLUS=false ../..
# - make -j 8
# - make install
# dependencies:
# - prepare_ci_mac_docker_image
# artifacts:
# expire_in: 6 hours
# paths:
# - build/gnucxx11_opt
TODO: enable when prepare_ci_mac_docker_image is fixed
build_MCU_MAC:
stage: build
image: ci_mac:latest
script:
- PACKAGE=MainCU
- echo "Building $PACKAGE..."
- mkdir -p build/gnucxx11_opt
- cd build/gnucxx11_opt
- cmake -DBUILD_PACKAGES=$PACKAGE -DUSE_LOG4CPLUS=false -DWINCC_ROOT_DIR=/opt/WinCC_OA/3.14/ ../..
- make -j 8
- make install
dependencies:
- prepare_ci_mac_docker_image
artifacts:
expire_in: 6 hours
paths:
- build/gnucxx11_opt
#
# UNIT TEST STAGE
......
......@@ -7,9 +7,7 @@ FROM centos:centos7.6.1810
RUN yum -y groupinstall 'Development Tools' && \
yum -y install epel-release && \
yum -y install cmake gcc git log4cplus-devel python3 python3-devel python3-pip which wget curl atop
RUN pip3 install kombu requests coverage python-qpid-proton
RUN adduser lofarsys
yum -y install cmake gcc git log4cplus-devel python3 python3-devel python3-pip which wget curl atop && \
pip3 install kombu requests coverage python-qpid-proton && \
adduser lofarsys
......@@ -9,13 +9,13 @@ RUN echo "Installing packages for MAC..." && \
yum -y install readline-devel boost-python36-devel hdf5-devel blas-devel lapack-devel cfitsio-devel wcslib-devel autogen postgresql-devel cmake3 libpqxx-devel qpid-cpp-server qpid-cpp-client-devel qpid-tools unittest-cpp-devel && \
pip3 install psycopg2 testing.postgresql lxml mock numpy kombu requests python-dateutil fabric
RUN echo "Installing Casacore..." && \
git clone https://github.com/casacore/casacore && \
mkdir /casacore/build/ && \
cd /casacore/build/ && \
cmake -DCMAKE_INSTALL_PREFIX=/opt/casacore -DBUILD_PYTHON3=ON -DBUILD_PYTHON=OFF -DPYTHON_EXECUTABLE=/usr/bin/python3 -DUSE_OPENMP=ON -DUSE_FFTW3=TRUE -DUSE_HDF5=ON -DCMAKE_BUILD_TYPE=Release .. && \
make -j 8 && \
make install
#RUN echo "Installing Casacore..." && \
# git clone https://github.com/casacore/casacore && \
# mkdir /casacore/build/ && \
# cd /casacore/build/ && \
# cmake -DCMAKE_INSTALL_PREFIX=/opt/casacore -DBUILD_PYTHON3=ON -DBUILD_PYTHON=OFF -DPYTHON_EXECUTABLE=/usr/bin/python3 -DUSE_OPENMP=ON -DUSE_FFTW3=TRUE -DUSE_HDF5=ON -DCMAKE_BUILD_TYPE=Release .. && \
# make -j 8 && \
# make install
RUN echo "Installing Blitz++" && \
cd / && \
......@@ -24,4 +24,12 @@ RUN echo "Installing Blitz++" && \
cd /blitz/build && \
cmake --prefix=/opt/blitz/ .. && \
make -j 8 lib && \
make install
\ No newline at end of file
make install
RUN echo "Installing WinCC3.14 from nexus ALTA repo..." && \
cd /tmp && \
wget https://support.astron.nl/nexus/content/repositories/snapshots/nl/alta/buildWinCC314api.tar.gz && \
tar -xvf buildWinCC314api.tar.gz && \
cd opt && \
mv WinCC_OA /opt/