Skip to content

composer up -d 报错 #12

Description

@Tyraan

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
···
这里

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions