From 84cfa51d24839094d5b0c983f798d59aad48e1a5 Mon Sep 17 00:00:00 2001 From: Anthony Lapenna Date: Mon, 8 Jan 2018 14:11:02 +0100 Subject: [PATCH] feat(templates): add IronFunction templates (#83) --- stacks/ironfunctions/docker-stack.yml | 24 ++++++++++++++ templates.json | 47 +++++++++++++++++++++++++++ 2 files changed, 71 insertions(+) create mode 100644 stacks/ironfunctions/docker-stack.yml diff --git a/stacks/ironfunctions/docker-stack.yml b/stacks/ironfunctions/docker-stack.yml new file mode 100644 index 0000000..3a5b8cf --- /dev/null +++ b/stacks/ironfunctions/docker-stack.yml @@ -0,0 +1,24 @@ +version: '3' + +services: + api: + image: iron/functions + deploy: + replicas: 1 + volumes: + - api_data:/app/data + - /var/run/docker.sock:/var/run/docker.sock + ports: + - 8080 + + ui: + image: iron/functions-ui + deploy: + replicas: 1 + environment: + API_URL: http://api:8080 + ports: + - 4000 + +volumes: + api_data: diff --git a/templates.json b/templates.json index 02e61a8..f0fdfdc 100644 --- a/templates.json +++ b/templates.json @@ -307,6 +307,40 @@ ], "volumes": ["C:/temp/"] }, + { + "type": "container", + "title": "IronFunctions API", + "description": "Open-source serverless computing platform", + "categories": ["serverless"], + "platform": "linux", + "logo": "https://cloudinovasi.id/assets/img/logos/ironfunctions.png", + "image": "iron/functions:latest", + "ports": [ + "8080/tcp" + ], + "volumes": ["/app/data"], + "privileged": true + }, + { + "type": "container", + "title": "IronFunctions UI", + "description": "Open-source user interface for IronFunctions", + "categories": ["serverless"], + "platform": "linux", + "logo": "https://cloudinovasi.id/assets/img/logos/ironfunctions.png", + "image": "iron/functions-ui:latest", + "ports": [ + "4000/tcp" + ], + "volumes": ["/app/data"], + "env": [ + { + "name": "API_URL", + "label": "API URL" + } + ], + "privileged": true + }, { "type": "container", "title": "Solr", @@ -647,6 +681,19 @@ "stackfile": "docker-compose.yml" } }, + { + "type": "stack", + "title": "IronFunctions", + "description": "Open-source serverless computing platform", + "note": "Deploys the IronFunctions API and UI.", + "categories": ["serverless"], + "platform": "linux", + "logo": "https://cloudinovasi.id/assets/img/logos/ironfunctions.png", + "repository": { + "url": "https://github.com/deviantony/ironfunctions_stack", + "stackfile": "docker-stack.yml" + } + }, { "type": "stack", "title": "CockroachDB",