├── Formula ├── docker.rb ├── docker-machine.rb ├── docker-compose.rb └── devtools.rb ├── LICENSE └── README.md /Formula/docker.rb: -------------------------------------------------------------------------------- 1 | class Docker < Formula 2 | desc "Pack, ship and run any application as a lightweight container" 3 | homepage "https://www.docker.com/" 4 | 5 | url "https://get.docker.com/builds/Darwin/x86_64/docker-1.9.1" 6 | version "1.9.1" 7 | sha256 "8750ccc2098ec94ef7db110e0016ab02cfa47a1a76f0deb3faa50335b5ec0df9" 8 | 9 | def install 10 | bin.install "docker-1.9.1" 11 | mv bin/"docker-1.9.1", bin/"docker" 12 | end 13 | 14 | test do 15 | system "#{bin}/docker", "--version" 16 | end 17 | end 18 | -------------------------------------------------------------------------------- /Formula/docker-machine.rb: -------------------------------------------------------------------------------- 1 | require "language/go" 2 | 3 | class DockerMachine < Formula 4 | desc "Create Docker hosts locally and on cloud providers" 5 | homepage "https://docs.docker.com/machine" 6 | 7 | url "https://github.com/docker/machine/releases/download/v0.5.4/docker-machine_darwin-amd64" 8 | version "0.5.4" 9 | sha256 "48be67863ed8b90bc4ca7a2214587bcc872f4510352dc85a1eb440dac3507389" 10 | 11 | def install 12 | bin.install "docker-machine_darwin-amd64" 13 | mv bin/"docker-machine_darwin-amd64", bin/"docker-machine" 14 | end 15 | 16 | test do 17 | system bin/"docker-machine", "ls" 18 | end 19 | end -------------------------------------------------------------------------------- /Formula/docker-compose.rb: -------------------------------------------------------------------------------- 1 | class DockerCompose < Formula 2 | desc "Isolated development environments using Docker" 3 | homepage "https://docs.docker.com/compose/" 4 | 5 | url "https://github.com/docker/compose/releases/download/1.5.2/docker-compose-Darwin-x86_64" 6 | version "1.5.2" 7 | sha256 "6815ae29762450bec438285b60157873be9714922cfb424614d39d1fa24c3500" 8 | 9 | def install 10 | bin.install "docker-compose-Darwin-x86_64" 11 | mv bin/"docker-compose-Darwin-x86_64", bin/"docker-compose" 12 | end 13 | 14 | test do 15 | assert_match /#{version}/, shell_output(bin/"docker-compose --version") 16 | end 17 | end 18 | -------------------------------------------------------------------------------- /Formula/devtools.rb: -------------------------------------------------------------------------------- 1 | class Devtools < Formula 2 | desc "Containerized platform environment for projects. See https://phase2.github.io/devtools for documentation. " 3 | homepage "https://phase2.github.com/devtools" 4 | url "https://s3.amazonaws.com/phase2.devtools/devtools-1.0.5.tar.gz" 5 | version "1.0.5" 6 | sha256 "87a7abbe926c3968c81fda875cf762aa462314dfda0e5c6c24ea445581031e81" 7 | 8 | depends_on "docker" 9 | depends_on "docker-machine" 10 | depends_on "docker-compose" 11 | depends_on "docker-machine-nfs" 12 | 13 | def install 14 | bin.install "devtools" 15 | bin.install "docker-machine-watch-rsync.sh" 16 | end 17 | 18 | test do 19 | system "#{bin}/devtools", "--version" 20 | end 21 | end 22 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2016 Phase2 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # homebrew-devtools 2 | 3 | Homebrew Tap (a.k.a. repository) for Phase2 DevTools 4 | 5 | ## How to use this Tap 6 | 7 | To get access to all this Tap has to offer, you need to, well, tap it. 8 | 9 | `brew tap phase2/devtools` 10 | 11 | Once tapped, you can use the formula here to install DevTools and the required 12 | Docker dependencies. We include the Docker formula in here because Homebrew 13 | does not contain a native facility to install older versions of a formula. It's 14 | latest or nothing. This Tap will contain formula for the versions of the 15 | Docker tools that are compatible with current version of DevTools. 16 | 17 | ## To install DevTools 18 | 19 | `brew install devtools` 20 | 21 | This will get you the `devtools` binary. However you will likely need to 22 | install the various Docker formula to get the proper versions of Docker 23 | tools for DevTools. You can do so like... 24 | 25 | ``` 26 | brew install phase2/devtools/docker 27 | brew install phase2/devtools/docker-machine 28 | brew install phase2/devtools/docker-compose 29 | ``` 30 | 31 | ## Upgrading DevTools 32 | 33 | If a new version of DevTools is released you need to do the following to upgrade. 34 | 35 | ``` 36 | brew update 37 | brew upgrade devtools 38 | ``` 39 | 40 | ## Troubleshooting 41 | 42 | To help troubleshoot your devtools installation run the following command: 43 | 44 | `devtools doctor` 45 | 46 | If you need to enable a specific/proper version of any of these formula you can 47 | use this command, for example, to explicitly use the 0.5.4 version of docker-machine. 48 | 49 | `brew switch docker-machine 0.5.4` 50 | --------------------------------------------------------------------------------