Remove iron...

This commit is contained in:
Travis Reeder
2017-05-18 18:59:34 +00:00
committed by Reed Allman
parent 521df8c1ff
commit 9cc12b4b12
146 changed files with 406 additions and 1050 deletions

View File

@@ -1,4 +1,4 @@
FROM iron/go
FROM funcy/go
ADD func .

View File

@@ -4,7 +4,7 @@ This function exemplifies an authentication in Twitter API and get latest tweets
## Requirements
- IronFunctions API
- Oracle Functions API
- Configure a [Twitter App](https://apps.twitter.com/) and [configure Customer Access and Access Token](https://dev.twitter.com/oauth/overview/application-owner-access-tokens).
## Development
@@ -36,7 +36,7 @@ docker push $USERNAME/func-twitter
./test.sh
```
## Running it on IronFunctions
## Running it on Oracle Functions
### Let's define some environment variables
@@ -51,7 +51,7 @@ ACCESS_TOKEN="XXXXXX"
ACCESS_SECRET="XXXXXX"
```
### Running with IronFunctions
### Running with Oracle Functions
With this command we are going to create an application with name `twitter`.
@@ -82,7 +82,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 '{"username": "getiron"}' http://$FUNCAPI/r/twitter/tweets

View File

@@ -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-twitter .
docker run --rm -v "$PWD":/go/src/$FUNCPKG -w /go/src/$FUNCPKG funcy/go:dev go build -o func
docker build -t username/func-twitter .

View File

@@ -1,3 +1,3 @@
name: iron/func-twitter
name: username/func-twitter
build:
- ./build.sh

View File

@@ -3,7 +3,7 @@ set -x
./build.sh
PAYLOAD='{"username": "getiron"}'
PAYLOAD='{"username": "joe"}'
# test it
echo $PAYLOAD | docker run --rm -i iron/func-twitter
echo $PAYLOAD | docker run --rm -i username/func-twitter