Closed damey2011 closed 4 months ago
Thanks for sharing @damey2011! Maybe I can try to rewrite the script to use sh
only, and basic grep features. Or at least check the availability of both programs and display a friendly message.
Yeah. That would make a huge difference.
@damey2011 Could you please help test the version from #22?
I tested it, it works! only the cut -f 1 w
command does not seem to work because the -w argument is not known on alpine.
It does continue though.
I can’t really find what -w does anyway.
@theupriser Thanks for taking the time to test! I have updated the code with an equivalent of the unsupported -w
option.
@rcknr Alright that's nice and fast! Thanks!
edit: tested the commit, seems to work all fine!
Fixed in #22
This is not really anymore an issue at least for me, but just to make it easier for someone who runs into similar issue as well. Even after following the guide, I ran into issues like:
AND
For the first issue of
rollout is not a docker command
. If you rundocker info
, you'd see that docker fails to load the plugin and returns a warning as part of the message as follows:The problem here is that the docker-rollout plugin is being executed or supported on only
bash
currently. This might be a very trivial issue to resolve. I'd try to create an PR to fix this, but in the meantime, it's easy to document this issue. The easy solution is to installbash
in your alpine image.apk add --update bash && rm -rf /var/cache/apk/*
Also, for the issue with
grep
, your alpine image comes with a stripped downgrep
package. You can fix this by simply runningapk add --no-cache --upgrade grep
These took me a couple of hours to resolve, but I thought it could save someone a lot of developer hours as well. Nevertheless, I'll during my leisure time, develop an MR to address this.
Feel free to leave this open if it's cool to have this support, or close the issue if this is outside of the scope of the tool.