taredalen / lab-postgresql

Vagrant and ansible recipe to create a virtual machine on virtual box that hosts postgresql database

Home Page:http://esme-sudria-database.github.io/Vagrant-Postgresql

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ci

This repository contains scripts to create a virtual machine that exposes databases we use during classes:

  • bio_icare_drone
  • pizza_shop
  • sportsdb
  • transtats

pgadmin

General information

Requirement 1 : installation to perform on your computer

You will need those softwares on your computer :

On linux

sudo apt-get install git

On windows

On mac

brew install git

Step 1 : install the environment

  1. clone this repository :
git clone https://github.com/Esme-Sudria-Database/lab-postgresql.git
  1. go on directory
cd lab-postgresql
  1. mount the lab
docker-compose up

Step 2 : configure pgadmin to use postgresql database

  1. connect on http://localhost:8080 with your browser

pg_admin_login

Here is the logging information to use :

  1. declare your postgresql database in pgadmin

pg_admin_declare_server

2.1. write the display name in pgadmin

pg_admin_configure_server_1

2.2. configure the server connection

pg_admin_configure_server_2

  • Host Name : esme_postgresql
  • login : postgres
  • password: 1234

Magic behind the hostname : the Host Name is resolved through user-defined-network on docker.

Step 3: use the database that match our practical work

Architecture

[To complete]

Troubleshooting

[To complete]

Run continuous integration process

make tests

About

Vagrant and ansible recipe to create a virtual machine on virtual box that hosts postgresql database

http://esme-sudria-database.github.io/Vagrant-Postgresql


Languages

Language:Dockerfile 45.4%Language:Shell 27.7%Language:Makefile 26.9%