Skip to content

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

Open
@gnikxela0328

Description

@gnikxela0328

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions