opencompose

command module
v0.1.0-alpha.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 24, 2017 License: Apache-2.0 Imports: 2 Imported by: 0

README

OpenCompose

Build Status

The goal of OpenCompose is to make it easier to on-board developers to Kubernetes. It is a curated higher level abstraction for specific Kubernetes resources. Very simple idea, isn't it? Developer shouldn't have to learn various Kubernetes concepts just to test and deploy their applications on Kubernetes. The developer is generally concerned with the application that is being developed.

We are at a very nascent stage of this project and we have listed some of our ideas as issues and some of our ideas have taken shape in form of examples but we are definitely looking for suggestions and contributions from the Kubernetes community. Please send PRs to improve this project, file issues and RFEs against this repository.

Installation

We don't have a release yet, but you can easily build OpenCompose tool from source. All you need is Go installed on your system. Than simply run:

go get -u github.com/redhat-developer/opencompose
Example
  1. Create or download hello-nginx.yaml file.
version: 0.1-dev
services:
- name: helloworld
  containers:
  - image: tomaskral/nonroot-nginx
    ports:
    - port: 8080
  1. Convert OpenCompose file to Kubernetes objects
opencompose convert -f hello-nginx.yaml

This will create two files in current directory - deployment-helloworld.yaml and service-helloworld.yaml. First file is a Kubernetes Deployment object and second is a Kubernetes Service.

To deploy your application to Kubernetes cluster just run kubectl create -f service-helloworld.yaml -f deployment-helloworld.yaml

Command-line Completions
Bash

For Bash auto completion run the following command:

source <(opencompose completion bash)

To make it permanent add this line to your ~/.bashrc.

Zsh

For Zsh auto completion run the following command:

source <(opencompose completion zsh)

To make it permanent add this line to your ~/.zshrc.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL