Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 3 additions & 9 deletions stack-rexray.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
version: "3.7"

# 2. TODO: would prefer on-failure restart_policy, but need to run this in script to look
# for if plugin exists first before reinstalling
# 3. TODO: would prefer this picks a driver version, and support driver updates

x-default-opts:
&default-opts
logging:
Expand All @@ -16,18 +12,16 @@ x-default-opts:
services:
plugin-rexray:
<<: *default-opts
image: mavenugo/swarm-exec:17.03.0-ce
image: kaustavb12/rexray-plugin-installer:2021-04-12
volumes:
- /var/run/docker.sock:/var/run/docker.sock
secrets:
- rexray_do_token
environment:
- REXRAY_DO_TOKEN_FILE=/run/secrets/rexray_do_token
command: sh -c "docker plugin install --grant-all-permissions rexray/dobs DOBS_REGION=nyc3 DOBS_TOKEN=$$(cat $$REXRAY_DO_TOKEN_FILE) DOBS_CONVERTUNDERSCORES=true"
command: sh -c "./install-plugin.sh --driver dobs --version 0.11.4 --do-secret rexray_do_token --do-region nyc3 --do-convert-underscore"
deploy:
mode: global
restart_policy:
condition: none
condition: on-failure

secrets:
rexray_do_token:
Expand Down