Coder Social home page Coder Social logo

7dbs's Introduction

Lab environment for "Seven Databases in Seven Weeks"

All databases run in separate containers but in the same network namespace as the main dev-container ("app") and can therefore be accessed via localhost.

PostgreSQL

Database runs in a container named "7dbs_devcontainer-postgres-1".

Environment variables, e.g. PGUSER and PGPASSWORD, prepared to match defaults for the database server.

How to access

psql

Or after the 7dbs database has been created (createdb 7dbs):

psql 7dbs

Extensions from contrib-packages

The contrib content is available in the postgres container image but the extensions must be loaded into the database using CREATE EXTENSION. So, after connecting to the 7dbs database, load what you need according to the following example.

CREATE EXTENSION fuzzystrmatch;

HBase

Running in "standalone mode" in a container named "7dbs_devcontainer-hbase-1"

How to access

The "shell" can be started via docker exec into container. Convenience aliases are defined to make this easier:

Interactive mode:

hbase-shell

General purpose bash inside the container, e.g run a script file in non-interactive hbase shell:

hbase-bash "cat /workspace/lab/hbase/script.rb | hbase shell -n"

Or just start an interactive bash shell inside the hbase container:

hbase-bash bash

(Note that the repo root's lab/ directory is mounted at /workspace/lab/ inside the container)

MongoDB

Database runs in a container named "7dbs_devcontainer-mongodb-1".

How to access

mongosh

Or for a specific database:

mongosh book

The MongoDB for VS Code extension is also available for database interaction.

7dbs's People

Watchers

 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.