Any $ sympols need to be escaped with a $ symbol.
redRolf opened this issue · 4 comments
This is regarding the Docker Compose section in the readme.
current state:
cloud_storage_data:
driver: sapk/plugin-rclone
driver_opts:
config: "$(base64 ~/.config/rclone/rclone.conf)"
args: "--read-only --fast-list"
remote: "https://sos-ch-dk-2.exo.io:rmcsearchresiliotestrz"
according to: moby/moby#30629
this is how it should look.
cloud_storage_data:
driver: sapk/plugin-rclone
driver_opts:
config: "$$(base64 ~/.config/rclone/rclone.conf)"
args: "--read-only --fast-list"
remote: "https://sos-ch-dk-2.exo.io:rmcsearchresiliotestrz"
After using two $ signs my docker compose file worked. Before that I got the error:
Invalid interpolation format for "driver_opts
Sorry my fault. The config needs to be converted to base 64 and then pasted in at config: "base64 string of rclone.conf"
No problems this part isn't clear enough maybe I should add step for generating the base64 in global var and use it via variable substitution.
thats what I have done now :)
driver_opts:
config: ${RCLONE_CONF_BASE64}
args: "--read-only --fast-list"
remote: "exoscale-encrypted:${S3_BUCKET}"
Yes and you have done something like export RCLONE_CONF_BASE64=$(base64 ~/.config/rclone/rclone.conf)
before your docker-compose up
.
I should add put it that way in the docs.
What I was thinking was copying the result of base64 custom-rclone.conf
in the docker-compose file because it is how I use it but that not the simplest way to begin when most people are using the default.