Giter VIP home page Giter VIP logo

Comments (5)

huanghantao avatar huanghantao commented on August 24, 2024 1

Thanks for your feedback, I will support the domain name in the next version.

from yasd.

huanghantao avatar huanghantao commented on August 24, 2024

You should use IP instead of host.docker.internal.

from yasd.

intellent avatar intellent commented on August 24, 2024

You should use IP instead of host.docker.internal.

Oh, okay. Afaik the internal IP of the Docker host is not static.

from yasd.

huanghantao avatar huanghantao commented on August 24, 2024

Hi, we can use debug init file to set the remote_host. #98 #97

from yasd.

volodymyr-hordiienko avatar volodymyr-hordiienko commented on August 24, 2024

@huanghantao @intellent which ip should I use inside a docker? host.docker.internal, 127.0.0.1, 0.0.0.0 not working for me

host.docker.internal shows me error - [yasd] recv command error, connection closed
but 127.0.0.1, 0.0.0.0 - [yasd] Connect IDE failed (Connection refused), please check that the IDE is in a listening state

could you help me please?

FROM hyperf/hyperf:8.0-alpine-v3.15-swoole

RUN set -ex \
    && apk add $PHPIZE_DEPS \
        openssl-dev \
        boost-dev \
    && ln -sf /usr/bin/phpize8 /usr/local/bin/phpize \
    && ln -sf /usr/bin/php-config8 /usr/local/bin/php-config

RUN git clone https://github.com/swoole/yasd.git \
    && cd yasd \
    && phpize --clean \
    && phpize \
    && ./configure \
    && make clean \
    && make \
    && make install

RUN echo "extension=yasd.so" > /etc/php8/conf.d/50_yasd.ini \
    && echo "yasd.debug_mode=remote" >> /etc/php8/conf.d/50_yasd.ini \
    && echo "yasd.remote_host=host.docker.internal" >> /etc/php8/conf.d/50_yasd.ini \
    && echo "yasd.remote_port=9000" >> /etc/php8/conf.d/50_yasd.ini

WORKDIR /data/project

COPY entrypoint.sh /scripts/entrypoint.sh
RUN chmod +x /scripts/entrypoint.sh

ENTRYPOINT ["/scripts/entrypoint.sh"]

Hyperf 2.2 scan_cacheable=true

from yasd.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.