mirror of
https://github.com/fnproject/fn.git
synced 2022-10-28 21:29:17 +03:00
Renamed a bunch of images to use fnproject org. (#239)
* Renamed a bunch of images to use fnproject org. * Multi-stage build for Docker. * Added tmp vendor dirs to gitignore. * Run docker-build at beginning of test.
This commit is contained in:
committed by
Denis Makogon
parent
f90879b751
commit
f559acd7ed
@@ -9,8 +9,8 @@ install:
|
||||
|
||||
docker: vendor
|
||||
GOOS=linux go build -o fn
|
||||
docker build -t treeder/fn .
|
||||
docker push treeder/fn
|
||||
docker build -t fnproject/fn .
|
||||
docker push fnproject/fn
|
||||
|
||||
dep:
|
||||
glide install -v
|
||||
|
||||
@@ -71,10 +71,10 @@ otherapp
|
||||
|
||||
$ fn routes list myapp # list routes of an app
|
||||
path image
|
||||
/hello funcy/hello
|
||||
/hello fnproject/hello
|
||||
|
||||
$ fn routes create otherapp /hello funcy/hello # create route
|
||||
/hello created with funcy/hello
|
||||
$ fn routes create otherapp /hello fnproject/hello # create route
|
||||
/hello created with fnproject/hello
|
||||
|
||||
$ fn routes delete otherapp hello # delete route
|
||||
/hello deleted
|
||||
@@ -131,7 +131,7 @@ choices are: `memory`, `type` and `config`.
|
||||
|
||||
Thus a more complete example of route creation will look like:
|
||||
```sh
|
||||
fn routes create --memory 256 --type async --config DB_URL=http://example.org/ otherapp /hello funcy/hello
|
||||
fn routes create --memory 256 --type async --config DB_URL=http://example.org/ otherapp /hello fnproject/hello
|
||||
```
|
||||
|
||||
You can also update existent routes configurations using the command `fn routes update`
|
||||
@@ -139,7 +139,7 @@ You can also update existent routes configurations using the command `fn routes
|
||||
For example:
|
||||
|
||||
```sh
|
||||
fn routes update --memory 64 --type sync --image funcy/hello
|
||||
fn routes update --memory 64 --type sync --image fnproject/hello
|
||||
```
|
||||
|
||||
To know exactly what configurations you can update just use the command
|
||||
@@ -215,7 +215,7 @@ $ fn test --remote myapp
|
||||
|
||||
### Creating a new function from source
|
||||
```
|
||||
fn init funcy/hello --runtime ruby
|
||||
fn init fnproject/hello --runtime ruby
|
||||
fn deploy myapp /hello
|
||||
```
|
||||
|
||||
@@ -226,7 +226,7 @@ fn deploy myapp (discover route path if available in func.yaml)
|
||||
|
||||
### Testing function locally
|
||||
```
|
||||
fn run funcy/hello
|
||||
fn run fnproject/hello
|
||||
```
|
||||
|
||||
### Testing route
|
||||
@@ -245,7 +245,7 @@ fn apps delete myapp
|
||||
|
||||
### Route management
|
||||
```
|
||||
fn routes create myapp /hello funcy/hello
|
||||
fn routes create myapp /hello fnproject/hello
|
||||
# routes update will also update any changes in the func.yaml file too.
|
||||
fn routes update myapp /hello --timeout 30 --type async
|
||||
fn routes config set myapp /hello log_level info
|
||||
|
||||
@@ -21,7 +21,7 @@ import (
|
||||
)
|
||||
|
||||
const (
|
||||
functionsDockerImage = "funcy/functions"
|
||||
functionsDockerImage = "fnproject/functions"
|
||||
minRequiredDockerVersion = "17.5.0"
|
||||
envFnRegistry = "FN_REGISTRY"
|
||||
)
|
||||
|
||||
@@ -46,6 +46,7 @@ html_url=$(echo "$output" | python -c 'import json,sys;obj=json.load(sys.stdin);
|
||||
curl --data-binary "@fn_linux" -H "Content-Type: application/octet-stream" -u $GH_DEPLOY_USER:$GH_DEPLOY_KEY $upload_url\?name\=fn_linux >/dev/null
|
||||
curl --data-binary "@fn_mac" -H "Content-Type: application/octet-stream" -u $GH_DEPLOY_USER:$GH_DEPLOY_KEY $upload_url\?name\=fn_mac >/dev/null
|
||||
curl --data-binary "@fn.exe" -H "Content-Type: application/octet-stream" -u $GH_DEPLOY_USER:$GH_DEPLOY_KEY $upload_url\?name\=fn.exe >/dev/null
|
||||
curl --data-binary "@fn_alpine" -H "Content-Type: application/octet-stream" -u $GH_DEPLOY_USER:$GH_DEPLOY_KEY $upload_url\?name\=fn_alpine >/dev/null
|
||||
|
||||
# TODO: Add the download URLS to install.sh. Maybe we should make a template to generate install.sh
|
||||
# TODO: Download URL's are in the output vars above under "url". Eg: "url":"/uploads/9a1848c5ebf2b83f8b055ac0e50e5232/fn.exe"
|
||||
|
||||
@@ -16,7 +16,7 @@ $fn test
|
||||
|
||||
someport=50080
|
||||
docker rm --force functions || true # just in case
|
||||
docker run --name functions -d -v /var/run/docker.sock:/var/run/docker.sock -p $someport:8080 funcy/functions
|
||||
docker run --name functions -d -v /var/run/docker.sock:/var/run/docker.sock -p $someport:8080 fnproject/functions
|
||||
sleep 10
|
||||
docker logs functions
|
||||
|
||||
|
||||
BIN
cli/vendor/github.com/docker/docker/hack/make/.resources-windows/docker.ico
generated
vendored
BIN
cli/vendor/github.com/docker/docker/hack/make/.resources-windows/docker.ico
generated
vendored
Binary file not shown.
|
Before Width: | Height: | Size: 361 KiB After Width: | Height: | Size: 16 KiB |
BIN
cli/vendor/github.com/moby/moby/hack/make/.resources-windows/docker.ico
generated
vendored
BIN
cli/vendor/github.com/moby/moby/hack/make/.resources-windows/docker.ico
generated
vendored
Binary file not shown.
|
Before Width: | Height: | Size: 361 KiB After Width: | Height: | Size: 16 KiB |
Reference in New Issue
Block a user