Skip to content

Commit

Permalink
fixed lab deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
godfryd committed Mar 6, 2021
1 parent 2427690 commit 35d18f4
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 1 addition & 0 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -422,6 +422,7 @@ task :compose_to_swarm => DOCKER_COMPOSE do
sh "yq e 'del(.networks)' -i docker-compose-swarm-tmp.yaml"
sh "yq e '.services.ui.ports = [\"8888:80\"]' -i docker-compose-swarm-tmp.yaml"
sh "yq e 'del(.services.clickhouse.ports)' -i docker-compose-swarm-tmp.yaml"
sh "yq e '.services.agent.environment = .services.agent.environment + \"KRAKEN_AGENT_SLOT={{.Task.Slot}}\"' -i docker-compose-swarm-tmp.yaml"
sh "yq eval-all 'select(fileIndex == 0) * select(filename == \"docker-compose-swarm-patch.yaml\")' docker-compose-swarm-tmp.yaml docker-compose-swarm-patch.yaml > docker-compose-swarm.yaml"
sh 'rm docker-compose-swarm-tmp.yaml'
sh "#{DOCKER_COMPOSE} -f docker-compose-swarm.yaml config > kraken-docker-stack-#{kk_ver}.yaml"
Expand Down
2 changes: 0 additions & 2 deletions docker-compose-swarm-patch.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@ services:
image: eu.gcr.io/kraken-261806/kkchproxy:kk_ver
agent:
image: eu.gcr.io/kraken-261806/kkagent:kk_ver
environment:
- KRAKEN_AGENT_SLOT={{.Task.Slot}}
deploy:
replicas: 3
volumes:
Expand Down

0 comments on commit 35d18f4

Please sign in to comment.