You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@devlake.apache.org by "clement-igonet (via GitHub)" <gi...@apache.org> on 2023/12/04 15:52:50 UTC

[I] [Bug][gitextractor] Dockerfile - devlake user cannot run update-ca-certificates [incubator-devlake]

clement-igonet opened a new issue, #6556:
URL: https://github.com/apache/incubator-devlake/issues/6556

   ### Search before asking
   
   - [X] I had searched in the [issues](https://github.com/apache/incubator-devlake/issues?q=is%3Aissue) and found no similar issues.
   
   
   ### What happened
   
   The Configuration Troubleshooting page [here](https://devlake.apache.org/docs/Troubleshooting/Configuration) indicates to make run update-ca-certificates to import rootCA.
   However, it is not possible as a devlake (non root) user (at least on v0.18.0 and above)
   
   ### What do you expect to happen
   
   I expect `update-ca-certificates` to be runnable.
   
   ### How to reproduce
   
   Follow the documentation:
   ```
     devlake:
       image: apache/devlake:v...
       ...
       volumes:
         ...
         - /path/to/your/rootCA.crt:/usr/local/share/ca-certificates/rootCA.crt
       command: [ "sh", "-c", "update-ca-certificates; lake" ]
       ...
    ```
   
   ### Anything else
   
   _No response_
   
   ### Version
   
   v0.18.0 and above
   
   ### Are you willing to submit PR?
   
   - [X] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@devlake.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Bug][gitextractor] Dockerfile - devlake user cannot run update-ca-certificates [incubator-devlake]

Posted by "klesh (via GitHub)" <gi...@apache.org>.
klesh commented on issue #6556:
URL: https://github.com/apache/incubator-devlake/issues/6556#issuecomment-1842040418

   Nice work, @ZhangNing10 Please update the doc as well, thanks


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@devlake.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Bug][gitextractor] Dockerfile - devlake user cannot run update-ca-certificates [incubator-devlake]

Posted by "ZhangNing10 (via GitHub)" <gi...@apache.org>.
ZhangNing10 commented on issue #6556:
URL: https://github.com/apache/incubator-devlake/issues/6556#issuecomment-1841043396

   @clement-igonet you can try below solution:
   `mkdir certs
   chown -R 1010:1010
   `
   then in the docker-compose.yml, mount ./certs to /etc/ssl/certs
   <img width="734" alt="image" src="https://github.com/apache/incubator-devlake/assets/135692613/940c04cc-d2a6-44e6-979d-c3bc41bc87d8">
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@devlake.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Bug][gitextractor] Dockerfile - devlake user cannot run update-ca-certificates [incubator-devlake]

Posted by "klesh (via GitHub)" <gi...@apache.org>.
klesh commented on issue #6556:
URL: https://github.com/apache/incubator-devlake/issues/6556#issuecomment-1840108200

   @clement-igonet You are right, this is problematic, thanks for reporting the issue.
   @ZhangNing10 please take a look


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@devlake.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Bug][gitextractor] Dockerfile - devlake user cannot run update-ca-certificates [incubator-devlake]

Posted by "clement-igonet (via GitHub)" <gi...@apache.org>.
clement-igonet commented on issue #6556:
URL: https://github.com/apache/incubator-devlake/issues/6556#issuecomment-1842129086

   However, for such chmod operation, it forces the user to be able to use root priviledges in the host machine...
   Is it better than keeping a root user inside the container ?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@devlake.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Bug][gitextractor] Dockerfile - devlake user cannot run update-ca-certificates [incubator-devlake]

Posted by "klesh (via GitHub)" <gi...@apache.org>.
klesh closed issue #6556: [Bug][gitextractor] Dockerfile - devlake user cannot run update-ca-certificates
URL: https://github.com/apache/incubator-devlake/issues/6556


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@devlake.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org