Code Monkey home page Code Monkey logo

Comments (9)

NguyenDinhKhoi avatar NguyenDinhKhoi commented on June 14, 2024 1

Okay, thank you for your support

from laravel-roadrunner-in-docker.

tarampampam avatar tarampampam commented on June 14, 2024

Hi @NguyenDinhKhoi!

What do you use as your environment? WSL, VirtualBox, or something else?

ps. I have no windows for the tests, Linux is my default OS for about seven years now...

from laravel-roadrunner-in-docker.

NguyenDinhKhoi avatar NguyenDinhKhoi commented on June 14, 2024

Hi @tarampampam !
Thank you for replying, I install docker on the windows with WSL, and run it

from laravel-roadrunner-in-docker.

tarampampam avatar tarampampam commented on June 14, 2024

Could you please provide more details? Your commands, full errors log, docker and docker-compose versions?

from laravel-roadrunner-in-docker.

NguyenDinhKhoi avatar NguyenDinhKhoi commented on June 14, 2024

Docker: Docker version 20.10.8, build 3967b7d
Docker-compose : docker-compose version 1.29.2, build 5becea4c

Errors log:

+ pecl install -o redis
ERROR: Service 'app' failed to build : The command '/bin/sh -c set -x     && apk add --no-cache         postgresql-libs         icu-libs     && apk add --no-cache --virtual .build-deps         postgresql-dev         autoconf         openssl         make         g++     && docker-php-ext-install -j$(nproc)         pdo_pgsql         sockets         opcache         pcntl         intl         1>/dev/null     && pecl install -o redis 1>/dev/null     && echo 'extension=redis.so' > ${PHP_INI_DIR}/conf.d/redis.ini     && wget -q "https://github.com/aptible/supercronic/releases/download/v0.1.12/supercronic-linux-amd64"          -O /usr/bin/supercronic     && chmod +x /usr/bin/supercronic     && mkdir /etc/supercronic     && echo '*/1 * * * * php /app/artisan schedule:run' > /etc/supercronic/laravel     && openssl req -x509 -nodes -days 1095 -newkey rsa:2048         -subj "/C=CA/ST=QC/O=Company, Inc./CN=mydomain.com"         -addext "subjectAltName=DNS:mydomain.com"         -keyout /etc/ssl/private/selfsigned.key         -out /etc/ssl/certs/selfsigned.crt     && chmod 644 /etc/ssl/private/selfsigned.key     && docker-php-source delete     && apk del .build-deps     && rm -R /tmp/pear     && echo -e "\nopcache.enable=1\nopcache.enable_cli=1\nopcache.jit_buffer_size=32M\nopcache.jit=1235\n" >>         ${PHP_INI_DIR}/conf.d/docker-php-ext-opcache.ini     && php -m     && adduser         --disabled-password         --shell "/sbin/nologin"         --home "/nonexistent"         --no-create-home         --uid "10001"         --gecos ""         "appuser"     && mkdir /app /var/run/rr     && chown -R appuser:appuser /app /var/run/rr     && chmod -R 777 /var/run/rr' returned a non-zero code: 1
make: *** [Makefile:17: install] Error 1**

I have install "make" command and run directly on windows

from laravel-roadrunner-in-docker.

tarampampam avatar tarampampam commented on June 14, 2024

It looks like a pecl issue... Can you replace the line:

&& pecl install -o redis 1>/dev/null \

With

    && pecl install -o redis \

And show me the logs (all lines after the + pecl install -o redis in your logs) again?

from laravel-roadrunner-in-docker.

NguyenDinhKhoi avatar NguyenDinhKhoi commented on June 14, 2024

I have created a virtual ubuntu machine and install 'pecl' and 'make' command then it works perfectly, thank for your support; In addition, can roadrunner run with multiversion php ?, i want to contain several projects with different php version in container ( php >=7.0 ). Is it possibe like virtual host in apache ?

from laravel-roadrunner-in-docker.

tarampampam avatar tarampampam commented on June 14, 2024

Usually, the roadrunner is used for a single project with a specific PHP version. If you want to run many applications - you can build and run them in separate docker containers (with a reverse proxy server like a Traefik, Nginx, or HAProxy in front of them, if you want, of course).

from laravel-roadrunner-in-docker.

tarampampam avatar tarampampam commented on June 14, 2024

This issue can be closed?

from laravel-roadrunner-in-docker.

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.