我正在尝试在bitbucket上设置管道,当作曲家运行时我收到错误
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Installation request for craftcms/cms 3.1.24 -> satisfiable by craftcms/cms[3.1.24].
- craftcms/cms 3.1.24 requires ext-zip * -> the requested PHP extension zip is missing from your system.
我不确定我需要添加到我的bitbucket-pipelines.yml
文件中。
这是我目前的档案:
image: php:7.2
pipelines:
branches:
master:
- step:
script:
- apt-get update && apt-get install -y unzip git rsync zip
- curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
- composer install
- php deploy.php
这家伙似乎有类似的问题,但我不确定他是如何解决的。这很模糊,他似乎也有更多关于mcrypt:Docker: bitbucket pipelines ext-zip *的输出
如果你很好奇,我从fortrabbit.com上的建议提交中得到了我的配置:https://gist.github.com/ukautz/4f3219c3eb5d97fbd018027dca4b8808
它正在运行的php文件位于上面的链接上,但它尚未到达,所以它与我的问题无关
我不完全确定我要安装什么,或者我只是没有看到记录的实际问题(例如,如果有更多粒度的日志,我没有看到实际的问题)
我通过添加以下内容得到了通过:
在zlib1g-dev
国旗后的-y
然后是这两行
- docker-php-ext-install zip
- docker-php-ext-enable zip
在composer install
之前
这将每次运行安装。如果有人知道更好的方法,请告诉我