Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,5 @@ Makefile
.vscode
tmp
*.sql

/compat/vendor/
4 changes: 4 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ RUN composer install \
--no-scripts \
--prefer-dist

COPY compat/composer.json compat/composer.lock /usr/local/legacy/
RUN composer install --working-dir=/usr/local/legacy --ignore-platform-reqs --no-dev --no-plugins --no-scripts --prefer-dist

FROM php:8.5.8-cli-alpine AS compile

ENV PHP_REDIS_VERSION="6.3.0" \
Expand Down Expand Up @@ -103,6 +106,7 @@ ENV DEBUG=$DEBUG
WORKDIR /usr/src/code

COPY --from=composer /usr/local/src/vendor /usr/src/code/vendor
COPY --from=composer /usr/local/legacy/vendor /opt/database-legacy/vendor
COPY --from=swoole /ext/swoole.so /ext/swoole.so
COPY --from=redis /ext/redis.so /ext/redis.so
COPY --from=pcov /ext/pcov.so /ext/pcov.so
Expand Down
11 changes: 11 additions & 0 deletions compat/composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"name": "utopia-php/database-bridge-compatibility",
"description": "Isolated stable cache-5/database-8 runtime for rolling migration tests",
"require": {
"utopia-php/database": "8.3.15",
"utopia-php/cache": "5.2.0"
},
"config": {
"allow-plugins": false
}
}
Loading
Loading