Skip to content
Snippets Groups Projects
Commit 7af51de9 authored by Jan David Mol's avatar Jan David Mol
Browse files

L2SS-394: Give sane defaults for TANGO_LOFAR_CONTAINER_DIR and...

L2SS-394: Give sane defaults for TANGO_LOFAR_CONTAINER_DIR and TANGO_LOFAR_CONTAINER_MOUNT, so they do not have to be specified anymore.
parent b63a071a
No related branches found
No related tags found
No related merge requests found
...@@ -17,8 +17,8 @@ export LOFAR20_DIR=${1:-$(realpath ${ABSOLUTE_PATH}/../..)} ...@@ -17,8 +17,8 @@ export LOFAR20_DIR=${1:-$(realpath ${ABSOLUTE_PATH}/../..)}
# The current setting is for a production environment. # The current setting is for a production environment.
export TANGO_LOFAR_LOCAL_DIR=${LOFAR20_DIR}/ export TANGO_LOFAR_LOCAL_DIR=${LOFAR20_DIR}/
export TANGO_LOFAR_CONTAINER_DIR=/opt/lofar2.0/tango/ # Optionally, the LOFAR code can be mounted elsewhere
export TANGO_LOFAR_CONTAINER_MOUNT=${TANGO_LOFAR_LOCAL_DIR}:${TANGO_LOFAR_CONTAINER_DIR}:rw #export TANGO_LOFAR_CONTAINER_DIR=/opt/lofar2.0/tango/
# This needs to be modified for a development environment. # This needs to be modified for a development environment.
# In case you run multiple Docker networks on the same host in parallel, you need to specify a unique # In case you run multiple Docker networks on the same host in parallel, you need to specify a unique
......
# Before doing anything, make 100% certain that all necessary environment # Before doing anything, make 100% certain that all necessary environment
# variables are set. # variables are set.
ifndef LOFAR20_DIR ifndef TANGO_LOFAR_LOCAL_DIR
# Generate the full path to the lofar20rc.sh file # Generate the full path to the lofar20rc.sh file
# for exactly this repository. # for exactly this repository.
LOFAR20RC = $(subst docker-compose,bootstrap/etc/lofar20rc.sh,$(abspath .)) LOFAR20RC = $(subst docker-compose,bootstrap/etc/lofar20rc.sh,$(abspath .))
...@@ -24,6 +24,10 @@ NETWORK_MODE ?= tangonet ...@@ -24,6 +24,10 @@ NETWORK_MODE ?= tangonet
# Host name through which others can reach our control interfaces # Host name through which others can reach our control interfaces
HOSTNAME ?= $(shell hostname -f) HOSTNAME ?= $(shell hostname -f)
# Default container dir & mount
TANGO_LOFAR_CONTAINER_DIR ?= /opt/lofar2.0/tango
TANGO_LOFAR_CONTAINER_MOUNT ?= ${TANGO_LOFAR_LOCAL_DIR}:$(TANGO_LOFAR_CONTAINER_DIR):rw
# If the first make argument is "start" or "stop"... # If the first make argument is "start" or "stop"...
ifeq (start,$(firstword $(MAKECMDGOALS))) ifeq (start,$(firstword $(MAKECMDGOALS)))
SERVICE_TARGET = true SERVICE_TARGET = true
...@@ -118,7 +122,7 @@ DOCKER_COMPOSE_ARGS := DISPLAY=$(DISPLAY) \ ...@@ -118,7 +122,7 @@ DOCKER_COMPOSE_ARGS := DISPLAY=$(DISPLAY) \
NETWORK_MODE=$(NETWORK_MODE) \ NETWORK_MODE=$(NETWORK_MODE) \
XAUTHORITY_MOUNT=$(XAUTHORITY_MOUNT) \ XAUTHORITY_MOUNT=$(XAUTHORITY_MOUNT) \
TANGO_LOFAR_CONTAINER_MOUNT=$(TANGO_LOFAR_CONTAINER_MOUNT) \ TANGO_LOFAR_CONTAINER_MOUNT=$(TANGO_LOFAR_CONTAINER_MOUNT) \
TANGO_LOFAR_CONTAINER_DIR=${TANGO_LOFAR_CONTAINER_DIR} MYSQL_HOST=$(MYSQL_HOST) \ TANGO_LOFAR_CONTAINER_DIR=$(TANGO_LOFAR_CONTAINER_DIR) MYSQL_HOST=$(MYSQL_HOST) \
CONTAINER_NAME_PREFIX=$(CONTAINER_NAME_PREFIX) \ CONTAINER_NAME_PREFIX=$(CONTAINER_NAME_PREFIX) \
COMPOSE_IGNORE_ORPHANS=true \ COMPOSE_IGNORE_ORPHANS=true \
CONTAINER_EXECUTION_UID=$(shell id -u) \ CONTAINER_EXECUTION_UID=$(shell id -u) \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment