Jenkins docker container overrides with "--entrypoint cat" ...

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Jenkins docker container overrides with "--entrypoint cat" ...

Eric Tan
Hi,

Is there a way to prevent Jenkin from overriding the entrypoint specified in the container image? 
As shown below in the console output, Jenkins adds "--entrypoint cat" which overrides my own entrypoint.

$ docker run -t -d -u 1000:1000 -w /var/jenkins_home/workspace/Test_Pipeline_master-K2ZSF4WTA --volumes-from db477ccfb5f8261f85de03 -e ******** -e ******** -e ******** --entrypoint cat test-app


docker inspect shows:

            "Entrypoint": [

                "cat"

            ],


The original image is 

            "Entrypoint": [

                "python",

                "test-app.py"

            ],

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/393894c9-add9-4bce-93e9-8edca9351c7b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Jenkins docker container overrides with "--entrypoint cat" ...

Eric Tan
https://issues.jenkins-ci.org/browse/JENKINS-39748

On Thursday, 28 September 2017 18:49:04 UTC+8, Eric Tan wrote:
Hi,

Is there a way to prevent Jenkin from overriding the entrypoint specified in the container image? 
As shown below in the console output, Jenkins adds "--entrypoint cat" which overrides my own entrypoint.

$ docker run -t -d -u 1000:1000 -w /var/jenkins_home/workspace/Test_Pipeline_master-K2ZSF4WTA --volumes-from db477ccfb5f8261f85de03 -e ******** -e ******** -e ******** --entrypoint cat test-app


docker inspect shows:

            "Entrypoint": [

                "cat"

            ],


The original image is 

            "Entrypoint": [

                "python",

                "test-app.py"

            ],

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/b62b27a1-98e6-4e36-92d4-366fc0b508d6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Jenkins docker container overrides with "--entrypoint cat" ...

nicolas de loof-2
docker.inside NEED some way to run a docker container in some "wait" mode, so the use of the `cat` command.
if your entrypoint script do follow docker recommendations it should detect use of such a command and enventually execute it, but real world experience demonstrated many people don't follow this recommendation, and as such the container failed to start as expected / stopped immediately. But the "fix" to override entrypoint is worst imho


2017-09-29 9:26 GMT+02:00 Eric Tan <[hidden email]>:
https://issues.jenkins-ci.org/browse/JENKINS-39748

On Thursday, 28 September 2017 18:49:04 UTC+8, Eric Tan wrote:
Hi,

Is there a way to prevent Jenkin from overriding the entrypoint specified in the container image? 
As shown below in the console output, Jenkins adds "--entrypoint cat" which overrides my own entrypoint.

$ docker run -t -d -u 1000:1000 -w /var/jenkins_home/workspace/Test_Pipeline_master-K2ZSF4WTA --volumes-from db477ccfb5f8261f85de03 -e ******** -e ******** -e ******** --entrypoint cat test-app


docker inspect shows:

            "Entrypoint": [

                "cat"

            ],


The original image is 

            "Entrypoint": [

                "python",

                "test-app.py"

            ],

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/b62b27a1-98e6-4e36-92d4-366fc0b508d6%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CANMVJzmtbzd22h4sdbuA5rtMqgX9JOrUwjibnnNvi-hqisycmQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.