GithubHelp home page GithubHelp logo

metabase-qa's Introduction

Metabase QA

This repository contains:

  • Docker images with pre-populated data for integration testing

Database Configurations

As part of standard QA process, we test different types of database setups:

  • Single schema, single user access
  • Multi schema, single user access
  • Multi schema, multi user access

What this looks like in practice, is we have the following configurations:

  • Metabase Sample Database with a single metabase user
  • Metabase Sample Database + second schema with other random sample data
  • Custom sample data that may or may not be database dependent
    • e.g. Postgres JSON types

Using in Testing

Use Docker images of the form: metabase/qa-databases:{DATABASE}-{QA_TYPE}-{VERSION}

Currently the only supported databases are mongo, postgres and mysql and the only supported "QA type" is sample.

Supported database versions have their own Dockerfile in each directory.

We use a standard set of database names and users for our sample images:

  • Database name: sample
  • Username: metabase
  • Password: metasample123

Listed below are the examples for running each of the supported databases in Docker.

Mongo 4

docker run --rm -p 27017:27017 --name meta-mongo4-sample metabase/qa-databases:mongo-sample-4.0

PostgreSQL 12

docker run --rm -p 5432:5432 --name meta-postgres12-sample metabase/qa-databases:postgres-sample-12

MySQL 8

docker run --rm -p 3306:3306 --name meta-mysql8-sample metabase/qa-databases:mysql-sample-8

Supported Databases and Versions

These images are currently pushed to the public metabase/qa-databases repository:

  • metabase/qa-databases:mongo-sample-4.0
  • metabase/qa-databases:mysql-sample-5.7
  • metabase/qa-databases:mysql-sample-8
  • metabase/qa-databases:postgres-sample-11
  • metabase/qa-databases:postgres-sample-12

Building

Building is manual for now until we support more databases.

Sample Data

For Postgres, sample_data.sql.gz contains the Metabase Sample Database. For Mongo, we extract the sample data from Postgres into files that are then loaded with mongoimport.

Building/Updating Images

To build either the mongo or postgres images, change into the respective directory and execute the build.sh script.

cd dbs/postgres
./build.sh

WARNING: This currently also tries to push the image to Docker Hub, so if you don't have access that part will fail.

If the Sample Database has changed in Postgres, you can run ./update_data.sh in dbs/mongo to update the data files.

References

metabase-qa's People

Contributors

alxnddr avatar ariya avatar dacort avatar metamben avatar nemanjaglumac avatar paoliniluis avatar snoe avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

metabase-qa's Issues

More database images

We should have as many database images as we support (unfortunately there are many commercial ones or even SaaS ones). We could have (based on the current containerized environments):

Build images in Github Actions

In our current situation, we build images manually and push them from our devices. We should build this images in GHA and push them automatically to Dockerhub

Make images multiarch

Our current images are only available for x86, we should build and push multi-arch for when we make Metabase multi-arch as well

Weekly builds of the latest emails where available

We should only build the images of the first version we support of each database and after that, a weekly build of the :latest tag of every database we support. In that way we could automatically know if something breaks

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.