swarm: use context
This commit is contained in:
		
							parent
							
								
									ef037a6916
								
							
						
					
					
						commit
						91999ec9b5
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
					@ -42,7 +42,7 @@ start-compose:
 | 
				
			||||||
start-swarm:
 | 
					start-swarm:
 | 
				
			||||||
	@- echo "\n### starting service(s)"
 | 
						@- echo "\n### starting service(s)"
 | 
				
			||||||
	@- $(foreach ctx,$(DEPLOY_HOSTS), \
 | 
						@- $(foreach ctx,$(DEPLOY_HOSTS), \
 | 
				
			||||||
		docker stack deploy -c stack.yml $(DEPLOY_NAME); \
 | 
							docker --context $(ctx) stack deploy -c stack.yml $(DEPLOY_NAME); \
 | 
				
			||||||
	)
 | 
						)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
stop-compose:
 | 
					stop-compose:
 | 
				
			||||||
| 
						 | 
					@ -55,7 +55,7 @@ stop-compose:
 | 
				
			||||||
stop-swarm:
 | 
					stop-swarm:
 | 
				
			||||||
	@- echo "\n### stopping service(s)"
 | 
						@- echo "\n### stopping service(s)"
 | 
				
			||||||
	@- $(foreach ctx,$(DEPLOY_HOSTS), \
 | 
						@- $(foreach ctx,$(DEPLOY_HOSTS), \
 | 
				
			||||||
		docker stack rm $(DEPLOY_NAME); \
 | 
							docker --context $(ctx) stack rm $(DEPLOY_NAME); \
 | 
				
			||||||
	)
 | 
						)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
logs-compose:
 | 
					logs-compose:
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue