[Declarative Pipeline] Option to override --entry-point cat

137 views
Skip to first unread message

Dan Tran

unread,
Apr 12, 2017, 2:26:32 PM4/12/17
to Jenkins Users

Hi,

This is my docker agent declaration

  agent {

      docker {

          image "xxx/yyyy-build:1.0.0"

          args "--entrypoint /usr/bin/mongod"

      }

  }


However, docker pipeline ignores it. Here is the command from log


$ docker run -t -d -u 29307:1002 --entrypoint /usr/bin/mongod -i ..... --entrypoint cat xxx/yyy-build:1.0.0


Is there a workaround for this?  If not, is it reasonable to file a feature request?


Thanks


-D

Dan Tran

unread,
Apr 12, 2017, 5:12:27 PM4/12/17
to Jenkins Users
I meant to run /usr/bin/mongo    not the mongod


Dan Tran

unread,
Apr 12, 2017, 5:14:20 PM4/12/17
to Jenkins Users
Please disregard the below incorrect statement :-)

Dan Tran

unread,
Apr 13, 2017, 12:46:10 AM4/13/17
to Jenkins Users
I ended up to start mongod in background at my Jenkinsfile

-D
Reply all
Reply to author
Forward
0 new messages