Skip to content

Commit

Permalink
Add docker and service definition for ccp
Browse files Browse the repository at this point in the history
Build an image for the ceagle service:

    ccp build -c etcd ceagle

and then run it:

    ccp deploy -c etcd ceagle
  • Loading branch information
akscram committed Nov 25, 2016
1 parent c749cf1 commit edf1a00
Show file tree
Hide file tree
Showing 5 changed files with 55 additions and 0 deletions.
7 changes: 7 additions & 0 deletions docker/ceagle/Dockerfile.j2
@@ -0,0 +1,7 @@
FROM {{ image_spec("base-tools") }}
MAINTAINER {{ maintainer }}

{{ copy_sources("seecloud/ceagle", "/ceagle") }}

COPY PKG-INFO /ceagle/
RUN pip install --upgrade /ceagle
1 change: 1 addition & 0 deletions docker/ceagle/PKG-INFO
@@ -0,0 +1 @@
Version: 0.1.0
26 changes: 26 additions & 0 deletions service/ceagle.yaml
@@ -0,0 +1,26 @@
dsl_version: 0.1.0
service:
name: ceagle
ports:
- {{ ceagle.port }}
containers:
- name: ceagle
image: ceagle
probes:
readiness:
type: "httpGet"
port: {{ ceagle.port.cont }}
path: "/"
liveness:
command: "true"
type: "exec"
daemon:
command: gunicorn
--workers {{ ceagle.wsgi.workers }}
--bind 0.0.0.0:{{ ceagle.port.cont }}
ceagle.main:app

files:
ceagle-conf:
path: /etc/ceagle/config.json
content: ceagle.json.j2
7 changes: 7 additions & 0 deletions service/files/ceagle.json.j2
@@ -0,0 +1,7 @@
{
"flask": {
"PORT": {{ ceagle.port.cont }},
"HOST": "0.0.0.0",
"DEBUG": {{ ceagle.debug }}
}
}
14 changes: 14 additions & 0 deletions service/files/defaults.yaml
@@ -0,0 +1,14 @@
configs:
ceagle:
debug: true

port:
cont: 5000

wsgi:
workers: 4

sources:
seecloud/ceagle:
git_url: https://github.com/seecloud/ceagle
git_ref: master

0 comments on commit edf1a00

Please sign in to comment.