diff --git a/docker/ceagle/Dockerfile.j2 b/docker/ceagle/Dockerfile.j2 new file mode 100644 index 0000000..b4dee93 --- /dev/null +++ b/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 diff --git a/docker/ceagle/PKG-INFO b/docker/ceagle/PKG-INFO new file mode 100644 index 0000000..47fac9b --- /dev/null +++ b/docker/ceagle/PKG-INFO @@ -0,0 +1 @@ +Version: 0.1.0 diff --git a/service/ceagle.yaml b/service/ceagle.yaml new file mode 100644 index 0000000..756f3aa --- /dev/null +++ b/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 diff --git a/service/files/ceagle.json.j2 b/service/files/ceagle.json.j2 new file mode 100644 index 0000000..7f33a56 --- /dev/null +++ b/service/files/ceagle.json.j2 @@ -0,0 +1,7 @@ +{ + "flask": { + "PORT": {{ ceagle.port.cont }}, + "HOST": "0.0.0.0", + "DEBUG": {{ ceagle.debug }} + } +} diff --git a/service/files/defaults.yaml b/service/files/defaults.yaml new file mode 100644 index 0000000..ac60a3a --- /dev/null +++ b/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