Your SlideShare is downloading. ×
0
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 (uni...
History
● Docker was created by Solomon Hykes
(dotcloud)
● Released as open source in March 2013
● support for Red Hat Lin...
Why Docker?
● creation of containers from any application
● containers are lightweight and easier to use
(based on LXC)
● ...
Docker Components
● registry (one or more) to publish Docker
images
○ Docker image is a template
○ Docker container is an ...
Docker Workflow
● create Dockerfile
● build Docker image (publish to registry)
● Run a container using image
● refine Dock...
Some Containers built by community
●
●
●
●
●
●
●

PostgreSQL
Mongo
Riak
Cassandra
Continuous integration
Drupal (content m...
Docker at Gilt
● Introduced to Docker by Gilt Principal
Systems Engineer Jonathan Leibiusky
● Hackathon in Dublin (Aug 201...
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
● De...
References
● Docker wiki [http://en.wikipedia.org/wiki/Docker_
(software)]

● Docker getting started
[https://www.docker.i...
Questions?
Gilt tech blog: tech.gilt.com
Twitter: @gilttech
Facebook: facebook.com/gilttech
Upcoming SlideShare
Loading in...5
×

PostgreSQL Setup Using Docker

5,132

Published on

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.

Published in: Technology
0 Comments
3 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total Views
5,132
On Slideshare
0
From Embeds
0
Number of Embeds
11
Actions
Shares
0
Downloads
36
Comments
0
Likes
3
Embeds 0
No embeds

No notes for slide

Transcript of "PostgreSQL Setup Using Docker"

  1. 1. PostgreSQL Setup Using Docker Rangarajan Radhakrishnan, ranga@gilt.com Infrastructure Engineering Dec 11, 2013
  2. 2. 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
  3. 3. 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
  4. 4. 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
  5. 5. 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
  6. 6. Docker Workflow ● create Dockerfile ● build Docker image (publish to registry) ● Run a container using image ● refine Dockerfile (if needed) ● rinse and repeat
  7. 7. Some Containers built by community ● ● ● ● ● ● ● PostgreSQL Mongo Riak Cassandra Continuous integration Drupal (content management) Memcached (SaaS)
  8. 8. 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
  9. 9. Docker Container for PostgreSQL Demo(s) ● Setting up Postgres ● Some Docker commands
  10. 10. 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
  11. 11. 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/]
  12. 12. Questions? Gilt tech blog: tech.gilt.com Twitter: @gilttech Facebook: facebook.com/gilttech
  1. A particular slide catching your eye?

    Clipping is a handy way to collect important slides you want to go back to later.

×