{"action":"created","issue":{"url":"https://api.github.com/repos/jenkinsci/docker/issues/271","repository_url":"https://api.github.com/repos/jenkinsci/docker","labels_url":"https://api.github.com/repos/jenkinsci/docker/issues/271/labels{/name}","comments_url":"https://api.github.com/repos/jenkinsci/docker/issues/271/comments","events_url":"https://api.github.com/repos/jenkinsci/docker/issues/271/events","html_url":"https://github.com/jenkinsci/docker/issues/271","id":155599360,"number":271,"title":"question: use of volume makes docker build with this image as base hard work","user":{"login":"edsykes","id":1677173,"avatar_url":"https://avatars.githubusercontent.com/u/1677173?v=3","gravatar_id":"","url":"https://api.github.com/users/edsykes","html_url":"https://github.com/edsykes","followers_url":"https://api.github.com/users/edsykes/followers","following_url":"https://api.github.com/users/edsykes/following{/other_user}","gists_url":"https://api.github.com/users/edsykes/gists{/gist_id}","starred_url":"https://api.github.com/users/edsykes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/edsykes/subscriptions","organizations_url":"https://api.github.com/users/edsykes/orgs","repos_url":"https://api.github.com/users/edsykes/repos","events_url":"https://api.github.com/users/edsykes/events{/privacy}","received_events_url":"https://api.github.com/users/edsykes/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-05-18T20:55:19Z","updated_at":"2016-05-19T08:50:29Z","closed_at":null,"body":"Hi,\r\n\r\nI'm using this image as a base image for a custom docker build. The fact that a volume is being used means that docker build throws away file system changes to the jenkins user home directory. This makes using docker build to create a new image difficult. For example, I can't edit ~/.bashrc in a docker run command in my own dockerfile because it gets thrown away at the end of the build step.\r\n\r\nI'm not sure what the alternative is, as removing the volume will make it harder for those who want to just you the built image and have their data saved between runs of the container. However I want to highlight it for discussion."},"comment":{"url":"https://api.github.com/repos/jenkinsci/docker/issues/comments/220264802","html_url":"https://github.com/jenkinsci/docker/issues/271#issuecomment-220264802","issue_url":"https://api.github.com/repos/jenkinsci/docker/issues/271","id":220264802,"user":{"login":"edsykes","id":1677173,"avatar_url":"https://avatars.githubusercontent.com/u/1677173?v=3","gravatar_id":"","url":"https://api.github.com/users/edsykes","html_url":"https://github.com/edsykes","followers_url":"https://api.github.com/users/edsykes/followers","following_url":"https://api.github.com/users/edsykes/following{/other_user}","gists_url":"https://api.github.com/users/edsykes/gists{/gist_id}","starred_url":"https://api.github.com/users/edsykes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/edsykes/subscriptions","organizations_url":"https://api.github.com/users/edsykes/orgs","repos_url":"https://api.github.com/users/edsykes/repos","events_url":"https://api.github.com/users/edsykes/events{/privacy}","received_events_url":"https://api.github.com/users/edsykes/received_events","type":"User","site_admin":false},"created_at":"2016-05-19T08:50:29Z","updated_at":"2016-05-19T08:50:29Z","body":"The issue is partly as you mention, it's also that JENKINS_HOME and the jenkins user home directory are conflated, in my opinion. \r\n\r\nI've created a pull request that removes that conflation and allows my use case:\r\n\r\nhttps://github.com/jenkinsci/docker/pull/272\r\n\r\nI'm going to be working with this version today to ensure that everything works as it should.\r\n\r\ned"}}