Skip to content

Commit 11a26ed

Browse files
authored
Filestash: remove special docker node label (#959)
1 parent 816f091 commit 11a26ed

File tree

5 files changed

+10
-36
lines changed

5 files changed

+10
-36
lines changed

services/filestash/Makefile

Lines changed: 7 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -24,50 +24,39 @@ up-letsencrypt-dns: .init .env filestash_config.json ${TEMP_COMPOSE}-letsencrypt
2424
@docker stack deploy --with-registry-auth --prune --compose-file ${TEMP_COMPOSE}-letsencrypt-dns ${STACK_NAME}
2525

2626
.PHONY: up-dalco ## Deploys stack for Dalco Cluster
27-
up-dalco: .init .env filestash_config.json ${TEMP_COMPOSE}-dalco
28-
@docker stack deploy --with-registry-auth --prune --compose-file ${TEMP_COMPOSE}-dalco ${STACK_NAME}
27+
up-dalco: up
2928

3029
.PHONY: up-aws ## Deploys stack on aws
3130
up-aws: .init .env ${TEMP_COMPOSE}-aws filestash_config.json ## Deploys stack in aws
3231
@docker stack deploy --with-registry-auth --prune --compose-file ${TEMP_COMPOSE}-aws ${STACK_NAME}
3332

3433
.PHONY: up-master ## Deploys stack for master Cluster
35-
up-master: .init .env filestash_config.json ${TEMP_COMPOSE}-master
36-
@docker stack deploy --with-registry-auth --prune --compose-file ${TEMP_COMPOSE}-master ${STACK_NAME}
34+
up-master: up
3735

3836
.PHONY: up-public ## Deploys stack on public
39-
up-public: up-dalco
37+
up-public: up
4038

4139
.PHONY: up-local ## Deploys stack on local deployment
4240
up-local: up
4341

4442
# Helpers -------------------------------------------------
4543

4644
.PHONY: ${TEMP_COMPOSE}
47-
${TEMP_COMPOSE}: docker-compose.yml
45+
${TEMP_COMPOSE}: docker-compose.yml .env
4846
@${REPO_BASE_DIR}/scripts/docker-stack-config.bash -e .env $< > $@
4947

5048
.PHONY: ${TEMP_COMPOSE}-letsencrypt-http
51-
${TEMP_COMPOSE}-letsencrypt-http: docker-compose.yml docker-compose.letsencrypt.http.yml
49+
${TEMP_COMPOSE}-letsencrypt-http: docker-compose.yml docker-compose.letsencrypt.http.yml .env
5250
@${REPO_BASE_DIR}/scripts/docker-stack-config.bash -e .env $< docker-compose.letsencrypt.http.yml > $@
5351

5452
.PHONY: ${TEMP_COMPOSE}-letsencrypt-dns
55-
${TEMP_COMPOSE}-letsencrypt-dns: docker-compose.yml docker-compose.letsencrypt.dns.yml
53+
${TEMP_COMPOSE}-letsencrypt-dns: docker-compose.yml docker-compose.letsencrypt.dns.yml .env
5654
@${REPO_BASE_DIR}/scripts/docker-stack-config.bash -e .env $< docker-compose.letsencrypt.dns.yml > $@
5755

58-
.PHONY: ${TEMP_COMPOSE}-dalco
59-
${TEMP_COMPOSE}-dalco: docker-compose.yml docker-compose.dalco.yml
60-
@${REPO_BASE_DIR}/scripts/docker-stack-config.bash -e .env $< docker-compose.dalco.yml > $@
61-
62-
.PHONY: ${TEMP_COMPOSE}-master
63-
${TEMP_COMPOSE}-master: docker-compose.yml docker-compose.master.yml
64-
@${REPO_BASE_DIR}/scripts/docker-stack-config.bash -e .env $< docker-compose.master.yml > $@
65-
6656
.PHONY: ${TEMP_COMPOSE}-aws
67-
${TEMP_COMPOSE}-aws: docker-compose.yml docker-compose.aws.yml
57+
${TEMP_COMPOSE}-aws: docker-compose.yml docker-compose.aws.yml .env
6858
@${REPO_BASE_DIR}/scripts/docker-stack-config.bash -e .env $< docker-compose.aws.yml > $@
6959

70-
7160
filestash_config.json: .env
7261
@set -o allexport; \
7362
source $(REPO_CONFIG_LOCATION); \

services/filestash/docker-compose.aws.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,3 @@ services:
33
filestash:
44
dns: # Add this always for AWS, otherwise we get "No such image: " for docker services
55
8.8.8.8
6-
deploy:
7-
placement:
8-
constraints:
9-
- node.labels.filestash==true

services/filestash/docker-compose.dalco.yml

Lines changed: 0 additions & 7 deletions
This file was deleted.

services/filestash/docker-compose.master.yml

Lines changed: 0 additions & 7 deletions
This file was deleted.

services/filestash/docker-compose.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@ services:
2626
reservations:
2727
memory: 32M
2828
cpus: "0.1"
29+
placement:
30+
constraints:
31+
- node.labels.ops==true
2932
onlyoffice:
3033
image: onlyoffice/documentserver:7.4.0
3134
networks:

0 commit comments

Comments
 (0)