Improved Docker environment settings: implement PHP_UPLOAD_LIMIT
for Alpine images
#15115
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
PHP_UPLOAD_LIMIT settings as Docker variable is not implemented in official Alpine Docker image .
Alpine version uses docker/entrypoint_alpine.sh instead of docker/startup.sh, but the relevant PHP fix is not ported to Alpine entrypoint.
Type of change
Please delete options that are not relevant.
How Has This Been Tested?
Tested on a running instance, patching the
/entrypoint.sh
.snipe/snipe-it:latest-alpine
image.PHP_UPLOAD_LIMIT=100
as environment variable for snipeit service, in Docker compose file.docker/entrypoint_alpine.sh
from this PR and mount it as/entrypoint.sh
inside the container. Check permissions to be750
.docker compose down. && docker compose up -d && docker compose logs -f
: no new warnings appearTest Configuration:
Checklist: