anchor.diff: -FROM base:ubuntu-quantal
  -MAINTAINER Ullrich Schäfer <ullrich@seidbereit.de>
  +FROM cmfatih/dun
  +MAINTAINER chilijung<chilijung@gmail.com>
   
   # Exposes
   EXPOSE 5432
  
positive.code: RUN curl -o /usr/local/bin/dockyard https://raw.github.com/dynport/dockyard/master/dockyard
  RUN chmod 0755 /usr/local/bin/dockyard
  
  RUN dockyard install postgresql 9.2.4
  
  RUN useradd postgres
  
  ADD pg_hba.conf     /etc/postgresql/9.2/main/
  ADD pg_ident.conf   /etc/postgresql/9.2/main/
  ADD postgresql.conf /etc/postgresql/9.2/main/
  
negative.code: ADD start /start
  RUN chmod 0755 /start
  
  # restart service
  CMD ["/start"]
  RUN sudo service postgresql restart
  
  RUN psql -U postgres
  RUN createdb mydb -U postgres
  
  # install plv8
  RUN psql -U postgres -c "create extension plv8"
  
  # install pgrest
  RUN npm i
  RUN npm i -g pgrest
  
  
  