-
Notifications
You must be signed in to change notification settings - Fork 34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: utopia compression #146
Open
loks0n
wants to merge
21
commits into
master
Choose a base branch
from
feat-utopia-compression
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 6 commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
4b844e8
feat: utopia compression
loks0n f0cd76f
chore: lint errors
loks0n 5e119bf
feat: use utopia compression
loks0n 45e077c
chore: fmt
loks0n 36867d3
feat: swoole compression tests
loks0n 33553f3
chore: rename dockerfile
loks0n 98e75b4
feat: add min size setting
loks0n 8c71521
feat: add const default
loks0n 69232cd
chore: move constant to class
loks0n a6b915a
chore: composer update
loks0n 7da4fb3
chore: bump utopia/compression
loks0n a5ae37b
fix: typo
loks0n dedaf7a
fix: spacing
loks0n fefa023
fix: composer
loks0n 83613ac
feat: supported compression
loks0n 6045387
chore: define compressionSupported
loks0n d91c598
fix: send headers first
loks0n 74f0627
chore: composer update
loks0n 0c26c3e
chore: composer update
loks0n 9e2b284
feat: add header
loks0n d999718
chore: update to true
loks0n File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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
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,48 @@ | ||
FROM composer:2.0 AS step0 | ||
|
||
ARG TESTING=true | ||
ARG DEBUG=false | ||
|
||
ENV TESTING=$TESTING | ||
ENV DEBUG=$DEBUG | ||
|
||
WORKDIR /usr/local/src/ | ||
|
||
COPY composer.* /usr/local/src/ | ||
|
||
RUN composer install --ignore-platform-reqs --optimize-autoloader \ | ||
--no-plugins --no-scripts --prefer-dist \ | ||
`if [ "$TESTING" != "true" ]; then echo "--no-dev"; fi` | ||
|
||
FROM appwrite/base:0.9.0 as final | ||
|
||
ARG TESTING=true | ||
ARG DEBUG=false | ||
|
||
ENV TESTING=$TESTING | ||
ENV DEBUG=$DEBUG | ||
|
||
LABEL maintainer="team@appwrite.io" | ||
|
||
RUN \ | ||
if [ "$DEBUG" == "true" ]; then \ | ||
apk add boost boost-dev; \ | ||
fi | ||
|
||
WORKDIR /usr/src/code | ||
|
||
COPY ./dev /usr/src/code/dev | ||
COPY ./src /usr/src/code/src | ||
COPY ./tests /usr/src/code/tests | ||
COPY ./phpunit.xml /usr/src/code/phpunit.xml | ||
COPY ./phpbench.json /usr/src/code/phpbench.json | ||
COPY --from=step0 /usr/local/src/vendor /usr/src/code/vendor | ||
|
||
# Enable Extensions | ||
RUN if [ "$DEBUG" == "true" ]; then cp /usr/src/code/dev/xdebug.ini /usr/local/etc/php/conf.d/xdebug.ini; fi | ||
RUN if [ "$DEBUG" = "false" ]; then rm -rf /usr/src/code/dev; fi | ||
RUN if [ "$DEBUG" = "false" ]; then rm -f /usr/local/lib/php/extensions/no-debug-non-zts-20220829/xdebug.so; fi | ||
|
||
EXPOSE 80 | ||
|
||
CMD ["php", "tests/e2e/server-swoole-compression.php"] |
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
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This can be removed now that the package was published.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done