¾‍è»é«”開發角¦â€¨è«‡...

download ¾‍è»é«”開發角¦â€¨è«‡ Docker 焇‰ç”¨

of 49

  • date post

    12-Jul-2015
  • Category

    Internet

  • view

    957
  • download

    9

Embed Size (px)

Transcript of ¾‍è»é«”開發角¦â€¨è«‡...

  • Docker

  • about me JAVA: 6 years JS: 1 year blog linkedin github twitter

  • why need version control

  • source version control

  • database version control

  • Environment version control

  • Spec. API

  • ORM Model schema

  • DevOps

  • deploy production development

  • DockerBuild Ship Run Anything JAVAWrite once, run anywhere

  • why use docker?

  • find more services : https://registry.hub.docker.com/

    atomic

  • productiondevelopment

    developer A developer B

    OSX UBUNTU

    same environment

  • switch version

  • switch environment mode

  • docker hub

  • use Dockerfile

  • reusable

    ubuntu 14.04

    ruby and nodejs

    sails framework

    ubuntu 14.04

    ruby and nodejs

    loopback

  • extendable

    ubuntu 14.04

    ruby and nodejs

    sails frameworkFROM smlsunxie/rudy-node:latest

  • readable

    ubuntu 14.04

    ruby and nodejs

    sails frameworkFROM smlsunxie/rudy-node:latest

    RUN gem install compass RUN gem install bootstrap-sass

    RUN npm install -g grunt-cli RUN npm install -g bower RUN npm install -g coffee-script RUN npm install -g sails

  • Build Ship Run Anything

  • all about dockerpush

  • ...

  • docker fig

  • simple docker pull mysql:latest docker run \

    -p 3306:3306 \-v /data/mysql:/var/lib/mysql \-e MYSQL_ROOT_PASSWORD=root \mysql

    docker

    fig

  • easy

  • clear

  • dynamic fig env document fig run SERVICE_NAME env

  • convenience

    Mysql

    Redis

    2.8

    5.7

  • one command start all servicesmysql redis

    myapp

    MQ server

    fig up myapp

  • docker hackathon

    Mobius CMS

  • plugin base framework

  • base on TDD

  • https://github.com/smlsunxie/mobius-cms

  • CMS

    modules

    concept

    plugin A

    plugin B

  • CMS

    modules

    plugin indepand

    run plugin

  • dockerfile docker fig docker