DEV Community

Discussion on: CI/CD with Wercker

Collapse
 
szyszaf profile image
szyszaf

Hi Rafal,

I tried to follow your tutorial unfortunately the published docker image cannot be run as after the docker run command i have following error: Error response from daemon: OCI runtime create failed: container_linux.go:348: starting container process caused "exec: \"/pipeline/source/app/docker_entrypoint.sh\": permission denied": unknown. Do you know what is the reason of it?

Collapse
 
rafalpienkowski profile image
Rafal Pienkowski • Edited

Hi.

Did you add the executable right the docker_entrypoiny.sh in your wercker.yml file before you copied in into docker image?

Like in the example below:

build:
  steps: 
    (...)   
    - script:
        name: chmod
        cwd: src/StatlerWaldorfCorp.LocationReporter.Service
        code: |
          chmod +x ./docker_entrypoint.sh   
    (...)
packaging:
  steps:
    (...)
    - script:
        name: copy entrypoint
        cwd: src/StatlerWaldorfCorp.LocationReporter.Service
        code: |
          cp docker_entrypoint.sh $WERCKER_OUTPUT_DIR/app 
    (...)
Collapse
 
szyszaf profile image
szyszaf

Hi Rafal,

thanks for fast answer. I had little different wercker.yml however main issue was lack of chmod to grant permossions on this file.

Thread Thread
 
rafalpienkowski profile image
Rafal Pienkowski

No problem. I’m glad that you found the reason for your question:)