sassoftware / sas-container-recipes

A collection of recipes and other resources for building containers that include SAS Viya software.
https://www.sas.com
Apache License 2.0
89 stars 42 forks source link

Darwin has no getent #18

Open hornpolish opened 5 years ago

hornpolish commented 5 years ago

Describe the bug build.sh fails when run on darwin

To Reproduce

./build.sh --type single \ --zip ~/proj/SOE/SAS_Viya_deployment_data.zip \ --docker-url docker.sas.com \ --docker-namespace kent \ --addons addons/auth-demo

./build.sh: line 277: getent: command not found

Expected behavior build builds

Environment (please complete the applicable information):

Additional context dscl . -read /users/$USER | grep PrimaryGroupID |awk -F: '{print $2}' is what you want for Darwin

g8sman commented 5 years ago

Mac OS's are not something we test with. I will take a look at our documentation and make sure that we give proper information about what works where. This may be some time before we get to it. If you are able to make this work, please submit a merge request and we will happy to review and merge.

g8sman commented 5 years ago

I have an branch in the internal code base. If others have this issue, I can push this out to a branch on github for others to consume. Release of this would be for the release post 19m05.