Giter Club home page Giter Club logo

gvm-cli's Introduction

GVM the Groovy enVironment Manager

Build Status Stories in Ready

GVM is a tool for managing parallel Versions of multiple Software Development Kits on any Unix based system. It provides a convenient command line interface for installing, switching, removing and listing Candidates.

See documentation on the GVM Project Page.

Please report any bugs and feature request on the GitHub Issue Tracker.

Questions and discussions at the Nabble Forum.

Installation

Open your favourite terminal and enter the following:

$ curl -s api.gvmtool.net | bash

If the environment needs tweaking for GVM to be installed, the installer will prompt you accordingly and ask you to restart.

Running the Cucumber Features

All GVM's BDD tests are written in Cucumber and can be found under src/test/cucumber/gvm. These can be run with Gradle by running the following command:

$ ./gradlew

Please ensure that the JAVA_HOME environment variable set to JDK 1.7 on your system!

Mac users can add the following line to their ~/.bash_profile file to set this variable:

export JAVA_HOME=$(/usr/libexec/java_home -v1.7)

Running the Server Locally

It is useful to run the server locally for development purposes. Working installations of MongoDB and vert.x are required to get going. GVM can be used to install vert.x, otherwise install it manually as described on the install page.

$ gvm install vertx

Next, install MongoDB as described here. After installing, the database needs to be primed with some data. The following lines may be run with mongod running as a separate process.

$ cd /path/to/gvm
$ mongo gvm
> db.candidates.insert({candidate:"groovy", default:"2.0.6"})
> db.versions.insert({candidate:"groovy", version:"2.0.5", url:"http://dist.groovy.codehaus.org/distributions/groovy-binary-2.0.5.zip"})
> db.versions.insert({candidate:"groovy", version:"2.0.6", url:"http://dist.groovy.codehaus.org/distributions/groovy-binary-2.0.6.zip"})

This will:

  • create a new gvm database
  • the Groovy candidate in the candidates collection (defaulting to version 2.0.6)
  • new versions 2.0.5 and 2.0.6 in the versions collection.

Add any other candidates that you might require.

Next, prepare the local GVM environment by building and starting the server.

$ ./gradlew
$ contrib/run.sh

This will start the server on localhost:8080

Customizing the Database Location

The database may be configured using environment variables. If non are found, it will assume sensible defaults for a local mongodb installation. The follow environment variables can be specified:

GVM_DB_ADDRESS="mongo-persistor"
GVM_DB_HOST="xxx.mongohq.com"
GVM_DB_PORT="1234"
GVM_DB_NAME="gvm"
GVM_DB_PASSWORD="mypassword"
GVM_DB_USERNAME="myusername"

Local Installation

To install GVM locally running against your local server, run the following commands:

$ ./gradlew install
$ source ~/.gvm/bin/gvm-init.sh

gvm-cli's People

Contributors

akiernan avatar beckje01 avatar bitdeli-chef avatar bobbywarner avatar dsyer avatar eliasdorneles avatar fix avatar ganta avatar greymeister avatar jan-molak avatar jbovet avatar marc0der avatar masatonagai avatar matthurne avatar michalbcz avatar pinge avatar pledbrook avatar rlovtangen avatar robertomoutinho avatar robfletcher avatar sghill avatar thomasbittermann avatar waffle-iron avatar yerinle avatar

Watchers

 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.