Thanks to visit codestin.com
Credit goes to github.com

Skip to content

synthomat/dockerfiles

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 

Repository files navigation

Docker Build Scripts

This repository will provide various Dockerfiles for building images as used in hosting environments.

Postgresql 9.1 Server

    
# start the database
PGSQL=$(docker run -p 5432 -d synthomat/pgsql /usr/bin/start_pgsql.sh YOURPASSWORD)

# verify it is running
docker ps $PGSQL

# grab the IP
PGSQL_IP=$(docker inspect $PGSQL | grep IPAddress | awk '{ print $2 }' | tr -d ',"')

# connect through the client
psql -h $PGSQL_IP -Uroot -d postgres

Connecting through a linked container

# start the database
docker run --name pgsql -d synthomat/pgsql /usr/bin/start_pgsql.sh YOURPASSWORD

# connect through a new container
docker run --link pgsql:db --rm -t -i postgres /bin/sh -c 'psql -h $DB_PORT_5432_TCP_ADDR -U root postgres'

About

Various build script for dotcloud/docker images

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages