You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by GitBox <gi...@apache.org> on 2023/01/19 13:28:35 UTC
[GitHub] [apisix-docker] sbrouet opened a new issue, #410: Possible fix in entrypoint.sh - hardcoded path
sbrouet opened a new issue, #410:
URL: https://github.com/apache/apisix-docker/issues/410
Hello Team,
In entrypoint.sh for debian, at line 43 the path to configuration directory is hardcoded to `/usr/local/apisix`
See https://github.com/apache/apisix-docker/blob/master/debian/docker-entrypoint.sh#L43
```
exec /usr/local/openresty/bin/openresty -p /usr/local/apisix -g 'daemon off;'
```
But configuration directory can be configured with variable PREFIX which is declared at beginning of script and used for some commands, for initializing configuration:
```
PREFIX=${APISIX_PREFIX:=/usr/local/apisix}
[...]
cat > ${PREFIX}/conf/config.yaml << _EOC_
[...]
cat > ${PREFIX}/conf/apisix.yaml << _EOC_
```
-> It seems to me that variable should be used also in exec command show above, which would look like:
```
exec /usr/local/openresty/bin/openresty -p ${PREFIX} -g 'daemon off;'
```
If change is needed, must be done in all `docker-entrypoint.sh` files in Git repository.
Thank you,
Sébastien
--
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.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-docker] github-actions[bot] closed issue #410: Possible fix in entrypoint.sh - hardcoded path
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] closed issue #410: Possible fix in entrypoint.sh - hardcoded path
URL: https://github.com/apache/apisix-docker/issues/410
--
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
[GitHub] [apisix-docker] github-actions[bot] commented on issue #410: Possible fix in entrypoint.sh - hardcoded path
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #410:
URL: https://github.com/apache/apisix-docker/issues/410#issuecomment-1446040696
This issue has been marked as stale due to 30 days of inactivity. It will be closed in 2 weeks if no further activity occurs. If this issue is still relevant, please simply write any comment. Even if closed, you can still revive the issue at any time or discuss it on the dev@apisix.apache.org list. Thank you for your contributions.
--
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
[GitHub] [apisix-docker] tokers commented on issue #410: Possible fix in entrypoint.sh - hardcoded path
Posted by "tokers (via GitHub)" <gi...@apache.org>.
tokers commented on issue #410:
URL: https://github.com/apache/apisix-docker/issues/410#issuecomment-1406361110
@sbrouet Thanks! It's really useful!
--
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
[GitHub] [apisix-docker] github-actions[bot] commented on issue #410: Possible fix in entrypoint.sh - hardcoded path
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #410:
URL: https://github.com/apache/apisix-docker/issues/410#issuecomment-1467784092
This issue has been closed due to lack of activity. If you think that is incorrect, or the issue requires additional review, you can revive the issue at any time.
--
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