generated from opencodeco/ctl
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: PHP+Swoole versions, custom Dockerfile and Sonar
- Loading branch information
1 parent
9cda726
commit b73c370
Showing
3 changed files
with
33 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
.hfctl |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,9 @@ | ||
FROM hyperf/hyperf:8.2-alpine-v3.18-swoole-v5.1 | ||
RUN apk add php82-pecl-xdebug | ||
ADD php.ini /etc/php82/conf.d/99_hfctl.ini | ||
ARG PHP=8.2 | ||
ARG SWOOLE=5.1 | ||
FROM hyperf/hyperf:${PHP}-alpine-v3.18-swoole-v${SWOOLE} | ||
ARG PHP=8.2 | ||
ENV PHP=$PHP | ||
ADD php.ini /etc/php.ini | ||
RUN apk add php${PHP/./}-pecl-xdebug && \ | ||
apk add php${PHP/./}-pecl-pcov -Xhttp://dl-cdn.alpinelinux.org/alpine/edge/community && \ | ||
mv /etc/php.ini /etc/php${PHP/./}/conf.d/99_hfctl.ini |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters