skip to Main Content

Warning message "back-off restarting failed container" while adding environment variable in dockerfile? why?

We're using Gitlab for CI/CD. I'll include the script which we're using gitlab ci-cd file services: - docker:19.03.11-dind workflow: rules: - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH || $CI_COMMIT_BRANCH == "developer" || $CI_COMMIT_BRANCH == "stage"|| ($CI_COMMIT_BRANCH =~ (/^([A-Z]([0-9][-_])?)?SPRINT(([-_][A-Z][0-9])?)+/i)) when: always - if:…

VIEW QUESTION

Docker not running entrypoint .sh script

I'm trying to build a docker-compose to set up a postgres database with an initial script that creates some tables there. I have this docker-compose.yml version: '3.9' services: postgres: image: postgres:12.7 #restart: always environment: - POSTGRES_USER=postgres - POSTGRES_PASSWORD=postgres logging: options:…

VIEW QUESTION

How do I use Docker environment variable in ENTRYPOINT array? issue facing in Kubernetes ,not fetching the env variable,

We're using gitlab for CI/CD.I'll include the script which we're using services: - docker:19.03.11-dind workflow: rules: - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH || $CI_COMMIT_BRANCH == "developer" || $CI_COMMIT_BRANCH == "stage"|| ($CI_COMMIT_BRANCH =~ (/^([A-Z]([0-9][-_])?)?SPRINT(([-_][A-Z][0-9])?)+/i)) when: always - if: $CI_COMMIT_BRANCH != $CI_DEFAULT_BRANCH ||…

VIEW QUESTION
Back To Top
Search