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/go
|
||||
FROM funcy/go
|
||||
|
||||
ADD func .
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@ This function basically executes a GET/SET in a given redis server.
|
||||
## Requirements
|
||||
|
||||
- Redis Server
|
||||
- IronFunctions API
|
||||
- Functions API
|
||||
|
||||
## Development
|
||||
|
||||
@@ -36,7 +36,7 @@ docker push $USERNAME/func-redis
|
||||
./test.sh
|
||||
```
|
||||
|
||||
## Running it on IronFunctions
|
||||
## Running it on Oracle Functions
|
||||
|
||||
### Let's define some environment variables
|
||||
|
||||
@@ -53,7 +53,7 @@ REDIS=YOUR_REDIS_ADDRESS
|
||||
REDIS_AUTH=REDIS_AUTH_KEY
|
||||
```
|
||||
|
||||
### Running with IronFunctions
|
||||
### Running with Oracle Functions
|
||||
|
||||
With this command we are going to create an application with name `redis`.
|
||||
|
||||
@@ -101,7 +101,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 '{"key": "name", "value": "Johnny"}' http://$FUNCAPI/r/redis/set
|
||||
|
||||
@@ -8,5 +8,5 @@ FUNCPKG=$(pwd | sed "s|$GOPATH/src/||")
|
||||
docker run --rm -v "$PWD":/go/src/$FUNCPKG -w /go/src/$FUNCPKG glide up
|
||||
|
||||
# build image
|
||||
docker run --rm -v "$PWD":/go/src/$FUNCPKG -w /go/src/$FUNCPKG iron/go:dev go build -o func
|
||||
docker build -t iron/func-redis .
|
||||
docker run --rm -v "$PWD":/go/src/$FUNCPKG -w /go/src/$FUNCPKG funcy/go:dev go build -o func
|
||||
docker build -t username/func-redis .
|
||||
@@ -1,3 +1,3 @@
|
||||
name: iron/func-redis
|
||||
name: username/func-redis
|
||||
build:
|
||||
- ./build.sh
|
||||
@@ -14,8 +14,8 @@ docker rm test-redis-func
|
||||
|
||||
docker run -p 6379:6379 --name test-redis-func -d redis
|
||||
|
||||
echo $PAYLOAD | docker run --rm -i -e SERVER=redis:6379 -e COMMAND=SET --link test-redis-func:redis iron/func-redis
|
||||
echo $PAYLOAD | docker run --rm -i -e SERVER=redis:6379 -e COMMAND=GET --link test-redis-func:redis iron/func-redis
|
||||
echo $PAYLOAD | docker run --rm -i -e SERVER=redis:6379 -e COMMAND=SET --link test-redis-func:redis username/func-redis
|
||||
echo $PAYLOAD | docker run --rm -i -e SERVER=redis:6379 -e COMMAND=GET --link test-redis-func:redis username/func-redis
|
||||
|
||||
docker stop test-redis-func
|
||||
docker rm test-redis-func
|
||||
Reference in New Issue
Block a user