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

build.sh hangs when docker user has large uid #48

Open Mapreduce2 opened 3 years ago

Mapreduce2 commented 3 years ago

Describe the bug build.sh hangs when docker user has large uid.

To Reproduce Steps to reproduce the behavior: sudo useradd biguiduser -u 1952219375 -g sas

sudo usermod -aG Docker biguiduser

sudo su – biguiduser

Then execute the build with this user and see if hangs…

./build.sh --type single --zip /SAS_Viya_deployment_data.zip --addons "auth-demo"

Expected behavior The container should be build successfully but it hangs on steps 7 of 20

Step 7/20 : RUN useradd --uid ${USER_UID} --gid ${DOCKER_GID} --create-home --shell /bin/bash sas ---> Running in b9068a5a7ebb

Environment (please complete the applicable information):

**Resolution:

Modify the following to sas-container-recipes/Dockerfile with -l in useradd command.

RUN useradd -l --uid ${USER_UID} \ --gid ${DOCKER_GID} \ --create-home \ --shell /bin/bash \ sas

Additional context Add any other context about the problem here.