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

Merge branch 'L2SS-792' into 'master'

L2SS-792: Fix not being able to connect to database

See merge request !338
parents ed30a0ef b2036e85
No related branches found
No related tags found
1 merge request!338L2SS-792: Fix not being able to connect to database
...@@ -106,7 +106,7 @@ else ...@@ -106,7 +106,7 @@ else
endif endif
# #
# When running in network=host mode, point devices at a port on the host # When uunning in network=host mode, point devices at a port on the host
# machine rather than at the container. # machine rather than at the container.
# #
ifeq ($(NETWORK_MODE),host) ifeq ($(NETWORK_MODE),host)
...@@ -160,7 +160,7 @@ up: minimal ## start the base TANGO system and prepare requested services ...@@ -160,7 +160,7 @@ up: minimal ## start the base TANGO system and prepare requested services
$(DOCKER_COMPOSE_ARGS) docker-compose $(COMPOSE_FILE_ARGS) up --no-start --no-recreate $(SERVICE) $(DOCKER_COMPOSE_ARGS) docker-compose $(COMPOSE_FILE_ARGS) up --no-start --no-recreate $(SERVICE)
run: minimal ## run a service using arguments and delete it afterwards run: minimal ## run a service using arguments and delete it afterwards
$(DOCKER_COMPOSE_ARGS) docker-compose $(COMPOSE_FILE_ARGS) run --rm $(SERVICE) $(SERVICE_ARGS) $(DOCKER_COMPOSE_ARGS) docker-compose $(COMPOSE_FILE_ARGS) run --no-deps --rm $(SERVICE) $(SERVICE_ARGS)
down: ## stop all services and tear down the system down: ## stop all services and tear down the system
$(DOCKER_COMPOSE_ARGS) docker-compose $(COMPOSE_FILE_ARGS) down $(DOCKER_COMPOSE_ARGS) docker-compose $(COMPOSE_FILE_ARGS) down
...@@ -174,7 +174,7 @@ ifneq ($(NETWORK_MODE),host) ...@@ -174,7 +174,7 @@ ifneq ($(NETWORK_MODE),host)
docker network inspect $(NETWORK_MODE) &> /dev/null || ([ $$? -ne 0 ] && docker network create $(NETWORK_MODE)) docker network inspect $(NETWORK_MODE) &> /dev/null || ([ $$? -ne 0 ] && docker network create $(NETWORK_MODE))
docker network inspect 9000-$(NETWORK_MODE) &> /dev/null || ([ $$? -ne 0 ] && docker network create 9000-$(NETWORK_MODE) -o com.docker.network.driver.mtu=9000) docker network inspect 9000-$(NETWORK_MODE) &> /dev/null || ([ $$? -ne 0 ] && docker network create 9000-$(NETWORK_MODE) -o com.docker.network.driver.mtu=9000)
endif endif
$(DOCKER_COMPOSE_ARGS) docker-compose -f tango.yml -f networks.yml up -d $(DOCKER_COMPOSE_ARGS) docker-compose -f tango.yml -f networks.yml up --no-recreate -d
bootstrap: pull build # first start, initialise from scratch bootstrap: pull build # first start, initialise from scratch
$(MAKE) start elk-configure-host # configure host kernel for elk container $(MAKE) start elk-configure-host # configure host kernel for elk container
...@@ -197,7 +197,7 @@ restart: ## restart a service (usage: make restart <servicename>) ...@@ -197,7 +197,7 @@ restart: ## restart a service (usage: make restart <servicename>)
make start $(SERVICE) make start $(SERVICE)
attach: ## attach a service to an existing Tango network attach: ## attach a service to an existing Tango network
$(DOCKER_COMPOSE_ARGS) docker-compose $(ATTACH_COMPOSE_FILE_ARGS) up -d $(SERVICE) $(DOCKER_COMPOSE_ARGS) docker-compose $(ATTACH_COMPOSE_FILE_ARGS) up --no-recreate -d $(SERVICE)
status: ## show the container status status: ## show the container status
$(DOCKER_COMPOSE_ARGS) docker-compose $(COMPOSE_FILE_ARGS) ps $(DOCKER_COMPOSE_ARGS) docker-compose $(COMPOSE_FILE_ARGS) ps
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment