16
16

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Vagrant+CoreOSでdocker-composeをプロビジョニングする

Posted at

GitHubからdocker-composeをダウンロードして/opt/binへ配置するシェルスクリプト。URLの1.2.0の部分を別のタグに変えればバージョンを変更できる。

Vagrantfile
...
  (1..$num_instances).each do |i|
...
      # docker-composeのインストール
      $get_compose = <<-'EOF'
        curl -L https://github.com/docker/compose/releases/download/1.2.0/docker-compose-`uname -s`-`uname -m` > ~/docker-compose
        sudo mkdir /opt
        sudo mkdir /opt/bin
        sudo mv ~/docker-compose /opt/bin/docker-compose
        sudo chown root:root /opt/bin/docker-compose
        sudo chmod +x /opt/bin/docker-compose
      EOF
      config.vm.provision :shell, :inline => $get_compose

参考:Docker Compose リファレンス
http://qiita.com/spesnova/items/6e8919b34e763f27c34e#coreos

16
16
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
16
16

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?