Skip to content
This repository has been archived by the owner on Aug 30, 2022. It is now read-only.

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

Open
Mapreduce2 opened this issue Oct 5, 2020 · 0 comments
Open

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

Mapreduce2 opened this issue Oct 5, 2020 · 0 comments

Comments

@Mapreduce2
Copy link

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):

  • OS: CentOs
  • Browser NA
  • Version Viya 3.5

**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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant