chore: import upstream snapshot with attribution
CI / compile_and_lint (push) Failing after 0s
CI / docker_build (linux/amd64, -linux-amd64-duckdb, duckdb) (push) Failing after 0s
CI / docker_build (linux/arm64, -linux-arm64, minimal) (push) Failing after 2s
CI / docker_build (linux/arm64, -linux-arm64-duckdb, duckdb) (push) Failing after 1s
CI / docker_build (linux/amd64, minimal) (push) Failing after 1s
CI / test (, sqlite, sqlite::memory:) (push) Has been skipped
CI / test (mssql, mssql, mssql://root:Password123!@127.0.0.1/sqlpage) (push) Has been skipped
CI / test (mysql, mysql, mysql://root:Password123!@127.0.0.1/sqlpage) (push) Has been skipped
CI / test (oracle, oracle, Driver=Oracle 21 ODBC driver;Dbq=//127.0.0.1:1521/FREEPDB1;Uid=root;Pwd=Password123!) (push) Has been skipped
CI / test (postgres, odbc, Driver=PostgreSQL Unicode;Server=127.0.0.1;Port=5432;Database=sqlpage;UID=root;PWD=Password123!, true) (push) Has been skipped
CI / test (postgres, postgres, postgres://root:Password123!@127.0.0.1/sqlpage) (push) Has been skipped
CI / playwright (push) Has been skipped
CI / docker_build (linux/arm/v7, -linux-arm-v7, minimal) (push) Failing after 0s
CI / hurl_examples (push) Failing after 8s
deploy website / deploy_official_site (push) Failing after 1s
CI / hurl (${{ matrix.example }}) (push) Has been skipped
CI / docker_push (duckdb) (push) Has been cancelled
CI / docker_push (minimal) (push) Has been cancelled
CI / windows_test (push) Has been cancelled
CI / compile_and_lint (push) Failing after 0s
CI / docker_build (linux/amd64, -linux-amd64-duckdb, duckdb) (push) Failing after 0s
CI / docker_build (linux/arm64, -linux-arm64, minimal) (push) Failing after 2s
CI / docker_build (linux/arm64, -linux-arm64-duckdb, duckdb) (push) Failing after 1s
CI / docker_build (linux/amd64, minimal) (push) Failing after 1s
CI / test (, sqlite, sqlite::memory:) (push) Has been skipped
CI / test (mssql, mssql, mssql://root:Password123!@127.0.0.1/sqlpage) (push) Has been skipped
CI / test (mysql, mysql, mysql://root:Password123!@127.0.0.1/sqlpage) (push) Has been skipped
CI / test (oracle, oracle, Driver=Oracle 21 ODBC driver;Dbq=//127.0.0.1:1521/FREEPDB1;Uid=root;Pwd=Password123!) (push) Has been skipped
CI / test (postgres, odbc, Driver=PostgreSQL Unicode;Server=127.0.0.1;Port=5432;Database=sqlpage;UID=root;PWD=Password123!, true) (push) Has been skipped
CI / test (postgres, postgres, postgres://root:Password123!@127.0.0.1/sqlpage) (push) Has been skipped
CI / playwright (push) Has been skipped
CI / docker_build (linux/arm/v7, -linux-arm-v7, minimal) (push) Failing after 0s
CI / hurl_examples (push) Failing after 8s
deploy website / deploy_official_site (push) Failing after 1s
CI / hurl (${{ matrix.example }}) (push) Has been skipped
CI / docker_push (duckdb) (push) Has been cancelled
CI / docker_push (minimal) (push) Has been cancelled
CI / windows_test (push) Has been cancelled
This commit is contained in:
@@ -0,0 +1,73 @@
|
||||
# You can easily switch between different databases by changing the value of COMPOSE_PROFILES in the .env file.
|
||||
|
||||
# possible database connection strings:
|
||||
# DATABASE_URL='postgres://root:Password123!@localhost/sqlpage'
|
||||
# DATABASE_URL='mssql://root:Password123!@localhost/sqlpage'
|
||||
# DATABASE_URL='mysql://root:Password123!@localhost/sqlpage'
|
||||
# DATABASE_URL='Driver={/usr/lib64/psqlodbcw.so};Server=127.0.0.1;Port=5432;Database=sqlpage;UID=root;PWD=Password123!'
|
||||
# DATABASE_URL='Driver=Oracle 21 ODBC driver;Dbq=//127.0.0.1:1521/FREEPDB1;Uid=root;Pwd=Password123!'
|
||||
|
||||
# Run for instance:
|
||||
# docker compose up postgres
|
||||
# and in another terminal:
|
||||
# DATABASE_URL='db_url' cargo test
|
||||
services:
|
||||
web:
|
||||
build: { context: "." }
|
||||
ports:
|
||||
- "8080:8080"
|
||||
volumes:
|
||||
- .:/var/www
|
||||
depends_on:
|
||||
# mssql: { condition: service_healthy }
|
||||
[ "${COMPOSE_PROFILES-postgres}" ]
|
||||
environment:
|
||||
DATABASE_URL: ${COMPOSE_PROFILES-postgres}://root:Password123!@${COMPOSE_PROFILES:-postgres}/sqlpage${DATABASE_URL_PARAMS:-}
|
||||
RUST_LOG: sqlpage=trace
|
||||
postgres:
|
||||
profiles: ["postgres"]
|
||||
ports: ["5432:5432"]
|
||||
build: { context: "db-test-setup/postgres" }
|
||||
shm_size: 128mb
|
||||
environment:
|
||||
POSTGRES_USER: root
|
||||
POSTGRES_DB: sqlpage
|
||||
POSTGRES_PASSWORD: Password123!
|
||||
healthcheck:
|
||||
test: pg_isready -U root -d sqlpage
|
||||
|
||||
mysql:
|
||||
profiles: ["mysql"]
|
||||
ports: ["3306:3306"]
|
||||
image: mysql
|
||||
environment:
|
||||
MYSQL_ROOT_PASSWORD: Password123!
|
||||
MYSQL_DATABASE: sqlpage
|
||||
|
||||
mssql:
|
||||
profiles: ["mssql"]
|
||||
ports: ["1433:1433"]
|
||||
build: { context: "db-test-setup/mssql" }
|
||||
healthcheck:
|
||||
test: /opt/mssql-tools18/bin/sqlcmd -S localhost -U root -P "Password123!" -Q "SELECT 1" -b -o /dev/null -No
|
||||
interval: 10s
|
||||
timeout: 3s
|
||||
retries: 10
|
||||
start_period: 10s
|
||||
|
||||
mariadb:
|
||||
profiles: ["mariadb"]
|
||||
ports: ["3306:3306"]
|
||||
image: mariadb
|
||||
environment:
|
||||
MYSQL_ROOT_PASSWORD: Password123!
|
||||
MYSQL_DATABASE: sqlpage
|
||||
|
||||
oracle:
|
||||
profiles: ["oracle"]
|
||||
ports: ["1521:1521"]
|
||||
image: gvenzl/oracle-free:slim
|
||||
environment:
|
||||
ORACLE_PASSWORD: Password123!
|
||||
APP_USER: root
|
||||
APP_USER_PASSWORD: Password123!
|
||||
Reference in New Issue
Block a user