-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #27 from utopia-php/backups
Backups
- Loading branch information
Showing
53 changed files
with
6,758 additions
and
2,515 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
composer.lock | ||
/vendor/ | ||
/.idea/ | ||
*.cache | ||
|
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 |
---|---|---|
@@ -1,24 +1,35 @@ | ||
FROM supabase/postgres:15.1.0.96 as supabase-db | ||
FROM supabase/postgres:15.1.0.96 AS supabase-db | ||
|
||
COPY tests/Migration/resources/supabase/1_globals.sql /docker-entrypoint-initdb.d/1_globals.sql | ||
COPY tests/Migration/resources/supabase/2_main.sql /docker-entrypoint-initdb.d/2_main.sql | ||
|
||
RUN rm -rf /docker-entrypoint-initdb.d/migrate.sh | ||
|
||
FROM postgres:alpine3.18 as nhost-db | ||
FROM postgres:alpine3.18 AS nhost-db | ||
|
||
COPY tests/Migration/resources/nhost/1_globals.sql /docker-entrypoint-initdb.d/1_globals.sql | ||
COPY tests/Migration/resources/nhost/2_main.sql /docker-entrypoint-initdb.d/2_main.sql | ||
|
||
FROM composer:2.0 as composer | ||
WORKDIR /usr/local/src/ | ||
COPY composer.json /usr/local/src/ | ||
FROM composer:2.0 AS composer | ||
|
||
COPY composer.json /app | ||
COPY composer.lock /app | ||
|
||
RUN composer install --ignore-platform-reqs | ||
|
||
FROM php:8.1.21-fpm-alpine3.18 as tests | ||
FROM php:8.3.10-cli-alpine3.20 AS tests | ||
|
||
# Postgres | ||
RUN set -ex \ | ||
&& apk --no-cache add postgresql-libs postgresql-dev \ | ||
&& docker-php-ext-install pdo pdo_pgsql \ | ||
&& apk del postgresql-dev | ||
|
||
COPY ./src /app/src | ||
COPY ./tests /app/src/tests | ||
COPY --from=composer /usr/local/src/vendor /app/vendor | ||
|
||
COPY --from=composer /app/vendor /app/vendor | ||
|
||
WORKDIR /app | ||
|
||
CMD tail -f /dev/null |
Oops, something went wrong.