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
Size: 25
Language: null
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
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.
Requirements:
docker 1.9 or higher
docker pull python:alpine
#(only for an example)
Components:
Nomad
Consul
Fabio
Nomad-ui jippi version (with docker-compose only)
Most important ports:
service | port ———|—– Consul UI| 8500 Fabio UI| 9998 Nomad UI| 3000 Fabio router | 9999
build.it
or
cker pull kompaas/kompaas
(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
cker-compose up -d
ting kompaas_consul_1
ting kompaas_nomad_1
ting kompaas_fabio_1
ting kompaas_nui_1
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
ile true; do
curl -H 'Host: python.service.consul' http://localhost:9999
ne