Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • byg01046

    (@byg01046)

    @alexanderhamren I’m not too used to either.

    As I wrote before, I’m setting up to work with the gitlab pipeline.

    image: docker:20.10.15
    
    services:
      - docker:20.10.15-dind
    
    variables:
      DOCKER_DRIVER: overlay2
      DOCKER_TLS_CERTDIR: ""
    
    stages:
      - test
    
    wordpress:
      stage: test
      tags:
        - tag-runner
      before_script:
        - apk update
        - apk add git
        - apk add curl
        - mkdir -p /usr/local/lib/docker/cli-plugins
        - curl -SL https://github.com/docker/compose/releases/download/v2.5.0/docker-compose-linux-x86_64 -o /usr/local/lib/docker/cli-plugins/docker-compose
        - chmod a+x /usr/local/lib/docker/cli-plugins/docker-compose
        - apk add --update nodejs npm
        - apk add nodejs-current npm
        - npm i @wordpress/env --save-dev
      script:
        - npm run wp-env destroy && npm run wp-env start
      only:
        - web
      artifacts:
        when: always
        name: "results"
        paths:
          - ./

    Here are the settings I wrote.

    I’m still having issues, wp-env can’t connect to the database and start.

    byg01046

    (@byg01046)

    @martinabaz Thank you for sharing.

    I fixed this error yesterday.

    It was because git was not installed in Docker.

    It’s a rookie mistake and embarrassing, but I’ll share it.

    byg01046

    (@byg01046)

    I searched for this issue and landed on this page.

    I want to run wp-env in my gitlab pipeline.

    I encountered the exact same error then.

    It would be great if you could share your solution.

Viewing 3 replies - 1 through 3 (of 3 total)