Skip to content

Commands need root permission in Dockerfile-build of the project using MicroProfile framework #27

Open

Description

@EunKyung-Kim

Hi,

I remember this worked well at least 4 weeks ago. Since 2 weeks ago, webProfile7 docker image has been updated several times.

Anyway, I try to build the project of MicroProfile framework, but I meet the failure at the step for building the container image.

According to my log file, "mkdir -p /root/java" command failed with below error message. cannot create directory '/root': Permission denied

This command is one of Dockerfile-build.

Temporarily I added a command "USER root" to 2nd line in Dockerfile-build.
It looks like working well.

I think while originally generating Dockerfile-build this permission issue should be solved.

Activity

  1. johnmcollier commented on Oct 31, 2018

    @johnmcollier
    Contributor

    Hi @EunKyung-Kim,

    This is a known issue with the Liberty docker container, and we are actively pursuing a fix for this. In the meanwhile, your work around adding: USER root to the application's Dockerfile-build will work.

  2. EunKyung-Kim commented on Oct 31, 2018

    @EunKyung-Kim
    Author

    @johnmcollier
    It sounds good.
    Let me know it when the issue is fixed.

    FYI. actually I had to add "USER root" to Dockerfile, not Dockerfile-build. The reason is that the command "RUN /opt/ibm/wlp/usr/extension/liberty_dc/bin/config_liberty_dc.sh" can be executed with root permission in Dockerfile generated by Microclimate.

  3. adcassi commented on Nov 1, 2018

    @adcassi

    Hello Guys, I was having the same issue and the addition of the USER root now fixed the permission errors I was seeing but now the import stop in the following message, Any idea?[ERROR Thu Nov 1 02:28:03 UTC 2018 | Project: FileWatcher | File Name: /server/dist/controllers/projectsController.js | Function Name: getProjectInfoFromFile | Line Number: 631] Failed to find project information related to file /fwdata/projects/e73ae220-d7d2-11e8-99c8-eb2f635c11f0/e73ae220-d7d2-11e8-99c8-eb2f635c11f0.json
    [ERROR Thu Nov 1 02:28:05 UTC 2018 | Project: FileWatcher | File Name: /server/dist/controllers/projectsController.js | Function Name: getProjectInfoFromFile | Line Number: 631] Failed to find project information related to file /fwdata/projects/e73ae220-d7d2-11e8-99c8-eb2f635c11f0/e73ae220-d7d2-11e8-99c8-eb2f635c11f0.json
    [ERROR Thu Nov 1 02:28:07 UTC 2018 | Project: FileWatcher | File Name: /server/dist/controllers/projectsController.js | Function Name: getProjectInfoFromFile | Line Number: 631] Failed to find project information related to file /fwdata/projects/e73ae220-d7d2-11e8-99c8-eb2f635c11f0/e73ae220-d7d2-11e8-99c8-eb2f635c11f0.json
    [ERROR Thu Nov 1 02:28:09 UTC 2018 | Project: FileWatcher | File Name: /server/dist/controllers/projectsController.js | Function Name: getProjectInfoFromFile | Line Number: 631] Failed to find project information related to file /fwdata/projects/e73ae220-d7d2-11e8-99c8-eb2f635c11f0/e73ae220-d7d2-11e8-99c8-eb2f635c11f0.json

  4. adcassi commented on Nov 1, 2018

    @adcassi

    Hello,
    I did load the latest version of Rogue and now it is running fine. Thanks.

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions