Permalink
Browse files

Pulling redis images on new hosts

  • Loading branch information...
MohamedBassem committed Jul 8, 2015
1 parent ab4817c commit dace0ac176547cd62a87e94a469955579e61cd2a
Showing with 2 additions and 11 deletions.
  1. +1 −1 TODO.md
  2. +1 −10 hosts.go
View
@@ -1,3 +1,3 @@
#TODO
- ~~Open Docker port on hosts for the master.~~
- Pull redis image on new hosts.
- ~~Pull redis image on new hosts.~~
View
@@ -57,16 +57,7 @@ func (ctx *context) NewHost() error {
dropletName := "getaredis-" + generateRandomString(10)
userData := `#cloud-config
runcmd:
- apt-get install -y wget
- wget https://storage.googleapis.com/golang/go1.4.2.linux-amd64.tar.gz
- tar -C /usr/local -xzf go1.4.2.linux-amd64.tar.gz
- echo 'export PATH=$PATH:/usr/local/go/bin' >> /root/.bashrc
- mkdir /root/go
- export HOME=/root
- echo 'export GOPATH=$HOME/go' >> /root/.bashrc
- echo 'export PATH=$PATH:$GOPATH/bin' >> /root/.bashrc
- export GOPATH=/root/go
- /usr/local/go/bin/go get github.com/MohamedBassem/getaredis/...
- docker pull redis
- apt-get install -y supervisor
write_files:
- path: /etc/supervisor/conf.d/go_jobs.conf

0 comments on commit dace0ac

Please sign in to comment.