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

composer up -d 报错 #12

Open
Tyraan opened this issue Jan 31, 2020 · 1 comment
Open

composer up -d 报错 #12

Tyraan opened this issue Jan 31, 2020 · 1 comment

Comments

@Tyraan
Copy link

Tyraan commented Jan 31, 2020

image

swoole-src-4.4.15/travis/debug/swoole_table_implements.php
swoole-src-4.4.15/travis/docker-compile.sh
swoole-src-4.4.15/travis/docker-compose.yml
swoole-src-4.4.15/travis/docker-route.sh
swoole-src-4.4.15/travis/pecl-install.sh
swoole-src-4.4.15/travis/route.sh
swoole-src-4.4.15/travis/run-tests.sh
swoole-src-4.4.15/travis/simple-compile.sh
mv: can't rename 'swoole': No such file or directory
ERROR: Service 'php' failed to build: The command '/bin/sh -c cd ~ && adduser -s /bin/bash git -D -H && wget https://github.com/phpredis/phpredis/archive/$PHPREDIS_VERSION.tar.gz && tar -zxvf $PHPREDIS_VERSION.tar.gz && mkdir -p /usr/src/php/ext && mv phpredis-$PHPREDIS_VERSION /usr/src/php/ext/redis && docker-php-ext-install redis && apk add libstdc++ libpng-dev && cd ~ && wget https://github.com/swoole/swoole-src/archive/v$SWOOLE_VERSION.tar.gz -O swoole.tar.gz && tar -zxvf swoole.tar.gz && mkdir -p /usr/src/php/ext && mv swoole /usr/src/php/ext/swoole && docker-php-ext-install swoole && docker-php-ext-install pdo_mysql mysqli pcntl gd && curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/bin/ --filename=composer' returned a non-zero code: 1

git clone 后 cd 进入文件夹
然后docker-compose up -d 在下载好swoole 后就会报错

看样子问题是处在 php/Dockerfile 第31行
···
&& mv swoole /usr/src/php/ext/swoole
···
这里

@foolstack-omg
Copy link

&& mv swoole-src-$SWOOLE_VERSION /usr/src/php/ext/swoole \

请留意这一行,改成我这个样子

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

2 participants