I’m a young student trying to do something a little bit complicated to me
I’ve got a repo on github with my Dockerfile in (with many config file too, as an Entrypoint.sh who initialize some things when i run docker Container with my docker image)
I would like to connect my github repo with Jenkins (something i think i successed) and i want to use Docker directly into Jenkins.
In fact We have :
My Github Repo with my Dockerfile manage by Jenkins2 (& pipelines) => Jenkins Build my Docker Image with my Dockerfile on Github
( docker build -t solene/installtv2 . )
At this step, I just want to use Jenkins to run Docker containers to test applications dev by my coworkers.
But each time I try to run Docker container this error appear :
docker run -e DATABASE_TYPE=mysql -e DATABASE_USER=tracimuser -e DATABASE_PASSWORD=tracimpassword -e DATABASE_HOST=192.168.1.73 -e DATABASE_NAME=tracimdb solene/installtv2 container_linux.go:262: starting container process caused "exec: \"/tracim/entrypoint.sh\": permission denied" docker: Error response from daemon: oci runtime error: container_linux.go:262: starting container process caused "exec: \"/tracim/entrypoint.sh\": permission denied". time="2017-08-17T11:21:12+02:00" level=error msg="error waiting for container: context canceled" script returned exit code 126
I don’t understand why When I try it localy it works
Do you have some advices ?
Is it better to user master/slave configuration in this case ? (thing i don’t know how to use, and i don’t really understand)
Thank’s for your help !