ゆるふわキャンパー
  • Home
  • About Lorentzca
  • Blog Metrics
Sign in

boot2docker

A collection of 1 post
Create docker cluster by fig
docker

Create docker cluster by fig

figでdockerのクラスタを作成するチュートリアルをやった! Macでやった webとdbで別々のコンテナを使って、railsを動かす boot2dockerインストール・起動 インストール $ brew install boot2docker boot2docker立ち上げ $ boot2docker init $ boot2docker start $ $(boot2docker shellinit) figインストール $ brew install fig Dockerfile作成 * rubyのイメージを使う * 必要なパッケージ入れる * myappディレクトリ作成 * ワーキングdirectoryを設定 * ローカルのGemfileをコンテナに配置 * bundle installする * myappディレクトリをコンテナに配置 FROM ruby RUN apt-get update -qq && apt-get install -y build-essential libpq-dev RUN
Mar 1, 2015 2 min read
Page 1 of 1
ゆるふわキャンパー © 2025
Powered by Ghost