Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update env image registry to ghcr and hide very old release notes #268

Merged
merged 3 commits into from
Sep 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion content/en/blog/demystifying-fission-http-requests.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ def main():
```

```bash
$ fission env create --name pythonv1 --image fission/python-env:0.9.2 --version 1 --period 5
$ fission env create --name pythonv1 --image ghcr.io/fission/python-env --version 1 --period 5

# With flag --method and --url, we can create a function and an HTTP trigger at the same time.
$ fission fn create --name reqpayload --env pythonv1 \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ require github.com/Shopify/sarama v1.29.0

Let’s create the environment and function
```
$ fission environment create --name go --image fission/go-env-1.15 --builder fission/go-builder-1.15
$ fission environment create --name go --image ghcr.io/fission/go-env --builder ghcr.io/fission/go-builder
$ fission fn create --name producer --env go --src producer.go --src go.mod --entrypoint Handler
```

Expand Down
2 changes: 1 addition & 1 deletion content/en/blog/fission-hello-world.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ In order to create a function, you’ll need to first create an _environment_, w

Let’s create a **Go** environment using the following command:

fission env create --name go --image fission/go-env --builder fission/go-builder
fission env create --name go --image ghcr.io/fission/go-env --builder ghcr.io/fission/go-builder

>**NOTE**: _Since you are creating a new environment, it may take a few extra seconds before the Go environment pods are up and running in the default namespace._

Expand Down
4 changes: 2 additions & 2 deletions content/en/blog/guestbook-application-with-fission-golang.md
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ helm install my-release --values cockroachdb.yaml cockroachdb/cockroachdb
Create the `go` environment

```bash
fission env create --name go --image fission/go-env-1.16 --builder fission/go-builder-1.16
fission env create --name go --image ghcr.io/fission/go-env --builder ghcr.io/fission/go-builder
```

Create a `sourcepackage` from the `rest-api` folder.
Expand Down Expand Up @@ -202,7 +202,7 @@ The entire installation can be done using a single block of `fission spec` comma

```bash
fission spec init
fission env create --name go --image fission/go-env-1.16 --builder fission/go-builder-1.16 --spec
fission env create --name go --image ghcr.io/fission/go-env --builder ghcr.io/fission/go-builder --spec
fission pkg create --name restapi-go-pkg --sourcearchive restapi-go-pkg.zip --env go --spec
fission fn create --name restapi-delete --executortype newdeploy --maxscale 3 --env go --pkg restapi-go-pkg --entrypoint MessageDeleteHandler --spec
fission fn create --name restapi-update --executortype newdeploy --maxscale 3 --env go --pkg restapi-go-pkg --entrypoint MessageUpdateHandler --spec
Expand Down
2 changes: 1 addition & 1 deletion content/en/blog/jvm_environment.md
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ Note, you can also use the Fission builder for building the JAR file, which come
First you will need to **create an environment**. The `keeparchive` flag is important for Java-based applications that are packaged as JAR file. This flag will ensure that the fetcher won't extract the JAR file into a directory. Currently, the JVM environment supports version 2 and above, so we specify the environment version as 2.

```
$ fission env create --name jvm --image fission/jvm-env --version 2 --keeparchive
$ fission env create --name jvm --image ghcr.io/fission/jvm-env --version 2 --keeparchive
```

When creating the function we provide the JAR file we built and the environment. The **entrypoint** signifies the fully qualified name of the class which implements the Fission's `Function` interface.
Expand Down
2 changes: 1 addition & 1 deletion content/en/blog/kafka_sasl_confluent.md
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ $ go mod init github.com/kafkatest/producer

$ go mod tidy
$ cd .. && zip -j producer.zip producer/*
$ fission env create --spec --name go --image fission/go-env-1.16 --builder fission/go-builder-1.16
$ fission env create --spec --name go --image ghcr.io/fission/go-env --builder ghcr.io/fission/go-builder
$ fission package create --spec --src producer.zip --env go --name kafka-producer
$ fission fn create --spec --name kafka-producer --env go --pkg kafka-producer \
--entrypoint Handler --secret keda-kafka-secrets --configmap keda-kafka-configmap
Expand Down
2 changes: 1 addition & 1 deletion content/en/blog/serverless-nextjs-example-blog/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ Fission specs provides a declarative way to describe objects to be created in Fi
# Initialize specs directory, create specs/ directory at root of the app
fission spec init
# Create a spec for Node.js environment
fission env create --spec --name nodejs --image fission/node-env-16
fission env create --spec --name nodejs --image ghcr.io/fission/node-env
# Define package for our Next.js application with zip created above
fission package create --spec --deploy nextjs-source.zip --env nodejs --name nextjs-source
# Define function and entrypoint for our Next.js application
Expand Down
2 changes: 1 addition & 1 deletion content/en/docs/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ Hello, world!

```sh
# Add the stock Java env to your Fission deployment
$ fission environment create --name java --image fission/jvm-env --builder fission/jvm-builder --keeparchive --version 3
$ fission environment create --name java --image ghcr.io/fission/jvm-env --builder ghcr.io/fission/jvm-builder --keeparchive --version 3

# A Java function that prints "hello world"
$ mkdir -p src/main/java/io/fission/
Expand Down
8 changes: 4 additions & 4 deletions content/en/docs/installation/_index.en.md
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ You can pass `--namespace` or `-n` flag to `fission` CLI to specify the namespac

```sh
# Add the stock NodeJS env to your Fission deployment
$ fission env create --name nodejs --image fission/node-env
$ fission env create --name nodejs --image ghcr.io/fission/node-env
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[LanguageTool] reported by reviewdog 🐶
The official spelling of this programming framework is “Node.js”. (NODE_JS[3])
Suggestions: Node.js
Rule: https://community.languagetool.org/rule/show/NODE_JS?lang=en-US&subId=3
Category: COMPOUNDING


# A javascript function that prints "hello world"
$ curl -LO https://raw.githubusercontent.com/fission/examples/main/nodejs/hello.js
Expand All @@ -311,7 +311,7 @@ Hello, world!

```sh
# Add the stock Python env to your Fission deployment
$ fission env create --name python --image fission/python-env
$ fission env create --name python --image ghcr.io/fission/python-env

# A Python function that prints "hello world"
$ curl -LO https://raw.githubusercontent.com/fission/examples/main/python/hello.py
Expand All @@ -329,7 +329,7 @@ Hello, world!

```sh
# Add the stock Go env to your Fission deployment
$ fission env create --name go --image fission/go-env-1.16 --builder fission/go-builder-1.16
$ fission env create --name go --image ghcr.io/fission/go-env --builder ghcr.io/fission/go-builder

# A Go function that prints "hello world"
$ curl -LO https://raw.githubusercontent.com/fission/examples/main/go/hello-world/hello.go
Expand All @@ -351,7 +351,7 @@ Hello, world!

```sh
# Add the stock Java env to your Fission deployment
$ fission environment create --name java --image fission/jvm-env --builder fission/jvm-builder --keeparchive --version 3
$ fission environment create --name java --image ghcr.io/fission/jvm-env --builder ghcr.io/fission/jvm-builder --keeparchive --version 3

# A Java function that prints "hello world"
$ mkdir -p src/main/java/io/fission/
Expand Down
1 change: 1 addition & 0 deletions content/en/docs/releases/1.10.0.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
title: "1.10.0"
linkTitle: 1.10.0
weight: 93
draft: true
---

## Features
Expand Down
1 change: 1 addition & 0 deletions content/en/docs/releases/1.11.2.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
title: "1.11.2"
linkTitle: 1.11.2
weight: 92
draft: true
---

Fission 1.11.2 is a release full of new things and we are super excited about it.
Expand Down
1 change: 1 addition & 0 deletions content/en/docs/releases/1.12.0.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
title: "1.12.0"
linkTitle: 1.12.0
weight: 91
draft: true
---

## Features
Expand Down
1 change: 1 addition & 0 deletions content/en/docs/releases/1.13.1.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
title: "1.13.1"
linkTitle: 1.13.1
weight: 90
draft: true
---

## Features
Expand Down
1 change: 1 addition & 0 deletions content/en/docs/releases/1.14.1.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
title: "1.14.1"
linkTitle: 1.14.1
weight: 89
draft: true
---

## Features
Expand Down
1 change: 1 addition & 0 deletions content/en/docs/releases/1.4.1.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
title: "1.4.1"
linkTitle: 1.4.1
weight: 99
draft: true
---

## Quick Highlight
Expand Down
1 change: 1 addition & 0 deletions content/en/docs/releases/1.5.0.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
title: "1.5.0"
linkTitle: 1.5.0
weight: 98
draft: true
---

## Quick Highlight
Expand Down
1 change: 1 addition & 0 deletions content/en/docs/releases/1.6.0.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
title: "1.6.0"
linkTitle: 1.6.0
weight: 97
draft: true
---

## Quick Highlight
Expand Down
1 change: 1 addition & 0 deletions content/en/docs/releases/1.7.0.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
title: "1.7.0"
linkTitle: 1.7.0
weight: 96
draft: true
---

## Critical Fix
Expand Down
1 change: 1 addition & 0 deletions content/en/docs/releases/1.8.0.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
title: "1.8.0"
linkTitle: 1.8.0
weight: 95
draft: true
---

## Bug fixes
Expand Down
1 change: 1 addition & 0 deletions content/en/docs/releases/1.9.0.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
title: "1.9.0"
linkTitle: 1.9.0
weight: 94
draft: true
---

## Features
Expand Down
1 change: 1 addition & 0 deletions content/en/docs/releases/v1.15.1.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
title: "v1.15.1"
linkTitle: v1.15.1
weight: 85
draft: true
---

Please check the [1.15 release notes]({{< ref "v1.15.0.md" >}}) first before reading following notes.
Expand Down
1 change: 1 addition & 0 deletions content/en/docs/releases/v1.16.0-rc1.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
title: "v1.16.0-rc1"
linkTitle: v1.16.0-rc1
weight: 84
draft: true
---

## Features
Expand Down
1 change: 1 addition & 0 deletions content/en/docs/releases/v1.16.0-rc2.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
title: "v1.16.0-rc2"
linkTitle: v1.16.0-rc2
weight: 83
draft: true
---

## Features
Expand Down
4 changes: 2 additions & 2 deletions content/en/docs/usage/function/environments.en.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,11 @@ You can list the environments or view information of an individual environment:
```bash
$ fission env list
NAME UID IMAGE POOLSIZE MINCPU MAXCPU MINMEMORY MAXMEMORY
node ac84d62e-001f-11e8-85c9-42010aa00010 fission/node-env:0.4.0 4 40m 80m 64Mi 128Mi
node ac84d62e-001f-11e8-85c9-42010aa00010 ghcr.io/fission/node-env 4 40m 80m 64Mi 128Mi

$ fission env get --name node
NAME UID IMAGE
node ac84d62e-001f-11e8-85c9-42010aa00010 fission/node-env:0.4.0
node ac84d62e-001f-11e8-85c9-42010aa00010 ghcr.io/fission/node-env

$ kubectl get environment.fission.io -o yaml
# Full YAML of Fission environment object
Expand Down
12 changes: 6 additions & 6 deletions content/en/docs/usage/languages/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@ The following pre-built environments are currently available for use in Fission:
| NodeJS | `ghcr.io/fission/node-env` | `ghcr.io/fission/node-builder` | O | O | O |
| Python 3 | `ghcr.io/fission/python-env` | `ghcr.io/fission/python-builder` | O | O | O |
| Go | see [here]({{% ref "go.md" %}}#add-the-go-environment-to-your-cluster) for more info | | O | O | O |
| JVM (Java) | `fission/jvm-env` | `fission/jvm-builder` | O | O | O |
| Ruby | `fission/ruby-env` | `fission/ruby-builder` | O | O | O |
| JVM (Java) | `ghcr.io/fission/jvm-env` | `ghcr.io/fission/jvm-builder` | O | O | O |
| Ruby | `ghcr.io/fission/ruby-env` | `ghcr.io/fission/ruby-builder` | O | O | O |
| Binary (for executables or scripts) | `ghcr.io/fission/binary-env` | `ghcr.io/fission/binary-builder` | O | O | O |
| PHP 7 | `fission/php-env` | `fission/php-builder` | O | O | O |
| .NET 2.0 | `fission/dotnet20-env` | `fission/dotnet20-builder` | O | O | O |
| .NET | `fission/dotnet-env` | - | O | X | X |
| Perl | `fission/perl-env` | - | O | X | X |
| PHP 7 | `ghcr.io/fission/php-env` | `ghcr.io/fission/php-builder` | O | O | O |
| .NET 2.0 | `ghcr.io/fission/dotnet20-env` | `ghcr.io/fission/dotnet20-builder` | O | O | O |
| .NET | `ghcr.io/fission/dotnet-env` | - | O | X | X |
| Perl | `ghcr.io/fission/perl-env` | - | O | X | X |

{{% notice info %}}
You can get the latest info about the environments at [environment portal](/environments/).
Expand Down
8 changes: 4 additions & 4 deletions content/en/docs/usage/languages/java.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ An environment is the language-specific part of Fission.
It has a container image in which your function will run.

``` sh
fission environment create --name java --image fission/jvm-env --builder fission/jvm-builder
fission environment create --name java --image ghcr.io/fission/jvm-env --builder ghcr.io/fission/jvm-builder
```

### Write a simple function in Java
Expand Down Expand Up @@ -184,7 +184,7 @@ For JVM environment you need to pass `--keeparchive` so that the jar file built
You also need to use version 2 or higher of environment.

```sh
fission env create --name java --image fission/jvm-env --builder fission/jvm-builder --keeparchive --version 2
fission env create --name java --image ghcr.io/fission/jvm-env --builder ghcr.io/fission/jvm-builder --keeparchive --version 2
```

Next create a package with the builder environment by providing the source package.
Expand Down Expand Up @@ -285,7 +285,7 @@ You can specify CPU and memory when you create an environment as shown below.
The min and max for resources correspond to resource request and resource limits of Kubernetes pods.

``` sh
$ fission env create --name java --image fission/jvm-env --builder fission/jvm-builder --keeparchive --version 2 \
$ fission env create --name java --image ghcr.io/fission/jvm-env --builder ghcr.io/fission/jvm-builder --keeparchive --version 2 \
--mincpu 100 --maxcpu 500 --minmemory 128 --maxmemory 512
```

Expand Down Expand Up @@ -322,7 +322,7 @@ spec:
resources: {}
runtime:
functionendpointport: 0
image: fission/jvm-env
image: ghcr.io/fission/jvm-env
loadendpointpath: ""
loadendpointport: 0
container:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ Following commands will create a environment, package and function.
Verify that build for package succeeded before proceeding.

```sh
$ fission env create --name goenv --image fission/go-env --builder fission/go-builder
$ fission env create --name goenv --image ghcr.io/fission/go-env --builder ghcr.io/fission/go-builder
$ zip -qr kinesis.zip *
$ fission package create --env goenv --src kinesis.zip
Package 'kinesis-zip-cy16' created
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ $ go mod init
$ go mod tidy
$ zip -qr sqs.zip *

$ fission env create --name goenv --image fission/go-env --builder fission/go-builder
$ fission env create --name goenv --image ghcr.io/fission/go-env --builder ghcr.io/fission/go-builder
$ fission package create --env goenv --src sqs.zip
$ fission fn create --name producerfunc --env goenv --pkg sqs-zip-xpoi --entrypoint Handler
$ fission package info --name sqs-zip-xpoi
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ Following commands will create a environment, package and function.
Verify that build for package succeeded before proceeding.

```sh
$ fission env create --name goenv --image fission/go-env --builder fission/go-builder
$ fission env create --name goenv --image ghcr.io/fission/go-env --builder ghcr.io/fission/go-builder
$ zip -qr kafka.zip *
$ fission package create --env goenv --src kafka.zip
Package 'kafka-zip-tzsu' created
Expand Down