Giter Club home page Giter Club logo

zbd-schema-usa's Introduction

Source database for Data Warehouse

Streaming Services - Schema USA

Creating fixtures

  1. Build docker images and start mysql and pma:

    docker login
    docker-compose build --pull
    docker-compose up -d mysql pma
  2. Initialize and migrate database:

    docker-compose run console doctrine:database:create
    docker-compose run console doctrine:migrations:migrate
  3. Run fixtures

    docker-compose run console doctrine:fixtures:load -n
  4. Go to http://localhost:8080

Exporting data to staging database of Date Warehouse

  1. Login to Docker Hub and get access to Oracle EE from Docker Store: https://store.docker.com/images/oracle-database-enterprise-edition

  2. Build docker images and start oracle database:

    docker login
    docker-compose build --pull
    docker-compose up -d oradb
  3. Use docker ps to check whether database is healthy

  4. Make sure staging user exists and its schema

    docker-compose exec oradb bash
    sqlplus staging/staging@ORCLCDB
    
    # you should be connected to database now
  5. Make sure you have compatible schema in project and database

    docker-compose run console doctrine:schema:validate --em=warehouse_stage
  6. Run migrations script

    docker-compose run console app:staging:sync
    # and then you can in parallel
    docker-compose run console app:staging:likes
    docker-compose run console app:staging:streams
    docker-compose run console app:staging:transactions

Fast usage

docker-compose run console doctrine:database:drop --force
docker-compose run console doctrine:database:create
docker-compose run console doctrine:migrations:migrate -n
docker-compose run console doctrine:fixtures:load -n
docker-compose run console app:staging:sync
docker-compose run console app:staging:likes
docker-compose run console app:staging:streams
docker-compose run console app:staging:transactions

zbd-schema-usa's People

Contributors

k911 avatar

Watchers

James Cloos avatar  avatar Karol Wójcik avatar

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.