Giter Site home page Giter Site logo

docker-sample's Introduction

20170429 Dockerやってみよう会

おれに教えてくれる人を増やすため、とりあえず興味ありそうな人に始めてもらう会です。終わったらちゃんと自習して将来おれに教えてくださいよろしくお願いします。

事前準備

目的は動く環境をちゃんと用意しておくことと、事前にファイルをダウンロードして会場の環境に負荷をかけないことなので、わからないことがあれば聞いてください。

以下のステップで作業してください。

  1. Docker本体のインストール
  2. gitでファイルダウンロード
  3. はじめてのコンテナ起動

Docker本体のインストール

こちらから "Docker CE" とか "Community Edition" とか、なんとかそういうのをインストールしてください。

GUIです、大丈夫です。

gitでファイルダウンロード

$ git clone [email protected]:ginpei/20170429-docker.git

はじめてのコンテナ起動

all というディレクトリがあるので、コンソールでその中へ移動してください。その後Dockerを起動します。初回はめっちゃダウンロードして、めっちゃ時間かかります。めっちゃ漫画でも読んでててください。

$ cd 20170429-docker/all
$ docker-compose up

放置しとけばそのうち終わります。終わったら、もう一度同じコマンドで実行してみてください。多分こんな↓のがめっちゃカラフルな感じで出てくるはずです。

$ docker-compose up
Starting all_mysql_1
Starting all_db_1
Starting all_php_1
Starting all_rails_1
Starting all_nginx_1
Starting all_node_1
Attaching to all_nginx_1, all_db_1, all_node_1, all_rails_1, all_php_1, all_mysql_1
all_nginx_1 exited with code 0
all_php_1 exited with code 0
all_rails_1 exited with code 0
all_db_1 exited with code 0
all_node_1 exited with code 0
all_mysql_1 exited with code 0

全部 0 なら成功。胸を張ってお越しください。

docker-sample's People

Contributors

ginpei avatar

Watchers

James Cloos avatar Capotasto avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.