mirror of
https://github.com/fnproject/fn.git
synced 2022-10-28 21:29:17 +03:00
Remove iron...
This commit is contained in:
committed by
Reed Allman
parent
521df8c1ff
commit
9cc12b4b12
@@ -1,4 +1,4 @@
|
||||
FROM iron/ruby:dev
|
||||
FROM funcy/ruby:dev
|
||||
|
||||
WORKDIR /function
|
||||
ADD Gemfile /function/
|
||||
|
||||
@@ -4,7 +4,7 @@ This images compares the payload info with the header.
|
||||
|
||||
## Requirements
|
||||
|
||||
- IronFunctions API
|
||||
- Oracle Functions API
|
||||
|
||||
## Development
|
||||
|
||||
@@ -35,7 +35,7 @@ docker push $USERNAME/func-checker
|
||||
./test.sh
|
||||
```
|
||||
|
||||
## Running it on IronFunctions
|
||||
## Running it on Oracle Functions
|
||||
|
||||
### Let's define some environment variables
|
||||
|
||||
@@ -45,7 +45,7 @@ docker push $USERNAME/func-checker
|
||||
FUNCAPI=YOUR_FUNCTIONS_ADDRESS
|
||||
```
|
||||
|
||||
### Running with IronFunctions
|
||||
### Running with Oracle Functions
|
||||
|
||||
With this command we are going to create an application with name `checker`.
|
||||
|
||||
@@ -71,7 +71,7 @@ curl -X POST --data '{
|
||||
|
||||
#### Testing function
|
||||
|
||||
Now that we created our IronFunction route, let's test our new route
|
||||
Now that we created our Oracle Functions route, let's test our new route
|
||||
|
||||
```
|
||||
curl -X POST --data '{ "env_vars": { "test": "1" } }' http://$FUNCAPI/r/checker/check
|
||||
|
||||
@@ -2,4 +2,4 @@
|
||||
set -ex
|
||||
|
||||
# build image
|
||||
docker build -t iron/func-checker .
|
||||
docker build -t username/func-checker .
|
||||
@@ -1,3 +1,3 @@
|
||||
name: iron/func-checker
|
||||
name: username/func-checker
|
||||
build:
|
||||
- ./build.sh
|
||||
@@ -6,4 +6,4 @@ set -x
|
||||
PAYLOAD='{"env_vars": {"FOO": "bar"}}'
|
||||
|
||||
# test it
|
||||
echo $PAYLOAD | docker run --rm -i -e TEST=1 -e FOO=bar iron/func-checker
|
||||
echo $PAYLOAD | docker run --rm -i -e TEST=1 -e FOO=bar username/func-checker
|
||||
Reference in New Issue
Block a user