Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Docker včera, dnes a zítra

Docker včera, dnes a zítra

Docker talk in Devel Conference 2015 in Prague. All in Czech.

Ladislav Prskavec

April 17, 2015
Tweet

More Decks by Ladislav Prskavec

Other Decks in Technology

Transcript

  1. Kdo jsem? Co dělám • sysadmin • developer • tech

    writer * SRE (Site Reliability Engineer)
  2. FROM debian:jessie
 MAINTAINER Apiary <[email protected]>
 
 ENV REFRESHED_AT 2015-04-03
 


    RUN apt-get update
 
 RUN apt-get install -y python-sphinx \
 graphviz \
 make \
 pandoc \
 texlive \
 texlive-latex-extra
 
 RUN mkdir /docs
 
 WORKDIR /docs
 VOLUME ['/docs']
 
 CMD make clean convert html latexpdf Sphinx documentation base image
  3. data: image: busybox volumes: - /tmp/data/mondo:/data/db - /tmp/data/redis:/data/ redis: image:

    apiaryio/base-dev-redisdb volumes_from: - data mongo: image: apiaryio/base-dev-mongodb volumes_from: - data apiary: hostname: apiary.dev build: . ports: - "8000:8000" - "9000:9000" links: - redis - mongo volumes: - .:/home/ubuntu/app command: grunt develop docker-compose.yml $ docker-compose up $ docker-compose build $ docker-compose scale
  4. Sinopia - private NPM registry https://github.com/rlidwka/sinopia $ docker pull keyvanfatehi/sinopia:latest

    $ docker run --restart=always \ -v /data:/data \ -v /data/s/start.sh:/opt/sinopia/start.sh \ -d -p 8080:8080 keyvanfatehi/sinopia:latest