2016-07-15 16:25:26 -07:00
2016-07-08 12:59:55 -04:00
2015-07-22 00:01:54 -07:00
2016-07-14 09:18:43 -07:00
2016-07-14 09:18:43 -07:00
2013-04-02 16:50:35 -07:00
2016-07-15 15:27:54 -07:00
2015-10-09 18:22:32 -07:00
2016-07-14 09:18:43 -07:00
2016-07-14 09:18:43 -07:00
2016-07-14 09:18:43 -07:00
2016-07-14 09:18:43 -07:00
2016-07-14 09:18:43 -07:00
2016-06-17 20:32:14 -07:00
2016-07-14 09:18:43 -07:00
2016-07-15 16:25:26 -07:00
2016-07-15 16:14:14 -07:00
2016-06-17 19:43:26 -07:00
2016-06-17 20:32:14 -07:00
2016-06-17 19:43:26 -07:00

Note: currently running at: http://gateway.iron.computer:8080/

MicroServices Gateway / API Gateway

First things first, create an app/service:

TOOD: App or service??

iron create app
# OR
curl -H "Content-Type: application/json" -X POST -d '{"name":"myapp"}' http://localhost:8080/api/v1/apps

Now add routes to the app. First we'll add a route to the output of a docker container:

iron add route myapp /hello iron/hello
# OR
curl -H "Content-Type: application/json" -X POST -d '{"path":"/hello", "image":"iron/hello", "type":"run"}' http://localhost:8080/api/v1/apps/myapp/routes

And how about a slackbot endpoint:

curl -H "Content-Type: application/json" -X POST -d '{"path":"/guppy","image":"treeder/guppy:0.0.2", "content_type": "application/json"}' http://localhost:8080/api/v1/apps/myapp/routes

Test out the route:

Surf to: http://localhost:8080/hello?app=myapp

You'all also get a custom URL like this when in production.

myapp.ironfunctions.com/myroute

Updating Your Images

Tag your images with a version, eg treeder/guppy:0.0.5 then use that including the tag and update the route.

Description
The container native, cloud agnostic serverless platform.
Readme Apache-2.0 170 MiB
Languages
Go 97.4%
Shell 1.2%
Ruby 0.5%
Makefile 0.4%
Dockerfile 0.4%
Other 0.1%