functions: 0.2.62 release [skip ci]

This commit is contained in:
Travis Reeder
2017-05-15 14:04:01 -07:00
parent ffae780f07
commit 0c6ca08a2f
7 changed files with 12 additions and 11 deletions

View File

@@ -1,4 +1,4 @@
FROM iron/dind
FROM treeder/dind
WORKDIR /app

View File

@@ -29,16 +29,17 @@ docker-dep:
docker-build:
docker run --rm -v ${CURDIR}:/go/src/github.com/treeder/functions -w /go/src/github.com/treeder/functions iron/go:dev go build -o functions-alpine
docker build -t iron/functions:latest .
docker build -t treeder/functions:latest .
docker-run: docker-build
docker run --rm --privileged -it -e LOG_LEVEL=debug -e "DB_URL=bolt:///app/data/bolt.db" -v ${CURDIR}/data:/app/data -p 8080:8080 iron/functions
docker run --rm --privileged -it -e LOG_LEVEL=debug -e "DB_URL=bolt:///app/data/bolt.db" -v ${CURDIR}/data:/app/data -p 8080:8080 treeder/functions
docker-test:
docker run -ti --privileged --rm -e LOG_LEVEL=debug \
-v /var/run/docker.sock:/var/run/docker.sock \
-v ${CURDIR}:/go/src/github.com/treeder/functions \
-w /go/src/github.com/treeder/functions iron/go:dev go test \
-w /go/src/github.com/treeder/functions \
iron/go:dev go test \
-v $(shell docker run -ti -v ${CURDIR}:/go/src/github.com/treeder/functions -w /go/src/github.com/treeder/functions -e GOPATH=/go golang:alpine sh -c 'go list ./... | grep -v vendor | grep -v examples | grep -v tool | grep -v fn | grep -v datastore')
all: dep build

View File

@@ -1,4 +1,4 @@
package version
// Version of IronFunctions
var Version = "0.2.60"
var Version = "0.2.62"

View File

@@ -21,12 +21,12 @@ function quick() {
}
function build () {
docker run --rm -v ${pwd}:/go/src/github.com/treeder/functions -w /go/src/github.com/treeder/functions iron/go:dev go build -o functions-alpine
docker build -t iron/functions:latest .
docker run --rm -v ${pwd}:/go/src/github.com/treeder/functions -w /go/src/github.com/treeder/functions golang:alpine go build -o functions-alpine
docker build -t treeder/functions:latest .
}
function run () {
docker run --rm --name functions -it -v /var/run/docker.sock:/var/run/docker.sock -e LOG_LEVEL=debug -e "DB_URL=bolt:///app/data/bolt.db" -v $PWD/data:/app/data -p 8080:8080 iron/functions
docker run --rm --name functions -it -v /var/run/docker.sock:/var/run/docker.sock -e LOG_LEVEL=debug -e "DB_URL=bolt:///app/data/bolt.db" -v $PWD/data:/app/data -p 8080:8080 treeder/functions
}
switch ($cmd)

View File

@@ -10,7 +10,7 @@ The files can be named as:
An example of a function file:
```yaml
name: iron/hello
name: treeder/hello
version: 0.0.1
type: sync
memory: 128

View File

@@ -47,7 +47,7 @@ The event will look like:
```js
{
"bucket": "iron-lambda-demo-images",
"bucket": "lambda-demo-images",
"srcKey": "waterfall.jpg",
"dstKey": "waterfall-1024.jpg"
}

View File

@@ -3,7 +3,7 @@ set -e
# Install script to install fn
release="0.2.60"
release="0.2.62"
command_exists() {
command -v "$@" > /dev/null 2>&1