PostgreSQL Setup Using Docker
Upcoming SlideShare
Loading in...5
×
 

PostgreSQL Setup Using Docker

on

  • 4,309 views

Gilt Senior Software Engineer Rangarajan Radhakrishnan delivered this talk at the New York City PostgreSQL User Group meetup on December 11, 2013, hosted by Gilt.

Gilt Senior Software Engineer Rangarajan Radhakrishnan delivered this talk at the New York City PostgreSQL User Group meetup on December 11, 2013, hosted by Gilt.

Statistics

Views

Total Views
4,309
Views on SlideShare
2,348
Embed Views
1,961

Actions

Likes
3
Downloads
24
Comments
0

11 Embeds 1,961

http://tech.gilt.com 1911
http://www.tumblr.com 18
http://feedly.com 14
http://digg.com 7
http://news.google.com 3
http://newsblur.com 2
https://www.google.com 2
http://tech.gilt.com.uncensor.it 1
http://www.newsblur.com 1
http://cloud.feedly.com 1
http://plus.url.google.com 1
More...

Accessibility

Categories

Upload Details

Uploaded via as Adobe PDF

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

PostgreSQL Setup Using Docker PostgreSQL Setup Using Docker Presentation Transcript

  • PostgreSQL Setup Using Docker Rangarajan Radhakrishnan, ranga@gilt.com Infrastructure Engineering Dec 11, 2013
  • Introduction ● Docker is based on the Linux Container (LXC) ● containers can run on bare metal or VMs ● based on AuFS (union filesystem) ● inspired by efficiencies resulting from containerization in shipping
  • History ● Docker was created by Solomon Hykes (dotcloud) ● Released as open source in March 2013 ● support for Red Hat Linux variants announced in September 2013 View slide
  • Why Docker? ● creation of containers from any application ● containers are lightweight and easier to use (based on LXC) ● deployment is quick, and experimentation is easier ● vibrant and growing community View slide
  • Docker Components ● registry (one or more) to publish Docker images ○ Docker image is a template ○ Docker container is an instance ● hosts where Docker containers can run (kernel 3.8 and lxc-docker package) ● Dockerfile for each type of container
  • Docker Workflow ● create Dockerfile ● build Docker image (publish to registry) ● Run a container using image ● refine Dockerfile (if needed) ● rinse and repeat
  • Some Containers built by community ● ● ● ● ● ● ● PostgreSQL Mongo Riak Cassandra Continuous integration Drupal (content management) Memcached (SaaS)
  • Docker at Gilt ● Introduced to Docker by Gilt Principal Systems Engineer Jonathan Leibiusky ● Hackathon in Dublin (Aug 2013) to experiment with Docker ● Work now underway to adopt it for both non-production and production environments
  • Docker Container for PostgreSQL Demo(s) ● Setting up Postgres ● Some Docker commands
  • Advantages of PostgreSQL container ● Provides an identical snapshot of most recent dev database(s) for all developers ● Developers can avoid dealing with setup and maintenance of development (or staging) databases ● Allows for quick testing: both app and database changes for some types of tests
  • References ● Docker wiki [http://en.wikipedia.org/wiki/Docker_ (software)] ● Docker getting started [https://www.docker.io/gettingstarted/] ● Dockerfile tutorial [http://www.docker.io/learn/dockerfile/]
  • Questions? Gilt tech blog: tech.gilt.com Twitter: @gilttech Facebook: facebook.com/gilttech