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/msgid/jenkinsci-dev/2f6e4595-80e0-18ba-2e2a-6a1053aa0d87%40gmail.com.
For more options, visit https://groups.google.com/d/optout.