thecodeteam / roadmap

The {code} Team Roadmap
3 stars 1 forks source link

Discovery in Docker Machine codebase #1

Closed clintkitson closed 9 years ago

kacole2 commented 9 years ago

well that was pretty easy...

tomorrow will be looking to build out an extension directory, interface, etc. Then will need to build out installations based upon redhat vs debian vs blah

package provision

import (
    "fmt"
)

func configureRexray(p Provisioner) error {

    fmt.Println("performing: wget of rexray")
    p.SSHCommand("sudo wget -nv https://github.com/emccode/rexraycli/releases/download/latest/rexray-Linux-x86_64 -O /bin/rexray")
    fmt.Println("performing: sudo chmod +x /bin/rexray")
    p.SSHCommand("sudo chmod +x /bin/rexray")
    fmt.Println("perforexming: echo of keys")
    p.SSHCommand("sudo -E bash -c 'echo AWS_ACCESS_KEY=rverver >> /etc/environment'")
    p.SSHCommand("sudo -E bash -c 'echo AWS_SECRET_KEY=ververv >> /etc/environment'")
    fmt.Println("performing: wget of conf file")
    p.SSHCommand("sudo wget -nv https://raw.githubusercontent.com/jonasrosland/vagrant-mesos/mesos-rexray/multinodes/scripts/conf_templates/rexray.conf -O /etc/init/rexray.conf")
    fmt.Println("performing: starting rexray service")
    p.SSHCommand("sudo service rexray start")

    return nil
}
kacole2 commented 9 years ago

i feel like i have a good understanding of the code where an interface is interacting with the driver.