You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
The Atlassian Community can help you and your team get more value out of Atlassian products and practices.
Docker is stripping quotation marks around my env vars but I need them.
My input via UI is:
TAG_RULE='[{ "foo": [ "value" ], "tags": [{ "key": "key1", "value": "value1"}, { "key": "key2", "value": "value2"}]}]' ANNOTATION_TYPE="annotation type here..."
/usr/bin/docker run --volume /opt/bamboofiles/xml-data/build-dir/FP-PLAN-SKE:/data --workdir /data --rm -e TAG_RULE=[{ "foo": [ "value" ], "tags": [{ "key": "key1", "value": "value1"}, { "key": "foo2", "value": "value2"}]}] -e ANNOTATION_TYPE=annotation type here... myOrg/myContainer:v1
Which obviously fails due to the spaces in the env vars...
I've tried mixing single quotes and double quotes. I've also tried escaping them but they all get removed.
What's the solution here?