Git Product home page Git Product logo

garden's Introduction

                                                 ,-.
                                                  ) \
                                              .--'   |
                                             /       /
                                             |_______|
                                            (  O   O  )
                                             {'-(_)-'}
                                           .-{   ^   }-.
                                          /   '.___.'   \
                                         /  |    o    |  \
                                         |__|    o    |__|
                                         (((\_________/)))
                                             \___|___/
                                        jgs.--' | | '--.
                                           \__._| |_.__/

Warden in Go, because why not.

Running

For development, you can just spin up the Vagrant VM and run the server locally, pointing at its host:

# if you need it:
vagrant plugin install vagrant-omnibus

# then:
librarian-chef install
vagrant up
ssh-copy-id [email protected]
ssh [email protected] sudo cp -r .ssh/ /root/.ssh/
./bin/add-route
./bin/run-garden-remote-linux

# or run from inside the vm:
vagrant ssh
sudo su -
goto garden
./bin/run-garden-linux

This runs the server locally and configures the Linux backend to do everything over SSH to the Vagrant box.

Testing

Pre-requisites

  • Go 1.2 or later
  • git
  • mercurial
  • godep
mkdir ~/go

Assuming Go was installed using gvm:

export GOPATH=/home/<user>/go:$GOPATH
export PATH=$PATH:/home/<user>/go/bin

Download a root filesystem, extract it as root, and point to it:

curl -O http://cfstacks.s3.amazonaws.com/lucid64.dev.tgz
sudo mkdir -p /var/warden/rootfs
sudo tar xzf lucid64.dev.tgz -C /var/warden/rootfs
export GARDEN_TEST_ROOTFS=/var/warden/rootfs

Get garden and its dependencies:

go get github.com/pivotal-cf-experimental/garden
cd ~/go/github.com/pivotal-cf-experimental/garden
godep restore

Make the C code:

make

Install ginkgo:

cd ~/go/github.com/onsi/ginkgo/ginkgo
go install

Run the tests:

cd ~/go/github.com/pivotal-cf-experimental/garden
ginkgo -r

garden's People

Contributors

vito avatar pietern avatar d avatar slimyang avatar onsi avatar xoebus avatar emalm avatar frodenas avatar mariash avatar sykesm avatar mikegehard avatar mheath avatar thansmann avatar andyzh avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.