Skip to content

Commit b189eba

Browse files
committed
8.4-alpine-v3.22-swoole-sshd-xdebug
1 parent 2cb7e47 commit b189eba

File tree

2 files changed

+35
-0
lines changed

2 files changed

+35
-0
lines changed

.github/workflows/hyperf.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,26 @@ jobs:
6969
# Adds labels with git repository information to the built image
7070
add_git_labels: true
7171

72+
- name: 8.4-alpine-v3.22-swoole-sshd-xdebug
73+
uses: docker/build-push-action@v1.1.0
74+
with:
75+
# Username used to log in to a Docker registry. If not set then no login will occur
76+
username: adockero
77+
# Password or personal access token used to log in to a Docker registry. If not set then no login will occur
78+
password: ${{ secrets.PASSWORD }}
79+
# Docker repository to tag the image with
80+
repository: adockero/hyperf
81+
# Comma-delimited list of tags. These will be added to the registry/repository to form the image's tags
82+
tags: 8.4-alpine-v3.22-swoole-sshd-xdebug
83+
# Path to the Dockerfile (Default is '{path}/Dockerfile')
84+
path: ./
85+
dockerfile: hyperf/Dockerfile.xdebug
86+
# Always attempt to pull a newer version of the image
87+
always_pull: true
88+
# 构建参数
89+
build_args: BASE_FORM=adockero/hyperf:8.4-alpine-v3.22-swoole-sshd
90+
# Adds labels with git repository information to the built image
91+
add_git_labels: true
7292

7393
######################### 8.4 end ##########################################################
7494

hyperf/Dockerfile.xdebug

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
ARG BASE_FORM=hyperf/hyperf:7.4-alpine-v3.11
2+
# hyperf/hyperf:7.4-alpine-v3.11-dev
3+
4+
FROM ${BASE_FORM}
5+
6+
RUN apk add --no-cache php84-pecl-xdebug && \
7+
echo "[xdebug] \
8+
zend_extension=xdebug.so \
9+
xdebug.mode=develop,debug \
10+
xdebug.start_with_request=yes \
11+
xdebug.client_host=host.docker.internal \
12+
xdebug.client_port=9003 \
13+
xdebug.log=/tmp/xdebug.log" > /etc/php84/conf.d/50_xdebug.ini && \
14+
echo "开始验证xdebug是否安装成功" && \
15+
php -m | grep xdebug

0 commit comments

Comments
 (0)