Skip to content

Commit 348bc7e

Browse files
authored
Remove latest tag and update env image URL to GHCR (#267)
* Remove latest tag. Update environments images URL to point to GHCR. Signed-off-by: Md Soharab Ansari <[email protected]> * Resolve review comment Signed-off-by: Md Soharab Ansari <[email protected]> --------- Signed-off-by: Md Soharab Ansari <[email protected]>
1 parent 4233b47 commit 348bc7e

File tree

15 files changed

+36
-44
lines changed

15 files changed

+36
-44
lines changed

content/en/blog/demystifying-fission-pool-manager.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ You can control the default pool size based on your needs. You can do so by sett
103103
For instance, the below code snippet with create a new Python environment with a poolsize of 1.
104104

105105
```bash
106-
$ fission env create --name python --version **3** --poolsize **1** --image ghcr.io/fission/python-env:latest
106+
$ fission env create --name python --version **3** --poolsize **1** --image ghcr.io/fission/python-env
107107
$ kubectl get pod -l environmentName**=**test
108108
```
109109

content/en/blog/fission-zapier-webhook/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ type: Opaque
122122
Create a Python environment
123123
124124
```bash
125-
fission environment create --name python --image ghcr.io/fission/python-env --builder ghcr.io/fission/python-builder:latest
125+
fission environment create --name python --image ghcr.io/fission/python-env --builder ghcr.io/fission/python-builder
126126
```
127127

128128
Create a zip archive as sample.zip archive by executing package.sh script

content/en/blog/fission_github_action.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ In the logs below, we can see that Fission Action applied the specs and the envi
9595
```
9696
### STARTED FissionCD 15:16:50Z
9797
98-
Pulling image: gcr.io/github-actions-images/action-runner:latest
98+
Pulling image: gcr.io/github-actions-images/action-runner
9999
latest: Pulling from github-actions-images/action-runner
100100
169185f82c45: Pulling fs layer
101101
0ccde4b6b241: Pulling fs layer

content/en/blog/how-to-use-fission-functions-with-postgresql-database/index.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -122,13 +122,13 @@ After this create a docker image and push it to your Docker hub repository.
122122
Building the docker image for our custom Python environment. *(Replace the username with your actual username on Docker Hub.)*
123123
124124
``` bash
125-
docker build -t username/python-postgres:latest --build-arg PY_BASE_IMG=3.7-alpine -f Dockerfile .
125+
docker build -t username/python-postgres --build-arg PY_BASE_IMG=3.7-alpine -f Dockerfile .
126126
```
127127
128128
Pushing the docker image to Docker Hub registry:
129129
130130
``` bash
131-
docker push username/python-postgres:latest
131+
docker push username/python-postgres
132132
```
133133
134134
#### Source Package Setup
@@ -177,7 +177,7 @@ For this voting app, we will create `python environment`, `packages`, `fission f
177177
Creating the Python environment:
178178
179179
``` bash
180-
fission env create --name pythonsrc --image username/python-postgres --builder ghcr.io/fission/python-builder:latest
180+
fission env create --name pythonsrc --image username/python-postgres --builder ghcr.io/fission/python-builder
181181
```
182182
183183
Once the environment is ready, we create two Fission packages for `backend` and `frontend`
@@ -268,7 +268,7 @@ You can open a terminal and key in the all the following commands at once.
268268
269269
``` yaml
270270
fission spec init
271-
fission env create --name pythonsrc --image python-postgres --builder ghcr.io/fission/python-builder:latest --spec
271+
fission env create --name pythonsrc --image python-postgres --builder ghcr.io/fission/python-builder --spec
272272
fission package create --name backend-pkg --sourcearchive backend.zip --env pythonsrc --buildcmd "./build.sh" --spec
273273
fission fn create --name backend --pkg backend-pkg --entrypoint "backend.main" --spec
274274
fission route create --name backend --method POST --url /castvote --function backend --spec
@@ -281,7 +281,7 @@ This will create a `specs` folder with specs for each resource that is required
281281
282282
``` bash
283283
fission spec init
284-
fission env create --name pythonsrc --image atulinfracloud/python-postgres --builder ghcr.io/fission/python-builder:latest --spec
284+
fission env create --name pythonsrc --image atulinfracloud/python-postgres --builder ghcr.io/fission/python-builder --spec
285285
fission package create --name backend-pkg --sourcearchive backend.zip --env pythonsrc --buildcmd "./build.sh" --spec
286286
fission fn create --name backend --pkg backend-pkg --entrypoint "backend.main" --spec
287287
fission route create --name backend --method POST --url /castvote --function backend --spec

content/en/blog/observability-with-opentelemetry-datadog-in-fission/index.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -179,13 +179,13 @@ It should look like this: `RUN apk add --update --no-cache gcc python3-dev build
179179
Building the docker image for our custom Python environment. *(Replace the username with your actual username on Docker Hub.)*
180180

181181
``` dockerfile
182-
docker build -t username/python-opentelemetry:latest --build-arg PY_BASE_IMG=3.7-alpine -f Dockerfile .
182+
docker build -t username/python-opentelemetry --build-arg PY_BASE_IMG=3.7-alpine -f Dockerfile .
183183
```
184184

185185
Pushing the docker image to Docker Hub registry:
186186

187187
``` dockerfile
188-
docker push username/python-opentelemetry:latest
188+
docker push username/python-opentelemetry
189189
```
190190

191191

@@ -194,7 +194,7 @@ docker push username/python-opentelemetry:latest
194194
Create Fission environment:
195195

196196
```bash
197-
fission env create --name pythonoptel --image username/python-opentelemetry --builder ghcr.io/fission/python-builder:latest
197+
fission env create --name pythonoptel --image username/python-opentelemetry --builder ghcr.io/fission/python-builder
198198
```
199199

200200
Create source package.
@@ -233,7 +233,7 @@ With this our custom Python environment is ready along with our Fission function
233233

234234
```bash
235235
fission spec init
236-
fission env create --name pythonoptel --image atulinfracloud/python-opentelemetry --builder ghcr.io/fission/python-builder:latest --spec
236+
fission env create --name pythonoptel --image atulinfracloud/python-opentelemetry --builder ghcr.io/fission/python-builder --spec
237237
fission package create --name fissionoptel-pkg --sourcearchive sample.zip --env pythonoptel --buildcmd "./build.sh" --spec
238238
fission fn create --name optel --pkg fissionoptel-pkg --entrypoint "sample.main" --spec
239239
```

content/en/blog/serverless-twitter-bot-fission/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ Deploy the secret using `kubectl apply -f secrets.yaml`
122122
Create a Python environment
123123

124124
```bash
125-
fission environment create --name python --image ghcr.io/fission/python-env --builder ghcr.io/fission/python-builder:latest
125+
fission environment create --name python --image ghcr.io/fission/python-env --builder ghcr.io/fission/python-builder
126126
```
127127

128128
Create a zip archive as sample.zip archive by executing package.sh script

content/en/blog/url-shortener-fission-mongo-db/index.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ For this voting app, we will create `python environment`, `packages`, `fission f
103103
Create a Python environment
104104

105105
```bash
106-
fission environment create --name python --image ghcr.io/fission/python-env --builder ghcr.io/fission/python-builder:latest
106+
fission environment create --name python --image ghcr.io/fission/python-env --builder ghcr.io/fission/python-builder
107107
```
108108

109109
Once the environment is ready, we create two Fission packages for `backend` and `frontend`
@@ -214,7 +214,7 @@ You can open a terminal and key in the all the following commands at once.
214214

215215
``` yaml
216216
fission spec init
217-
fission environment create --name python --image ghcr.io/fission/python-env --builder ghcr.io/fission/python-builder:latest --spec
217+
fission environment create --name python --image ghcr.io/fission/python-env --builder ghcr.io/fission/python-builder --spec
218218
fission package create --name frontend-pkg --sourcearchive frontend.zip --env python --buildcmd "./build.sh" --spec
219219
fission package create --name backend-pkg --sourcearchive backend.zip --env python --buildcmd "./build.sh" --spec
220220
fission fn create --name frontend --pkg frontend-pkg --entrypoint "app.main" --spec
@@ -227,7 +227,7 @@ This will create a `specs` folder with specs for each resource that is required
227227

228228
``` bash
229229
fission spec init
230-
fission environment create --name python --image ghcr.io/fission/python-env --builder ghcr.io/fission/python-builder:latest --spec
230+
fission environment create --name python --image ghcr.io/fission/python-env --builder ghcr.io/fission/python-builder --spec
231231
fission package create --name frontend-pkg --sourcearchive frontend.zip --env python --buildcmd "./build.sh" --spec
232232
fission package create --name backend-pkg --sourcearchive backend.zip --env python --buildcmd "./build.sh" --spec
233233
fission fn create --name frontend --pkg frontend-pkg --entrypoint "app.main" --spec

content/en/blog/websocket-sample.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ fission spec init
123123
```
124124
fission env create \
125125
--name=nodejs \
126-
--image=ghcr.io/fission/node-env:latest \
126+
--image=ghcr.io/fission/node-env \
127127
--spec
128128
```
129129

@@ -155,7 +155,7 @@ fission httptrigger create \
155155
```
156156
fission env create \
157157
--name=python \
158-
--image=ghcr.io/fission/python-env:latest \
158+
--image=ghcr.io/fission/python-env \
159159
--spec
160160
```
161161

content/en/docs/usage/function/enabling-istio-on-fission.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ $ helm install --namespace $FISSION_NAMESPACE --set enableIstio=true --name isti
4040
Let's first create the environment for nodejs function we want to create:
4141

4242
```bash
43-
$ fission env create --name nodejs --image ghcr.io/fission/node-env:latest
43+
$ fission env create --name nodejs --image ghcr.io/fission/node-env
4444
```
4545

4646
Let's create a simple function with Node.js environment and a simple hello world example below:

content/en/docs/usage/function/environments.en.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ For more details on builder and packages, check out examples in [Functions]({{%
3030

3131
```bash
3232
$ fission env create --name python \
33-
--image ghcr.io/fission/python-env:latest \
34-
--builder ghcr.io/fission/python-builder:latest
33+
--image ghcr.io/fission/python-env \
34+
--builder ghcr.io/fission/python-builder
3535
```
3636

3737
## Viewing environment information

0 commit comments

Comments
 (0)