Comments (10)
@mnagy [ -v TEST ]
does not seems to work for me on OS X.
hack/build.sh: line 73: [: -v: unary operator expected
If [[
is preferred and the convention, it seems reasonable to require OS X users to update bash with homebrew or use a linux VM. They are already jumping through some amount of hoops to get docker running.
I leave it to your expert opinions.
from s2i-python-container.
@bparees @csrwng i think we should fix this for all scripts in all our images, right?
from s2i-python-container.
yes 👍
from s2i-python-container.
I haven't run into this because I usually replace the default OS X bash with the latest one installed from brew.
from s2i-python-container.
@dlbewley [ also supports -v. Does OS X bash not support -v? If not, then I suggest we use -n "${TEST_MODE:-}"
, at least in scripts that do not tolerate usage of unset variables.
from s2i-python-container.
though it's a bit religious, [[ seems to be generally preferred(more full featured) and not all that new, i'm surprised OSX has an issue:
http://stackoverflow.com/questions/669452/is-preferable-over-in-bash-scripts
but I won't stand in the way if one of you mac users wants to fix it :)
from s2i-python-container.
@bparees yeah, I prefer [[
as well... but recently I learned OSX bash sux :-) (unless you install the latest bash from homebrew, which is what I'm doing ;-)
from s2i-python-container.
FWIW, even upcoming MacOS X High Sierra will still have the same old bash version, likely because newer versions use GPL V3 and so Apple will avoid it. Personally I don't like installing bash through Homebrew, as as a developer who releases my own packages, I need to ensure I am writing scripts which will work with the system bash version.
My preference therefore is to use syntax that works with older bash version. Since I need to get ability to build working on MacOS X to test some of the current PRs, I'll create a PR to use older syntax.
from s2i-python-container.
AFAIK this should be fixed for some time already (in build.sh
at least) since we had a similar request for this over at sclorg/container-common-scripts#17
from s2i-python-container.
Okay. Seems have moved to git sub modules for the stuff as well so not even in this repo anymore.
So can someone close this then if has been addressed.
from s2i-python-container.
Related Issues (20)
- No Action Required !! Testing automation workflow HOT 1
- No Action Required !! Testing automation workflow HOT 4
- Remove verification of installed packages HOT 3
- 3.9 Readme Instructions unclear HOT 6
- Python 3.10 RHEL image missing in RHEL Container catalog? HOT 4
- Unable to build a Python image from scratch on MacOS HOT 1
- Python 3.9+ for Centos 7 docker images HOT 4
- tests: test case should fail early when the prepare function fails HOT 3
- Distgen errors HOT 11
- Incorrect py-3 image HOT 11
- Support gunicorn >=20.1.0 defaults (do not require APP_ environment variables) HOT 1
- Add RHEL images for Python 3.11 HOT 4
- ERROR: No matching distribution found for numpy==1.19.2 HOT 4
- Use PIP_INDEX_URL with pipenv HOT 1
- ubi9/python-311:latest is using python3.9-rpm HOT 2
- Publish arm64 images HOT 8
- rh-python38 failed on `'npm-virtualenv-uwsgi-test-app' run_s2i_build` & `'pin-pipenv-version-test-app' run_s2i_build` HOT 2
- python311-devel not found by microdnf in python 3.11 minimal EL8 and C9s variants HOT 1
- Documented pull example quay.io/sclorg/python-39-minimal isn't a valid URL HOT 5
- Cannot resolve internal host HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from s2i-python-container.