justinkinney / go-relay

Cog Relay written in Go supporting Docker and simple command bundles

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Relay

Dependencies

Go v1.6+ Docker v1.10.3+

Getting up and running

  1. Clone go-relay to $GOPATH/src/github.com/operable/go-relay

    mkdir -p $GOPATH/src/github.com/operable
    git clone git@github.com:operable/go-relay.git $GOPATH/src/github.com/operable
    
  2. Download deps and compile an executable

    make
    
  3. Set environment variables and run cog-relay.

    You'll need to have a docker machine running and have environment variables set for the docker client to connect to it. If you haven't already, run the following. (See more details at https://docs.docker.com/machine/get-started)

    docker-machine create --driver virtualbox default
    docker-machine start default
    eval $(docker-machine env default)`
    

    Then start relay:

    RELAY_DOCKER_USE_ENV=true ./cog-relay -file example_cog_relay.conf
    

About

Cog Relay written in Go supporting Docker and simple command bundles

License:Other


Languages

Language:Go 96.0%Language:Makefile 2.7%Language:Shell 1.3%