Open gdurandvadas opened 10 months ago
Hi @gdurandvadas,
Might I ask what is the purpose and use case of using cli instead of using environment variables example - confs?
docker run --rm --name split-synchronizer \
-p 3010:3010 \
-e SPLIT_SYNC_APIKEY="your-sdk-key" \
-e SPLIT_SYNC_REDIS_HOST=<your-redis-host> \
-e SPLIT_SYNC_REDIS_PORT=<your_redis_port> \
splitsoftware/split-synchronizer
Thanks, Matias
Hello @mmelograno,
I know the EVNs will work, but this is more of a workaround for my setup since I prefer to manipulate a JSON file than nested string arguments. On the other hand, the bug is still there if files are not being loaded. I would prefer it if you fixed it or updated the documentation if the feature is not meant to be supported.
Thanks!
hi @gdurandvadas, sorry you're having issues with our tool. As @mmelograno mentioned before, our image is meant to be used with environment variables as the primary interface, and the binary inside is built for AMD64 architecture.
If you want to use a JSON file instead you have 2 options:
approach A:
build your own image (you can grab a pre-built binary from https://downloads.split.io/synchronizer/downloads.sync.html) and package it with the custom JSON you want to use (and reference it by adding -config=<your_file>
to your entrypoint arguments.
approach B: use our image with the following extra steps:
-config=</<mount_path>/<your_file.json>
please let us know if you're still having issues. thanks!
When running Synchronizer on Docker you can't send the cli flags
If I pass an argument to the container as per documentation, it doesn't work as expected
If I overwrite the entrypoint and run the command with arguments, it does work