GithubHelp home page GithubHelp logo

cdrage / henge Goto Github PK

View Code? Open in Web Editor NEW

This project forked from redhat-developer/henge

0.0 2.0 0.0 5.21 MB

Transform multi container spec across providers

License: MIT License

Go 91.34% Shell 8.66%

henge's Introduction

Henge

Convert multi-container application defined using Docker Compose to Kubernetes and/or Openshift.

Project goals:

  • The tool should be intelligent and interactive enough to ask the right questions when it is trying to convert and assume sane defaults
  • The output file generated by the tool should be consumable by kubectl/oc and should be able to handle various Docker Compose specifics like services, networking and map them to Kubernetes/OpenShift world.
  • The tool can be used as a library or service with another front end e.g. oc, kubectl, a web app or an IDE.

Usage

Examples

To convert the docker-compose.yml file in the current directory to openshift's artifacts

henge openshift

To convert the file of your choice to kubernetes's artifacts.

henge kubernetes -f foo.yml

To convert docker-compose.yml file in current directory and also ask questions interactively.

henge openshift -i

To provide multiple file for conversion

henge kubernetes -f foo.yml,bar.yml,docker-compose.yml

Developing and building from source

Setting up GOPATH

Follow instructions here to setup GO developer environment.

Getting sources

If you are building upstream code

go get github.com/redhat-developer/henge
cd $GOPATH/src/github.com/redhat-developer/henge/

If you developing and using your own fork

mkdir -p $GOPATH/src/github.com/redhat-developer
cd $GOPATH/src/github.com/redhat-developer
git clone https://github.com/<forkid>/henge
cd henge/
git remote add upstream https://github.com/redhat-developer/henge

Build

Check your Go version go version

using Go v1.6

go build henge.go

using Go v1.5

GO15VENDOREXPERIMENT=1 go build henge.go

Debug

You can run henge with verbose logging by adding -v 5 option

./henge --loglevel=5 openshift -f docker-compose.yml

henge's People

Contributors

kadel avatar rtnpro avatar surajssd avatar

Watchers

Charlie Drage 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.