Skip to content
This repository was archived by the owner on Feb 13, 2024. It is now read-only.

[BUG] Container Build fails on WSL - home directory not created? #248

Closed
2 tasks done
dzett opened this issue Oct 6, 2022 · 2 comments
Closed
2 tasks done

[BUG] Container Build fails on WSL - home directory not created? #248

dzett opened this issue Oct 6, 2022 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@dzett
Copy link

dzett commented Oct 6, 2022

Is there an existing issue for this?

  • I have searched the existing issues

Are you using the latest docker image for BTPSA?

  • I'm using the latest docker image for BTPSA.

Which area is mainly impacted

Docker Image (Build or Run)

Current Behavior

Executing the run script on WSL fails during container build with:

...

Step 52/71 : RUN cf install-plugin -f https://github.com/cloudfoundry-incubator/multiapps-cli-plugin/releases/latest/download/multiapps-plugin.linux32
---> Running in 69edce9a1520
mkdir /home/user/.config: permission denied
FAILED
The command '/bin/sh -c cf install-plugin -f https://github.com/cloudfoundry-incubator/multiapps-cli-plugin/releases/latest/download/multiapps-plugin.linux32' returned a non-zero code: 1
...

Expected Behavior

Build works fine.

Steps To Reproduce

On WSL2 on Windows, run the ./run script

Logs and configuration files available?

No response

Anything else?

I noticed that the dockerfile executes adduser with option --no-create-home, and also didn't find any other instruction that would create the home directory.

I removed the --no-create-home option and afterwards the run script worked fine, is there a reason to not create a home directory for the "user"-user?

@dzett dzett added the bug Something isn't working label Oct 6, 2022
@lechnerc77 lechnerc77 self-assigned this Oct 6, 2022
@rui1610
Copy link
Contributor

rui1610 commented Oct 6, 2022

Hi @dzett , we were able to reproduce the issue. In essence the no-create-home option was not needed as we create the folder manually.

We have fixed this in the code and as well created a new docker image in this GitHub repo.

Please let us know in case this works for you, and we can close the issue.

Best,
Rui

@dzett
Copy link
Author

dzett commented Oct 7, 2022

Hi @rui1610, I confirm the container is now working in my WSL2 setup in principle and I can launch the btpsa command inside. Thanks for the quick fix! D.

@dzett dzett closed this as completed Oct 7, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants