Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

failed to open stream: Cannot assign requested address #103

Open
lex64 opened this issue Oct 14, 2020 · 0 comments
Open

failed to open stream: Cannot assign requested address #103

lex64 opened this issue Oct 14, 2020 · 0 comments

Comments

@lex64
Copy link

lex64 commented Oct 14, 2020

Hi

I get an error while running phpunit

"message" => "file_get_contents(https://localhost/images/pdf-logos/zzz.png): failed to open stream: Cannot assign requested address"

I am using gitlab-ci-pipeline-php:7.3 image

And here is phpunit stage:

phpunit:
  stage: testing
  only:
    - merge_requests
  services:
    - name: mysql:8.0
      command: ["--default-authentication-plugin=mysql_native_password"]
    - name: redis:latest
  dependencies:
    - build-assets
    - composer
    - db-seeding
  script:
    - php -v
    - sudo cp /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini /usr/local/etc/php/conf.d/docker-php-ext-xdebug.bak
    - echo "" | sudo tee /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini
    - mysql --host="${DB_HOST}" --user="${MYSQL_USER}" --password="${MYSQL_PASSWORD}" "${MYSQL_DATABASE}" < db.sql
    - ./vendor/phpunit/phpunit/phpunit --version
    - php -d short_open_tag=off ./vendor/phpunit/phpunit/phpunit -v --colors=never --stderr --log-junit report.xml
    - sudo cp /usr/local/etc/php/conf.d/docker-php-ext-xdebug.bak /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini
  artifacts:
    paths:
      - ./storage/logs # for debugging
      - report.xml
    reports:
      junit: report.xml
    expire_in: 30 days
    when: on_failure

Anyone can help with this ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant