GithubHelp home page GithubHelp logo

isabella232 / garden-hcs Goto Github PK

View Code? Open in Web Editor NEW

This project forked from hpcloud/garden-hcs

0.0 0.0 0.0 9.05 MB

Cloud Foundry Garden Host Compute Service

License: Other

Ruby 2.29% Go 78.53% PowerShell 19.18%

garden-hcs's Introduction

Garden HCS (Host Compute Service)

Windows 2016 Containers implementation based on Microsoft Host Compute Service Shim for Cloud Foundry Garden.

Requirements

Build

To build garden-hcs run go build or go get github.com/hpcloud/garden-hcs.

Run

To run the Garden service start the garden-hcs.exe executable with administrative privileges.

The "baseImagePath" argument is required and is the base images for all containers created by garden. The simplest way to get a "baseImagePath" is to use an existing image from docker. For example to get the image path for "microsoft/windowsservercore" image use the following PS snippet: (docker inspect microsoft/windowsservercore | ConvertFrom-Json).GraphDriver.Data.Dir

Garden-hcs run sample:

garden-hcs.exe -logLevel debug ^
 -listenAddr 0.0.0.0:9241
 -cellIP 192.168.50.16
 -baseImagePath C:\ProgramData\docker\windowsfilter\9c733a479cd00784b96656b7628eb1c0da3c96dd4b672dcf2c29f2fc7dc58d8d`

Usage

The Garden API can be used directly with curl or Invoke-WebRequest.

Example:

Invoke-WebRequest -UseBasicParsing http://localhost:9241/capacity

Another method is to use the Garden client "gaol" adapted for windows. To install gaol for Windows use: go get github.com/stefanschneider/gaol

Gaol usage sample:

gaol /t 127.0.0.1:9241 create
gaol /t 127.0.0.1:9241 list
gaol /t 127.0.0.1:9241 shell <container-id>

Integration with Cloud Foundry and Diego

To add a Windows 2016 Cell to Cloud Foundry please refer to dev-box.

garden-hcs's People

Contributors

dgoddard avatar dtengdin-labs avatar mihaibuzgau avatar stefanschneider 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.