Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add docker and service definition for ccp
Build an image for the ceagle service: ccp build -c etcd ceagle and then run it: ccp deploy -c etcd ceagle
- Loading branch information
Showing
5 changed files
with
55 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Version: 0.1.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"flask": { | ||
"PORT": {{ ceagle.port.cont }}, | ||
"HOST": "0.0.0.0", | ||
"DEBUG": {{ ceagle.debug }} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |