eBayClassifiedsGroup/KomPaaS

Name: KomPaaS

Owner: eBay Classifieds Group

Description: Compact PaaS - PoC small based golang app PaaS closed in one container

Created: 2015-11-20 10:13:44.0

Updated: 2017-12-28 10:19:00.0

Pushed: 2017-04-10 20:07:50.0

Homepage:

Size: 25

Language: null

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

KomPaaS

Compact PaaS - PoC - playgroud mode - small based golang app PaaS closed in one container

Watch Kelsey Hightower demo Consul, Nomad, Vault and fabio at HashiConf EU 2016.

Build image or get it
build.it

or

cker pull kompaas/kompaas
Usage:
interactive:

(tmux knowledge required)

cker run \
net=host \
privileged \
volume "/var/run/docker.sock:/var/run/docker.sock" \
volume "/tmp:/tmp" \
i kompaas/kompaas tmux attach
docker compose:
cker-compose up -d
ting kompaas_consul_1
ting kompaas_nomad_1
ting kompaas_fabio_1
ting kompaas_nui_1
Start example

if you run tmux:

mad run example.nomad

else:

cker exec -ti kompaas_nomad_1 nomad run example.nomad
Monitoring evaluation "cbbea755"
Evaluation triggered by job "example"
Allocation "b00798bf" created: node "4522e2f4", group "python"
Allocation "64a73a0f" created: node "4522e2f4", group "python"
Allocation "669afa7b" created: node "4522e2f4", group "python"
Allocation "80de4c42" created: node "4522e2f4", group "python"
Evaluation status changed: "pending" -> "complete"
Evaluation "cbbea755" finished with status "complete"

cker ps
AINER ID        IMAGE                    COMMAND                  CREATED             STATUS              PORTS                                                  NAMES
ecba205e        python:alpine            "/bin/sh -c 'echo $HO"   7 seconds ago       Up 6 seconds        127.0.0.1:31873->8000/tcp, 127.0.0.1:31873->8000/udp   server-64a73a0f-5999-fcc2-6aa6-b1cf228d1b74
1e1ced32        python:alpine            "/bin/sh -c 'echo $HO"   7 seconds ago       Up 6 seconds        127.0.0.1:42008->8000/tcp, 127.0.0.1:42008->8000/udp   server-80de4c42-4786-2c09-40c9-69002c7f79b4
7b8984ef        python:alpine            "/bin/sh -c 'echo $HO"   7 seconds ago       Up 6 seconds        127.0.0.1:28821->8000/tcp, 127.0.0.1:28821->8000/udp   server-b00798bf-8b32-c40a-a5fb-6496c7112748
4804ee1e        python:alpine            "/bin/sh -c 'echo $HO"   7 seconds ago       Up 6 seconds        127.0.0.1:55579->8000/tcp, 127.0.0.1:55579->8000/udp   server-669afa7b-8f33-9dbd-0f21-c83ccf369485
11c14cf5        kompaas/kompaas          "fabio"                  17 seconds ago      Up 16 seconds                                                              kompaas_fabio_1
488d26ac        kompaas/kompaas          "consul agent -client"   17 seconds ago      Up 16 seconds                                                              kompaas_consul_1
3244ef92        kompaas/kompaas          "nomad agent -dev"       17 seconds ago      Up 16 seconds                                                              kompaas_nomad_1
12884ce5        jippi/nomad-ui   "apache2-foreground"     17 seconds ago      Up 16 seconds                                                              kompaas_nui_1
Test example
ile true; do
curl -H 'Host: python.service.consul' http://localhost:9999
ne

This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.