{"action":"created","issue":{"url":"https://api.github.com/repos/jenkinsci/mesos-plugin/issues/257","repository_url":"https://api.github.com/repos/jenkinsci/mesos-plugin","labels_url":"https://api.github.com/repos/jenkinsci/mesos-plugin/issues/257/labels{/name}","comments_url":"https://api.github.com/repos/jenkinsci/mesos-plugin/issues/257/comments","events_url":"https://api.github.com/repos/jenkinsci/mesos-plugin/issues/257/events","html_url":"https://github.com/jenkinsci/mesos-plugin/issues/257","id":173344328,"number":257,"title":"Entrypoint in Dockerfile will be automatically overridden by \"/bin/sh -c\"","user":{"login":"xiajidexue","id":6821543,"avatar_url":"https://avatars.githubusercontent.com/u/6821543?v=3","gravatar_id":"","url":"https://api.github.com/users/xiajidexue","html_url":"https://github.com/xiajidexue","followers_url":"https://api.github.com/users/xiajidexue/followers","following_url":"https://api.github.com/users/xiajidexue/following{/other_user}","gists_url":"https://api.github.com/users/xiajidexue/gists{/gist_id}","starred_url":"https://api.github.com/users/xiajidexue/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xiajidexue/subscriptions","organizations_url":"https://api.github.com/users/xiajidexue/orgs","repos_url":"https://api.github.com/users/xiajidexue/repos","events_url":"https://api.github.com/users/xiajidexue/events{/privacy}","received_events_url":"https://api.github.com/users/xiajidexue/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-08-26T00:51:15Z","updated_at":"2016-10-17T02:50:40Z","closed_at":null,"body":"Descriptions:\r\n_Entrypoint in Dockerfile will be automatically be overridden  by Java slave process, but CMD in Dockerfile will not be overridden.  I think this problem will block the users who want to adopt this plugin as no way to identify which executable should be run when a container is started from our images, and I tried to use **Use custom docker command shell** in Mesos Cloud section to work around it, but still fails, a defect has been tracking it for also year: https://github.com/jenkinsci/mesos-plugin/issues/157_\r\n\r\n**Entrypoint**: /bin/bash --login -- /entrypoint.sh\r\n**Java Slave process**: /bin/sh -c 'java -DHUDSON_HOME=jenkins -server -Xmx640m -Xms16m -XX:+UseConcMarkSweepGC -Djava.net.preferIPv4Stack=true -jar ${MESOS_SANDBOX-.}/slave.jar -noReconnect -secret ... mesos-jenkins-do/slave-agent.jnlp\r\n\r\nExpected (Shown by **COMMAND** via **docker ps** command):\r\n\"/bin/bash --login -- /entrypoint.sh /bin/sh -c 'java -DHUDSON_HOME=jenkins -server -Xmx640m -Xms16m -XX:+UseConcMarkSweepGC -Djava.net.preferIPv4Stack=true -jar ${MESOS_SANDBOX-.}/slave.jar -noReconnect -secret 4026fda6995da3083527505a05d92cadcb5e00eb0b477f0ff357097fadd59ae7 -jnlpUrl http://jenkins.xxx.net/computer/mesos-jenkins-09a5fb6724b44ed4bf10339c6aae4f1d-mesos-jenkins-do/slave-agent.jnlp'\"\r\nBut in fact (Shown by **COMMAND** via **docker ps** command, the command \"/bin/bash --login -- /entrypoint.sh\" in Entrypoint override):\r\n\"/bin/sh -c 'java -DHUDSON_HOME=jenkins -server -Xmx640m -Xms16m -XX:+UseConcMarkSweepGC -Djava.net.preferIPv4Stack=true -jar ${MESOS_SANDBOX-.}/slave.jar -noReconnect -secret 4026fda6995da3083527505a05d92cadcb5e00eb0b477f0ff357097fadd59ae7 -jnlpUrl http://jenkins.xxx.net/computer/mesos-jenkins-09a5fb6724b44ed4bf10339c6aae4f1d-mesos-jenkins-do/slave-agent.jnlp'\"\r\n"},"comment":{"url":"https://api.github.com/repos/jenkinsci/mesos-plugin/issues/comments/254100942","html_url":"https://github.com/jenkinsci/mesos-plugin/issues/257#issuecomment-254100942","issue_url":"https://api.github.com/repos/jenkinsci/mesos-plugin/issues/257","id":254100942,"user":{"login":"fsfshijm","id":6812041,"avatar_url":"https://avatars.githubusercontent.com/u/6812041?v=3","gravatar_id":"","url":"https://api.github.com/users/fsfshijm","html_url":"https://github.com/fsfshijm","followers_url":"https://api.github.com/users/fsfshijm/followers","following_url":"https://api.github.com/users/fsfshijm/following{/other_user}","gists_url":"https://api.github.com/users/fsfshijm/gists{/gist_id}","starred_url":"https://api.github.com/users/fsfshijm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fsfshijm/subscriptions","organizations_url":"https://api.github.com/users/fsfshijm/orgs","repos_url":"https://api.github.com/users/fsfshijm/repos","events_url":"https://api.github.com/users/fsfshijm/events{/privacy}","received_events_url":"https://api.github.com/users/fsfshijm/received_events","type":"User","site_admin":false},"created_at":"2016-10-17T02:50:40Z","updated_at":"2016-10-17T02:50:40Z","body":"have the same problem,  any update?"}}
{"actor":{"display_login":"fsfshijm"}}