Skip to content

Commit

Permalink
add mysql docker compose file
Browse files Browse the repository at this point in the history
  • Loading branch information
sh-rp committed Sep 20, 2024
1 parent a77192f commit 420eaf1
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 3 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/test_sqlalchemy_destinations.yml
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,3 @@ jobs:
# always run full suite, also on branches
- run: poetry run pytest tests/load -x --ignore tests/load/sources
name: Run tests Linux
env:
DESTINATION__SQLALCHEMY_MYSQL__CREDENTIALS: mysql://root:[email protected]:3306/dlt_data # Use root cause we need to create databases
DESTINATION__SQLALCHEMY_SQLITE__CREDENTIALS: sqlite:///_storage/dl_data.sqlite
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -116,3 +116,4 @@ start-test-containers:
docker compose -f "tests/load/postgres/docker-compose.yml" up -d
docker compose -f "tests/load/weaviate/docker-compose.yml" up -d
docker compose -f "tests/load/filesystem_sftp/docker-compose.yml" up -d
docker compose -f "tests/load/sqlalchemy/docker-compose.yml" up -d
16 changes: 16 additions & 0 deletions tests/load/sqlalchemy/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Use root/example as user/password credentials
version: '3.1'

services:

db:
image: mysql:8
restart: always
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: dlt_data
MYSQL_USER: loader
MYSQL_PASSWORD: loader
ports:
- 3306:3306
# (this is just an example, not intended to be a production configuration)
1 change: 1 addition & 0 deletions tests/load/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -337,6 +337,7 @@ def destinations_configs(
supports_merge=False,
supports_dbt=False,
destination_name="sqlalchemy_mysql",
credentials="mysql://root:[email protected]:3306/dlt_data" # Use root cause we need to create databases,
),
DestinationTestConfiguration(
destination_type="sqlalchemy",
Expand Down

0 comments on commit 420eaf1

Please sign in to comment.