You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by "milanes1988 (via GitHub)" <gi...@apache.org> on 2025/12/21 16:57:04 UTC
Re: [I] Example failed on mac [apisix-python-plugin-runner]
milanes1988 commented on issue #35:
URL: https://github.com/apache/apisix-python-plugin-runner/issues/35#issuecomment-3679091602
Hello,
I had the same issue when using a Mac, and I solved it with the following steps:
```bash
python3.11 -m venv .venv
source .venv/bin/activate
make setup
make dev
```
**compose.yaml**
```yaml
apisix:
image: apache/apisix:3.14.1-debian
restart: always
user: root
volumes:
- ./apisix_conf/config.yaml:/usr/local/apisix/conf/config.yaml:ro
- /tmp/runner.sock:/tmp/runner.sock
depends_on:
- etcd
ports:
- "9180:9180/tcp"
- "9080:9080/tcp"
- "9091:9091/tcp"
- "9443:9443/tcp"
- "9092:9092/tcp"
```
**config.yaml**
```yaml
ext-plugin:
path_for_test: /tmp/runner.sock
```
**P.S.** You need to enter the APISIX container and give execution permissions to the file; otherwise, it won’t work:
```bash
docker exec apisix chmod -x /tmp/runner.sock
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org