This indeed is required so the actual files on workspace don't get corrupted by user IDs/premissions that only exist in your container. You should configure your container to relax permission and let arbitrary user run your build tools
2016-09-02 12:05 GMT+02:00 Oliver Gondža <[email protected]>: > I am tying to get jenkinsci/packaging to work from Pipeline using > docker-workflow-plugin: > > ``` > builder = docker.build 'jenkins-packaging-builder:0.1' > builder.inside { > sh "make rpm ..." > } > ``` > > All seems well except that rpmbuild comaplins at a couple of places: no > $HOME is defined, the uid/gid for generated files does not exist in the > system. > > The problem is the pluign instructs docker to "use" user with uid/gid > matching the outer user (so filesystem can be shared) but the user account > does not exist inside. It seems that docker "creates" the user to come > extend but it is not fully configured causing tools to fail in weird ways. > > I guess I can switch to use the container as root somehow or update the > image to create some user for this purpose but this seems like an inherent > struggle with the approach. What is the best practice here? > > In case it is relevant I am using docker 1.10.3 and docker-workflow-plugin > 1.6. > > Thanks > -- > oliver > > -- > You received this message because you are subscribed to the Google Groups > "Jenkins Developers" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit https://groups.google.com/d/ms > gid/jenkinsci-dev/2f6e4595-80e0-18ba-2e2a-6a1053aa0d87%40gmail.com. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "Jenkins Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/CANMVJzkLSUCU4sfCMS38o%2BUsbx4q%3DVx-eYcTRaF5dRT7nbTmDw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
