Skip to content

Cog Relay written in Go supporting Docker and native command bundles

License

Notifications You must be signed in to change notification settings

operable/go-relay

Folders and files

NameName
Last commit message
Last commit date
Mar 13, 2017
Apr 12, 2016
Jun 12, 2018
Feb 11, 2018
Mar 12, 2017
Mar 12, 2017
Mar 13, 2017
Apr 11, 2016
Apr 11, 2016
May 17, 2018
Feb 11, 2018
Mar 14, 2017
Apr 11, 2016
Apr 18, 2017
Apr 11, 2016
Feb 11, 2018
Jan 4, 2017
Nov 28, 2016
Dec 2, 2016
Apr 13, 2016

Repository files navigation

Relay

Build Status Coverage Status Ebert Docker Build Statu

Dependencies

  • Go v1.9+
  • 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. Install preqrequisites

go get -u github.com/kardianos/govendor
  1. Download deps and compile an executable

    make
    
  2. Set environment variables and run 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 _build/relay -file example_cog_relay.conf
    

Docker Images

Release images are available from the operable/relay repository on Docker Hub.

The latest code from the master branch is always available in the operable/relay-preview repository. The only tag in this repository is latest, and it "floats".

Building your own image can be done with make docker.