Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mkdir permissions issue: RUN make ./src/engine #2

Open
gnikxela0328 opened this issue Aug 8, 2022 · 0 comments
Open

mkdir permissions issue: RUN make ./src/engine #2

gnikxela0328 opened this issue Aug 8, 2022 · 0 comments

Comments

@gnikxela0328
Copy link

Had an issue running the docker file, this was the error output:

Step 8/23 : RUN make
 ---> Running in 9187ffbbc916
mkdir -p obj
mkdir: cannot create directory 'obj': Permission denied
make: *** [../../Makefile.config:16: obj] Error 1
The command '/bin/sh -c make' returned a non-zero code: 2

I bypassed this by adding :

USER root

To line 8 of Dockerfile

Again, another permissions issue popped up:

Step 15/24 : RUN dotnet restore -r alpine-x64
 ---> Running in e5cefff48350
  Determining projects to restore...
/usr/share/dotnet/sdk/6.0.302/NuGet.targets(130,5): error : Access to the path '/home/nonroot/mbs-analytics/src/frontend/obj' is denied. [/home/nonroot/mbs-analytics/src/frontend/frontend.csproj]
/usr/share/dotnet/sdk/6.0.302/NuGet.targets(130,5): error :   Permission denied [/home/nonroot/mbs-analytics/src/frontend/frontend.csproj]
The command '/bin/sh -c dotnet restore -r alpine-x64' returned a non-zero code: 1

By adding

USER root

to line 16, it began to work again.

This resulted in a successful docker build.

!!! Can you add a walkthrough of how to use this program in the read me? upon running the program immediately outputs a bunch of features and exits. I am not sure how to interpret this

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

No branches or pull requests

1 participant