{"action":"created","issue":{"url":"https://api.github.com/repos/fabric8io/ipaas-quickstarts/issues/1047","repository_url":"https://api.github.com/repos/fabric8io/ipaas-quickstarts","labels_url":"https://api.github.com/repos/fabric8io/ipaas-quickstarts/issues/1047/labels{/name}","comments_url":"https://api.github.com/repos/fabric8io/ipaas-quickstarts/issues/1047/comments","events_url":"https://api.github.com/repos/fabric8io/ipaas-quickstarts/issues/1047/events","html_url":"https://github.com/fabric8io/ipaas-quickstarts/issues/1047","id":121733209,"number":1047,"title":"Docker file permissions are wrong when building on Windows","user":{"login":"stevemuk","id":13052482,"avatar_url":"https://avatars.githubusercontent.com/u/13052482?v=3","gravatar_id":"","url":"https://api.github.com/users/stevemuk","html_url":"https://github.com/stevemuk","followers_url":"https://api.github.com/users/stevemuk/followers","following_url":"https://api.github.com/users/stevemuk/following{/other_user}","gists_url":"https://api.github.com/users/stevemuk/gists{/gist_id}","starred_url":"https://api.github.com/users/stevemuk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stevemuk/subscriptions","organizations_url":"https://api.github.com/users/stevemuk/orgs","repos_url":"https://api.github.com/users/stevemuk/repos","events_url":"https://api.github.com/users/stevemuk/events{/privacy}","received_events_url":"https://api.github.com/users/stevemuk/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2015-12-11T15:47:38Z","updated_at":"2017-02-02T15:00:44Z","closed_at":null,"body":"If I take the generated DockerFile and build with docker command line it works, but warns you the permissions are all set +x. Should the maven plugin behave the same as the docker command line?\n\n```\nc:>mvn docker:build\n\n[INFO] Scanning for projects...\n[INFO]\n[INFO] ------------------------------------------------------------------------\n[INFO] Building Fabric8 :: Quickstarts :: Java :: Simple main class 2.2.74-SNAPSHOT\n[INFO] ------------------------------------------------------------------------\n[INFO]\n...\n[INFO] ------------------------------------------------------------------------\n[INFO] BUILD SUCCESS\n[INFO] ------------------------------------------------------------------------\n[INFO] Total time: 29.887 s\n[INFO] Finished at: 2015-12-11T15:29:15+00:00\n[INFO] Final Memory: 16M/253M\n[INFO] ------------------------------------------------------------------------\n\nc:>docker images\n\nREPOSITORY                                 TAG                 IMAGE ID            CREATED              VIRTUAL SIZE\nfabric8/quickstart-java-simple-mainclass   2.2.74-SNAPSHOT     26805d3f2ecc        About a minute ago   436.2 MB\n\n\nc:>docker run 26805d3f2ecc\nExecuting /deployments/bin/run ...\n/usr/local/s2i/run: line 13: /deployments/bin/run.sh: Permission denied\n/usr/local/s2i/run: line 13: exec: /deployments/bin/run.sh: cannot execute: Permission denied\n```\n\n```\nc:>cd target\\docker\\fabric8\\quickstart-java-simple-mainclass\\2.2.74-SNAPSHOT\\build\nc:>docker build -t foo:1 .\n\nSending build context to Docker daemon   450 kB\nStep 1 : FROM fabric8/s2i-java:1.2.5\n ---> 82ae593a0b06\nStep 2 : MAINTAINER docker-maven-plugin@jolokia.org\n ---> Using cache\n ---> f5135182881d\nStep 3 : ENV JAVA_LIB_DIR /deployments/lib JAVA_MAIN_CLASS io.fabric8.quickstarts.java.simple.Main\n ---> Using cache\n ---> 796e49474284\nStep 4 : COPY maven /deployments/\n ---> 85d067d0e648\nRemoving intermediate container d2f72dfbf4e5\nSuccessfully built 85d067d0e648\nSECURITY WARNING: You are building a Docker image from Windows against a non-Windows Docker host. All files and directories added to build context will have '-rwxr-xr-x' permission\ns. It is recommended to double check and reset permissions for sensitive files and directories.\n\nc:>docker images\nREPOSITORY                                 TAG                 IMAGE ID            CREATED             VIRTUAL SIZE\nfoo                                        1                   85d067d0e648        5 minutes ago       436.2 MB\nfabric8/quickstart-java-simple-mainclass   2.2.74-SNAPSHOT     26805d3f2ecc        16 minutes ago      436.2 MB\n\nc:>docker run 85d067d0e648\n\nExecuting /deployments/bin/run ...\nLaunching application in folder: /deployments\nRunning  java  -javaagent:/opt/jolokia/jolokia.jar=config=/opt/jolokia/jolokia.properties,useSslClientAuthentication=true,extraClientCheck=true,protocol=https,caCert=/var/run/secre\nts/kubernetes.io/serviceaccount/ca.crt,clientPrincipal=cn=system:master-proxy -classpath .:/deployments/lib/quickstart-java-simple-mainclass-2.2.74-SNAPSHOT.jar:/deployments/lib/co\nmmons-lang3-3.4.jar io.fabric8.quickstarts.java.simple.Main\nCould not start Jolokia agent: java.lang.IllegalStateException: Cannot open keystore for https communication: java.io.FileNotFoundException: No such CA cert /var/run/secrets/kubern\netes.io/serviceaccount/ca.crt\nHello Fabric8! Here's your random string: 1JGTg\nHello Fabric8! Here's your random string: TWg8b\n```\n"},"comment":{"url":"https://api.github.com/repos/fabric8io/ipaas-quickstarts/issues/comments/276980741","html_url":"https://github.com/fabric8io/ipaas-quickstarts/issues/1047#issuecomment-276980741","issue_url":"https://api.github.com/repos/fabric8io/ipaas-quickstarts/issues/1047","id":276980741,"user":{"login":"glennodickson","id":3872513,"avatar_url":"https://avatars.githubusercontent.com/u/3872513?v=3","gravatar_id":"","url":"https://api.github.com/users/glennodickson","html_url":"https://github.com/glennodickson","followers_url":"https://api.github.com/users/glennodickson/followers","following_url":"https://api.github.com/users/glennodickson/following{/other_user}","gists_url":"https://api.github.com/users/glennodickson/gists{/gist_id}","starred_url":"https://api.github.com/users/glennodickson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/glennodickson/subscriptions","organizations_url":"https://api.github.com/users/glennodickson/orgs","repos_url":"https://api.github.com/users/glennodickson/repos","events_url":"https://api.github.com/users/glennodickson/events{/privacy}","received_events_url":"https://api.github.com/users/glennodickson/received_events","type":"User","site_admin":false},"created_at":"2017-02-02T15:00:44Z","updated_at":"2017-02-02T15:00:44Z","body":"Yes I can across the extact same error using fabric8/s2i-java \r\n\r\n```$ **docker images**\r\nREPOSITORY                                     TAG                 IMAGE ID            CREATED             SIZE\r\n172.30.22.18:5000/fabric8/camel-rest-client    1.0-SNAPSHOT        7b5a7a0ecf20        45 hours ago        447 MB\r\n172.30.22.18:5000/fabric8/camel-rest-service   1.0-SNAPSHOT        07617a08511e        45 hours ago        572 MB\r\nfabric8/s2i-java                               latest              3c42b2051105        7 days ago          430.2 MB\r\n172.30.22.18:5000/myproject/test               latest              7968321274dc        2 weeks ago         1.11 MB\r\nbusybox                                        latest              7968321274dc        2 weeks ago         1.11 MB\r\nopenshift/origin-deployer                      v1.3.1              53fdd4ea7616        3 months ago        487.1 MB\r\nopenshift/origin-docker-registry               v1.3.1              95648ff9553f        3 months ago        345.5 MB\r\nopenshift/origin-haproxy-router                v1.3.1              760f28b9be63        3 months ago        506.2 MB\r\nopenshift/origin                               v1.3.1              5db3d6aa750d        3 months ago        487.1 MB\r\nopenshift/origin-pod                           v1.3.1              ab24f01f140d        3 months ago        1.591 MB\r\nfabric8/tomcat-8.0                             latest              4094ef96fdfc        7 months ago        563.1 MB\r\n\r\n**$ docker run 7b5a7a0ecf20**\r\nStarting the application using the bundled /deployments/bin/run.sh ...\r\n/usr/local/s2i/run: line 18: /deployments/bin/run.sh: Permission denied\r\n/usr/local/s2i/run: line 18: exec: /deployments/bin/run.sh: cannot execute: Permission denied\r\n```\r\n\r\nAny solution to this yet?"}}
{"actor":{"display_login":"glennodickson"}}