{"id":18646756,"url":"https://github.com/metabase/metabase-qa","last_synced_at":"2025-10-04T07:29:31.820Z","repository":{"id":38335861,"uuid":"279315388","full_name":"metabase/metabase-qa","owner":"metabase","description":"Make Metabase More Awesome","archived":false,"fork":false,"pushed_at":"2024-07-24T15:59:02.000Z","size":9368,"stargazers_count":15,"open_issues_count":2,"forks_count":4,"subscribers_count":44,"default_branch":"master","last_synced_at":"2025-04-11T18:12:17.451Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/metabase.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-07-13T13:48:44.000Z","updated_at":"2025-03-31T19:38:21.000Z","dependencies_parsed_at":"2024-07-24T18:17:27.743Z","dependency_job_id":"b8430bf1-9ca8-4245-b18f-cf5219c75fe2","html_url":"https://github.com/metabase/metabase-qa","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/metabase/metabase-qa","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/metabase%2Fmetabase-qa","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/metabase%2Fmetabase-qa/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/metabase%2Fmetabase-qa/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/metabase%2Fmetabase-qa/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/metabase","download_url":"https://codeload.github.com/metabase/metabase-qa/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/metabase%2Fmetabase-qa/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278283470,"owners_count":25961309,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-04T02:00:05.491Z","response_time":63,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-07T06:22:28.149Z","updated_at":"2025-10-04T07:29:31.757Z","avatar_url":"https://github.com/metabase.png","language":"Shell","funding_links":[],"categories":["Metabase Examples"],"sub_categories":["Official Examples"],"readme":"# Metabase QA\n\nThis repository contains:\n\n- Docker images with pre-populated data for integration testing\n\n## Database Configurations\n\nAs part of standard QA process, we test different types of database setups:\n\n- Single schema, single user access\n- Multi schema, single user access\n- Multi schema, multi user access\n\nWhat this looks like in practice, is we have the following configurations:\n\n- Metabase Sample Database with a single `metabase` user\n- Metabase Sample Database + second schema with other random sample data\n- Custom sample data that may or may not be database dependent\n    - e.g. Postgres JSON types\n\n## Using in Testing\n\nUse Docker images of the form: `metabase/qa-databases:{DATABASE}-{QA_TYPE}-{VERSION}`\n\nCurrently the only supported databases are `mongo`, `postgres` and `mysql` and the only supported \"QA type\" is `sample`.\n\nSupported database versions have their own Dockerfile in each directory.\n\nWe use a standard set of database names and users for our sample images:\n- Database name: `sample`\n- Username: `metabase`\n- Password: `metasample123`\n\nListed below are the examples for running each of the supported databases in Docker.\n\n#### Mongo 4\n```shell\ndocker run --rm -p 27017:27017 --name meta-mongo4-sample metabase/qa-databases:mongo-sample-4.0\n```\n\n#### PostgreSQL 12\n```shell\ndocker run --rm -p 5432:5432 --name meta-postgres12-sample metabase/qa-databases:postgres-sample-12\n```\n\n#### MySQL 8\n```shell\ndocker run --rm -p 3306:3306 --name meta-mysql8-sample metabase/qa-databases:mysql-sample-8\n```\n\n### Supported Databases and Versions\n\nThese images are currently pushed to the public [metabase/qa-databases](https://hub.docker.com/r/metabase/qa-databases/tags) repository:\n\n- `metabase/qa-databases:mongo-sample-4.0`\n- `metabase/qa-databases:mysql-sample-5.7`\n- `metabase/qa-databases:mysql-sample-8`\n- `metabase/qa-databases:postgres-sample-11`\n- `metabase/qa-databases:postgres-sample-12`\n\n## Building\n\nBuilding is manual for now until we support more databases.\n\n### Sample Data\n\nFor Postgres, `sample_data.sql.gz` contains the Metabase Sample Database.\nFor Mongo, we extract the sample data from Postgres into files that are then loaded with `mongoimport`.\n\n### Building/Updating Images\n\nTo build either the `mongo` or `postgres` images, change into the respective directory and execute the `build.sh` script.\n\n```shell\ncd dbs/postgres\n./build.sh\n```\n\n**WARNING**: This currently also tries to push the image to Docker Hub, so if you don't have access that part will fail. \n\nIf the Sample Database has changed in Postgres, you can run `./update_data.sh` in `dbs/mongo` to update the data files.\n\n## References\n\n- [Saving a Postgres Database in a Docker Image](https://nickjanetakis.com/blog/docker-tip-79-saving-a-postgres-database-in-a-docker-image)\n- [eksctl](https://github.com/weaveworks/eksctl/blob/master/Makefile.docker) has a good example of committing an intermediate image.\n- A [couple](https://github.com/mvanholsteijn/docker-makefile/blob/master/Makefile) [other](https://github.com/philpep/dockerfiles/blob/master/Makefile) good Docker/Makefile tooling examples\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmetabase%2Fmetabase-qa","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmetabase%2Fmetabase-qa","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmetabase%2Fmetabase-qa/lists"}