{"action":"created","issue":{"url":"https://api.github.com/repos/openshift/sti-python/issues/84","labels_url":"https://api.github.com/repos/openshift/sti-python/issues/84/labels{/name}","comments_url":"https://api.github.com/repos/openshift/sti-python/issues/84/comments","events_url":"https://api.github.com/repos/openshift/sti-python/issues/84/events","html_url":"https://github.com/openshift/sti-python/issues/84","id":125106196,"number":84,"title":"The /tmp/src directory is never removed.","user":{"login":"GrahamDumpleton","id":507637,"avatar_url":"https://avatars.githubusercontent.com/u/507637?v=3","gravatar_id":"","url":"https://api.github.com/users/GrahamDumpleton","html_url":"https://github.com/GrahamDumpleton","followers_url":"https://api.github.com/users/GrahamDumpleton/followers","following_url":"https://api.github.com/users/GrahamDumpleton/following{/other_user}","gists_url":"https://api.github.com/users/GrahamDumpleton/gists{/gist_id}","starred_url":"https://api.github.com/users/GrahamDumpleton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GrahamDumpleton/subscriptions","organizations_url":"https://api.github.com/users/GrahamDumpleton/orgs","repos_url":"https://api.github.com/users/GrahamDumpleton/repos","events_url":"https://api.github.com/users/GrahamDumpleton/events{/privacy}","received_events_url":"https://api.github.com/users/GrahamDumpleton/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2016-01-06T04:07:33Z","updated_at":"2016-01-06T09:59:09Z","closed_at":null,"body":"Minor issue.\r\n\r\nAfter the 'assemble' script does:\r\n\r\n```\r\necho \"---> Copying application source ...\"\r\ncp -Rf /tmp/src/. ./\r\n```\r\n\r\nNothing ever appears to remove '/tmp/src'.\r\n\r\nThis means you have two copies of the application. If the source code and data files for the application were very large, that is an unnecessary waste of space.\r\n\r\nIs that intentional for any specific reason?\r\n"},"comment":{"url":"https://api.github.com/repos/openshift/sti-python/issues/comments/169281457","html_url":"https://github.com/openshift/sti-python/issues/84#issuecomment-169281457","issue_url":"https://api.github.com/repos/openshift/sti-python/issues/84","id":169281457,"user":{"login":"GrahamDumpleton","id":507637,"avatar_url":"https://avatars.githubusercontent.com/u/507637?v=3","gravatar_id":"","url":"https://api.github.com/users/GrahamDumpleton","html_url":"https://github.com/GrahamDumpleton","followers_url":"https://api.github.com/users/GrahamDumpleton/followers","following_url":"https://api.github.com/users/GrahamDumpleton/following{/other_user}","gists_url":"https://api.github.com/users/GrahamDumpleton/gists{/gist_id}","starred_url":"https://api.github.com/users/GrahamDumpleton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GrahamDumpleton/subscriptions","organizations_url":"https://api.github.com/users/GrahamDumpleton/orgs","repos_url":"https://api.github.com/users/GrahamDumpleton/repos","events_url":"https://api.github.com/users/GrahamDumpleton/events{/privacy}","received_events_url":"https://api.github.com/users/GrahamDumpleton/received_events","type":"User","site_admin":false},"created_at":"2016-01-06T09:59:09Z","updated_at":"2016-01-06T09:59:09Z","body":"And just to confirm files are copied in, rather than mounted, where copying in is what I thought happened, here are verbose logs.\r\n\r\n```\r\n$ s2i --loglevel=5 --force-pull=false build /tmp/example op\r\n\r\nI0106 20:56:46.223596 48617 main.go:61] Running S2I version \"v1.0.4\"\r\nI0106 20:56:46.372237 48617 docker.go:224] Image openshift/python-27-centos7:latest available locally\r\n\r\nBuilder Name:\t\tPython 2.7\r\nBuilder Image:\t\topenshift/python-27-centos7\r\nBuilder Image Version:\tfb12296\r\nBuilder Base Version:\t71a650e\r\nSource:\t\t\t/tmp/example\r\nOutput Image Tag:\tmy-image\r\nIncremental Build:\tdisabled\r\nRemove Old Build:\tdisabled\r\nBuilder Pull Policy:\tif-not-present\r\nQuiet:\t\t\tdisabled\r\nLayered Build:\t\tdisabled\r\nDocker Endpoint:\ttcp://192.168.99.100:2376\r\n\r\nI0106 20:56:46.664528 48617 docker.go:224] Image openshift/python-27-centos7:latest available locally\r\nI0106 20:56:46.790968 48617 scm.go:17] DownloadForSource /tmp/example\r\nI0106 20:56:46.791096 48617 git.go:198] useCopy proto spec false local git repo false has git bin true\r\nI0106 20:56:46.791110 48617 git.go:204] makePathAbsolute /tmp/example\r\nI0106 20:56:46.791115 48617 scm.go:20] return from ParseFile file exists true proto specified false use copy true\r\nI0106 20:56:46.791119 48617 scm.go:27] new source from parse file /tmp/example\r\nI0106 20:56:46.919638 48617 sti.go:140] Preparing to build my-image\r\nI0106 20:56:46.920750 48617 download.go:27] Copying sources from \"/tmp/example\" to \"/var/folders/0p/4vcv19pj5d72m_bx0h40sw340000gp/T/sti218781277/upload/src\"\r\nI0106 20:56:46.920789 48617 fs.go:97] cp -a /tmp/example/ /var/folders/0p/4vcv19pj5d72m_bx0h40sw340000gp/T/sti218781277/upload/src\r\nI0106 20:56:46.957774 48617 docker.go:224] Image openshift/python-27-centos7:latest available locally\r\nI0106 20:56:46.957797 48617 docker.go:344] Image contains io.openshift.s2i.scripts-url set to 'image:///usr/libexec/s2i'\r\nI0106 20:56:46.957821 48617 download.go:57] Using image internal scripts from: image:///usr/libexec/s2i/assemble\r\nI0106 20:56:46.957831 48617 download.go:57] Using image internal scripts from: image:///usr/libexec/s2i/run\r\nI0106 20:56:46.959506 48617 docker.go:224] Image openshift/python-27-centos7:latest available locally\r\nI0106 20:56:46.959523 48617 docker.go:344] Image contains io.openshift.s2i.scripts-url set to 'image:///usr/libexec/s2i'\r\nI0106 20:56:46.959538 48617 download.go:57] Using image internal scripts from: image:///usr/libexec/s2i/save-artifacts\r\nI0106 20:56:46.959547 48617 sti.go:221] Using assemble from image:///usr/libexec/s2i\r\nI0106 20:56:46.959553 48617 sti.go:221] Using run from image:///usr/libexec/s2i\r\nI0106 20:56:46.959558 48617 sti.go:221] Using save-artifacts from image:///usr/libexec/s2i\r\nI0106 20:56:46.959598 48617 ignore.go:58] .s2iignore file does not exist\r\nI0106 20:56:46.959608 48617 sti.go:148] Clean build will be performed\r\nI0106 20:56:46.959614 48617 sti.go:151] Performing source build from file:///tmp/example\r\nI0106 20:56:46.959618 48617 sti.go:164] Running \"assemble\" in \"my-image\"\r\nI0106 20:56:46.959627 48617 sti.go:412] Using image name openshift/python-27-centos7\r\nI0106 20:56:46.959639 48617 sti.go:416] No .sti/environment provided (no environment file found in application sources)\r\nI0106 20:56:46.961732 48617 tar.go:177] Adding to tar: /var/folders/0p/4vcv19pj5d72m_bx0h40sw340000gp/T/sti218781277/upload/src/requirements.txt as src/requirements.txt\r\nI0106 20:56:46.963590 48617 docker.go:344] Image contains io.openshift.s2i.scripts-url set to 'image:///usr/libexec/s2i'\r\nI0106 20:56:46.963605 48617 docker.go:399] Base directory for STI scripts is '/usr/libexec/s2i'. Untarring destination is '/tmp'.\r\nI0106 20:56:46.963615 48617 docker.go:529] Creating container using config: {Hostname: Domainname: User: Memory:0 MemorySwap:0 CPUShares:0 CPUSet: AttachStdin:false AttachStdout:true AttachStderr:false PortSpecs:[] ExposedPorts:map[] Tty:false OpenStdin:true StdinOnce:true Env:[] Cmd:[/bin/sh -c tar -C /tmp -xf - && /usr/libexec/s2i/assemble] DNS:[] Image:openshift/python-27-centos7:latest Volumes:map[] VolumesFrom: WorkingDir: MacAddress: Entrypoint:[] NetworkDisabled:false SecurityOpts:[] OnBuild:[] Mounts:[] Labels:map[]}\r\nI0106 20:56:46.986281 48617 docker.go:543] Attaching to container\r\nI0106 20:56:47.009378 48617 docker.go:549] Starting container\r\nI0106 20:56:47.010403 48617 tar.go:177] Adding to tar: /var/folders/0p/4vcv19pj5d72m_bx0h40sw340000gp/T/sti218781277/upload/src/wsgi.py as src/wsgi.py\r\nI0106 20:56:47.067859 48617 docker.go:479] Waiting for container\r\nI0106 20:56:47.072938 48617 sti.go:492] ---> Copying application source ...\r\nI0106 20:56:47.076852 48617 sti.go:492] ---> Installing dependencies ...\r\nI0106 20:56:47.266589 48617 sti.go:492] Downloading/unpacking antigravity (from -r requirements.txt (line 2))\r\nI0106 20:56:47.510395 48617 sti.go:492]   Downloading antigravity-0.1.zip\r\nI0106 20:56:47.518420 48617 sti.go:492]   Running setup.py (path:/tmp/pip-build-XnV64H/antigravity/setup.py) egg_info for package antigravity\r\nI0106 20:56:47.599559 48617 sti.go:492]\r\nI0106 20:56:47.611548 48617 sti.go:492] Installing collected packages: antigravity\r\nI0106 20:56:47.612169 48617 sti.go:492]   Running setup.py install for antigravity\r\nI0106 20:56:47.694971 48617 sti.go:492]\r\nI0106 20:56:47.715335 48617 sti.go:492] Successfully installed antigravity\r\nI0106 20:56:47.715688 48617 sti.go:492] Cleaning up...\r\nI0106 20:56:47.852496 48617 docker.go:481] Container wait returns with 0 and <nil>\r\nI0106 20:56:47.852528 48617 docker.go:488] Container exited\r\nI0106 20:56:47.852534 48617 docker.go:571] Invoking postExecution function\r\nI0106 20:56:47.852577 48617 sti.go:270] No .sti/environment provided (no environment file found in application sources)\r\nI0106 20:56:47.856595 48617 docker.go:606] Committing container with config: {Hostname: Domainname: User:1001 Memory:0 MemorySwap:0 CPUShares:0 CPUSet: AttachStdin:false AttachStdout:false AttachStderr:false PortSpecs:[] ExposedPorts:map[] Tty:false OpenStdin:false StdinOnce:false Env:[] Cmd:[/usr/libexec/s2i/run] DNS:[] Image: Volumes:map[] VolumesFrom: WorkingDir: MacAddress: Entrypoint:[] NetworkDisabled:false SecurityOpts:[] OnBuild:[] Mounts:[] Labels:map[io.openshift.s2i.scripts-url:image:///usr/libexec/s2i License:GPLv2 io.openshift.builder-base-version:71a650e io.openshift.s2i.build.image:openshift/python-27-centos7 io.k8s.display-name:my-image Vendor:CentOS io.k8s.description:Platform for building and running Python 2.7 applications io.openshift.builder-version:fb12296 io.openshift.tags:builder,python,python27,rh-python27 io.s2i.scripts-url:image:///usr/libexec/s2i io.openshift.s2i.build.commit.author: <> io.openshift.s2i.build.source-location:/tmp/example io.openshift.expose-services:8080:http]}\r\nI0106 20:56:47.904609 48617 sti.go:315] Successfully built my-image\r\nI0106 20:56:47.910388 48617 cleanup.go:23] Removing temporary directory /var/folders/0p/4vcv19pj5d72m_bx0h40sw340000gp/T/sti218781277\r\nI0106 20:56:47.910419 48617 fs.go:117] Removing directory '/var/folders/0p/4vcv19pj5d72m_bx0h40sw340000gp/T/sti218781277'\r\n```"}}