-
Mattia Mancini authored
Former-commit-id: 9d81a7c9
Mattia Mancini authoredFormer-commit-id: 9d81a7c9
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
build_docker.sh 673 B
#! /bin/bash
set -e
git_clone_or_pull () {
REPO=$1
BRANCH=$2
DIR=$3
if [ -d $DIR ]
then
git -C "${DIR}" pull
else
git clone --depth 1 -b "${BRANCH}" "${REPO}" "${DIR}"
fi
}
Prefactor_TAG=production
LOFAR_TAG=LOFAR-Release-4_0_17
# FETCHES Prefactor
git_clone_or_pull https://github.com/lofar-astron/prefactor.git ${Prefactor_TAG} prefactor
git_clone_or_pull https://git.astron.nl/ro/lofar.git ${LOFAR_TAG} lofar
SCRIPT_PATH=$(realpath ${BASH_SOURCE[0]})
DOCKER_PATH=$(dirname ${SCRIPT_PATH})
docker build ${DOCKER_PATH} -t lofareosc/prefactor
docker build ${DOCKER_PATH} -f ${DOCKER_PATH}/Dockerfile_ci -t lofareosc/prefactor-ci