Skip to content

Commit 4d7d3e3

Browse files
committed
Simplification
1 parent e42a00e commit 4d7d3e3

File tree

4 files changed

+6
-8
lines changed

4 files changed

+6
-8
lines changed

services/rabbit/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ ${CLEAN_VOLUMES_TEMP_COMPOSE}: docker-compose.clean-volumes.yaml .env
6060

6161
TIMEOUT = 2m
6262
delete-volumes: ${CLEAN_VOLUMES_TEMP_COMPOSE}
63-
## avoid accumulating tasks (in case they fail). Always start fresh new
63+
## avoid accumulating tasks https://github.com/moby/moby/issues/45443
6464
@docker stack rm --detach=false ${CLEAN_VOLUMES_STACK_NAME}
6565
## use --detach=false to wait until all jobs complete successfully
6666
@timeout ${TIMEOUT} \

services/rabbit/docker-compose.clean-volumes.yaml.j2

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ services:
3131
target: /app/delete_rabbit_docker_volume_on_node.sh
3232
mode: 0755
3333
environment:
34-
VOLUME: ${STACK_NAME}0{{ ix }}_data
34+
VOLUME: rabbit0{{ ix }}_data
3535
TIMEOUT_MINUTES: 1
3636
INTERVAL_SECONDS: 10
3737
entrypoint: ["/app/delete_rabbit_docker_volume_on_node.sh"]
@@ -40,4 +40,4 @@ services:
4040
configs:
4141
delete_rabbit_docker_volume_on_node_script:
4242
file: ./scripts/delete_rabbit_docker_volume_on_node.sh
43-
name: ${STACK_NAME}_delete_rabbit_docker_volume_on_node_script_{{ "./scripts/delete_rabbit_docker_volume_on_node.sh" | sha256file | substring(0,10) }}
43+
name: rabbit_delete_rabbit_docker_volume_on_node_script_{{ "./scripts/delete_rabbit_docker_volume_on_node.sh" | sha256file | substring(0,10) }}

services/rabbit/docker-compose.yml.j2

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ services:
128128
volumes:
129129
{% for ix in NODE_IXS %}
130130
rabbit0{{ ix }}_data:
131-
name: ${STACK_NAME}0{{ ix }}_data
131+
name: rabbit0{{ ix }}_data
132132
{%- endfor %}
133133

134134
networks:
@@ -142,10 +142,10 @@ configs:
142142
file: ./rabbitmq.conf
143143
haproxy.cfg:
144144
file: ./haproxy.cfg
145-
name: ${STACK_NAME}_haproxy_conf_{{ "./haproxy.cfg" | sha256file | substring(0,10) }}
145+
name: rabbit_haproxy_conf_{{ "./haproxy.cfg" | sha256file | substring(0,10) }}
146146

147147
secrets:
148148
rabbit_erlang_cookie:
149149
# no rolling update since it requires full cluster restart
150-
name: ${STACK_NAME}_erlang_cookie
150+
name: rabbit_erlang_cookie
151151
file: ./erlang.cookie.secret

services/rabbit/template.env

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
STACK_NAME=${STACK_NAME}
2-
31
RABBIT_CLUSTER_NODE_COUNT=${RABBIT_CLUSTER_NODE_COUNT}
42
RABBIT_QUORUM_QUEUE_DEFAULT_REPLICA_COUNT=${RABBIT_QUORUM_QUEUE_DEFAULT_REPLICA_COUNT}
53

0 commit comments

Comments
 (0)