Go: Set image to right version, update example readme (#497)

This commit is contained in:
Soam Vasani
2018-02-15 20:39:25 -08:00
committed by GitHub
parent 9a21e14a84
commit a1ed698fa8
3 changed files with 17 additions and 10 deletions
+2 -2
View File
@@ -23,13 +23,13 @@ You can add this customized image to fission with "fission env
create": create":
``` ```
fission env create --name go-runtime --image USER/go-runtime fission env create --name go --image USER/go-runtime --builder USER/go-builder --version 2
``` ```
Or, if you already have an environment, you can update its image: Or, if you already have an environment, you can update its image:
``` ```
fission env update --name go-runtime --image USER/go-runtime fission env update --name go --image USER/go-runtime --builder USER/go-builder
``` ```
After this, fission functions that have the env parameter set to the After this, fission functions that have the env parameter set to the
+12 -6
View File
@@ -1,17 +1,23 @@
# Hello World in Go on Fission # Hello World in Go on Fission
`hello.go` is an very simple fission function that says "Hello, World!". `hello.go` contains a very simple fission function that says "Hello, World!".
## Deploying this function on your cluster
```bash ```bash
# This command creates the environment and function, and waits for the
# function build. Look at the YAML files in specs/ for details about # Create the Fission Go environment and function, and wait for the
# how those are specified. # function to build. (Take a look at the YAML files in the specs
# directory for details about how the environment and function are
# specified.)
$ fission spec apply --wait $ fission spec apply --wait
1 environment created 1 environment created
1 package created 1 package created
1 function created 1 function created
# This run the function and prints its output # Now, run the function with the "fission function test" command:
$ fission function test --name hello
$ fission function test --name hello-go
Hello, World! Hello, World!
``` ```
+3 -2
View File
@@ -7,6 +7,7 @@ spec:
version: 2 version: 2
builder: builder:
command: build command: build
image: fission/go-build-env:20171206-2 image: fission/go-build-env:latest
runtime: runtime:
image: fission/go-env:20171206 image: fission/go-env:latest