My deployment platform is a shell script
11–20 of 141 posts
Re: My deployment platform is a shell script
#12 my script will never:
- go down
- require an upgrade
- force me to migrate
- surprise me
- keep me up at night
Oh my sweet summer child.Re: My deployment platform is a shell script
#13Polls a docker registry and automatically restarts the container with the same flags that it was started with using the latest image.
Re: My deployment platform is a shell script
#14my script will never: - go down - require an upgrade - force me to migrate - surprise me - keep me up at night Oh my sweet summer child.
Re: My deployment platform is a shell script
#15Not to deride this (too much), but the 'robustness' of deployments with shell scripts is tempting bait. Things are until they aren't, 'nobody rides for free' - decide what you're willing to pay. Example: this interprets the output of 'ls' . Reliability is dependent on good quoting/never introducing a project with spaces Ansible is a nice middle ground, personally. I write the state that differs, use a library of scri…
SAVEIFS=$IFS
IFS=$(echo -en "\n\b")
or something similar at the top of the script might not come across as comparable to adopting Ansible to some people.Re: My deployment platform is a shell script
#16Re: My deployment platform is a shell script
#17Not to deride this (too much), but the 'robustness' of deployments with shell scripts is tempting bait. Things are until they aren't, 'nobody rides for free' - decide what you're willing to pay. Example: this interprets the output of 'ls' . Reliability is dependent on good quoting/never introducing a project with spaces Ansible is a nice middle ground, personally. I write the state that differs, use a library of scri…
And it's an easy fix:
- for project in $(ls go-cicd); do
+ cd go-cicd || exit 1; for project in \*; doRe: My deployment platform is a shell script
#18my script will never: - go down - require an upgrade - force me to migrate - surprise me - keep me up at night Oh my sweet summer child.
[flagged]
Re: My deployment platform is a shell script
#19Earlier quoted context omitted.
[flagged]
It's an expression that implies that someone is naive and/or inexperienced.
https://news.ycombinator.com/item?id=39417916
It adds absolutely nothing to the discussion. A better response is for the GP to tell us why they think the OP is naive. It's a low effort unsubstantiated jab that pollutes the comments.
Re: My deployment platform is a shell script
#20Not to deride this (too much), but the 'robustness' of deployments with shell scripts is tempting bait. Things are until they aren't, 'nobody rides for free' - decide what you're willing to pay. Example: this interprets the output of 'ls' . Reliability is dependent on good quoting/never introducing a project with spaces Ansible is a nice middle ground, personally. I write the state that differs, use a library of scri…
Parsing ls is an anti-pattern, but the author says it works for years - we all do mistakes and as long as it works you don't notice. And it's an easy fix: - for project in $(ls go-cicd); do + cd go-cicd || exit 1; for project in \*; do
for project in go-cicd/*; do
project="${project#*/}"