Skip to content

Commit 2c8459d

Browse files
authored
Merge pull request plone#1389 from plone/PLONE_BACKEND_VERSION-no-minor-version
`docker run` Plone 6 without mentioning the PATCH version
2 parents a7e2930 + f5369e2 commit 2c8459d

File tree

10 files changed

+22
-21
lines changed

10 files changed

+22
-21
lines changed

docs/conf.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,8 @@ def source_replace(app, docname, source):
295295

296296
# Dict of replacements.
297297
source_replacements = {
298-
"{PLONE_BACKEND_VERSION}": "6.0.0",
298+
"{PLONE_BACKEND_MINOR_VERSION}": "6.0",
299+
"{PLONE_BACKEND_PATCH_VERSION}": "6.0.0.1",
299300
}
300301

301302

docs/install/containers/examples/haproxy-plone-zeo.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ services:
4040
LOG_LEVEL: "info"
4141

4242
backend:
43-
image: plone/plone-backend:{PLONE_BACKEND_VERSION}
43+
image: plone/plone-backend:{PLONE_BACKEND_MINOR_VERSION}
4444
restart: always
4545
environment:
4646
ZEO_ADDRESS: zeo:8100

docs/install/containers/examples/nginx-plone.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ services:
7676
- "80:80"
7777

7878
backend:
79-
image: plone/plone-backend:{PLONE_BACKEND_VERSION}
79+
image: plone/plone-backend:{PLONE_BACKEND_MINOR_VERSION}
8080
environment:
8181
SITE: Plone
8282
TYPE: classic

docs/install/containers/examples/nginx-volto-plone-postgresql.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ services:
106106
- backend
107107

108108
backend:
109-
image: plone/plone-backend:{PLONE_BACKEND_VERSION}
109+
image: plone/plone-backend:{PLONE_BACKEND_MINOR_VERSION}
110110
environment:
111111
SITE: Plone
112112
RELSTORAGE_DSN: "dbname='plone' user='plone' host='db' password='plone'"

docs/install/containers/examples/nginx-volto-plone-zeo.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ services:
106106
- backend
107107

108108
backend:
109-
image: plone/plone-backend:{PLONE_BACKEND_VERSION}
109+
image: plone/plone-backend:{PLONE_BACKEND_MINOR_VERSION}
110110
environment:
111111
SITE: Plone
112112
ZEO_ADDRESS: db:8100

docs/install/containers/examples/nginx-volto-plone.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ services:
104104
- backend
105105

106106
backend:
107-
image: plone/plone-backend:{PLONE_BACKEND_VERSION}
107+
image: plone/plone-backend:{PLONE_BACKEND_MINOR_VERSION}
108108
environment:
109109
SITE: Plone
110110
volumes:

docs/install/containers/images/backend.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ This chapter covers Plone backend [Docker](https://www.docker.com/) images using
1818
### Simple usage
1919

2020
```shell
21-
docker run -p 8080:8080 plone/plone-backend:{PLONE_BACKEND_VERSION} start
21+
docker run -p 8080:8080 plone/plone-backend:{PLONE_BACKEND_MINOR_VERSION} start
2222
```
2323

2424
Then point your browser at `http://localhost:8080`.
@@ -62,7 +62,7 @@ Plone 6 example:
6262

6363
```shell
6464
# Makes Zope listen to port 8081 instead of the default 8080.
65-
docker run -p 8081:8081 -e LISTEN_PORT=8081 plone/plone-backend:{PLONE_BACKEND_VERSION}
65+
docker run -p 8081:8081 -e LISTEN_PORT=8081 plone/plone-backend:{PLONE_BACKEND_MINOR_VERSION}
6666
```
6767

6868
### Site creation variables
@@ -84,13 +84,13 @@ To recreate the Plone site when restarting the container, you can pass the `DELE
8484
Plone 6 example:
8585

8686
```shell
87-
docker run -p 8080:8080 -e ADDONS="eea.api.layout" -e SITE="Plone" -e PROFILES="eea.api.layout:default" plone/plone-backend:{PLONE_BACKEND_VERSION}
87+
docker run -p 8080:8080 -e ADDONS="eea.api.layout" -e SITE="Plone" -e PROFILES="eea.api.layout:default" plone/plone-backend:{PLONE_BACKEND_MINOR_VERSION}
8888
```
8989

9090
Plone 6 Classic example:
9191

9292
```shell
93-
docker run -p 8080:8080 -e ADDONS="eea.facetednavigation" -e SITE="Plone" -e TYPE="classic" -e PROFILES="eea.facetednavigation:default" plone/plone-backend:{PLONE_BACKEND_VERSION}
93+
docker run -p 8080:8080 -e ADDONS="eea.facetednavigation" -e SITE="Plone" -e TYPE="classic" -e PROFILES="eea.facetednavigation:default" plone/plone-backend:{PLONE_BACKEND_MINOR_VERSION}
9494
```
9595

9696
```{warning}
@@ -124,7 +124,7 @@ version: "3"
124124
services:
125125

126126
backend:
127-
image: plone/plone-backend:{PLONE_BACKEND_VERSION}
127+
image: plone/plone-backend:{PLONE_BACKEND_MINOR_VERSION}
128128
restart: always
129129
environment:
130130
ZEO_ADDRESS: zeo:8100
@@ -192,7 +192,7 @@ version: "3"
192192
services:
193193

194194
backend:
195-
image: plone/plone-backend:{PLONE_BACKEND_VERSION}
195+
image: plone/plone-backend:{PLONE_BACKEND_MINOR_VERSION}
196196
environment:
197197
RELSTORAGE_DSN: "dbname='plone' user='plone' host='db' password='plone'"
198198
ports:
@@ -241,7 +241,7 @@ To do so, pass the `ADDONS` environment variable with a space separated list of
241241
(see below for documentation of the supported variables):
242242

243243
```shell
244-
docker run -p 8080:8080 -e ADDONS="pas.plugins.authomatic" plone/plone-backend:{PLONE_BACKEND_VERSION} start
244+
docker run -p 8080:8080 -e ADDONS="pas.plugins.authomatic" plone/plone-backend:{PLONE_BACKEND_MINOR_VERSION} start
245245
```
246246

247247
After Plone has started, you can add your Plone site (if none exists yet) and install the added
@@ -250,7 +250,7 @@ add-ons to your site.
250250
This approach also allows you to test Plone with a specific version of one of its core components
251251

252252
```shell
253-
docker run -p 8080:8080 -e ADDONS="plone.volto==3.1.0a3" plone/plone-backend:{PLONE_BACKEND_VERSION} start
253+
docker run -p 8080:8080 -e ADDONS="plone.volto==3.1.0a3" plone/plone-backend:{PLONE_BACKEND_MINOR_VERSION} start
254254
```
255255

256256
#### Add-on variables
@@ -286,13 +286,13 @@ extend the official container images to include your desired add-ons in your own
286286
```
287287

288288
```shell
289-
docker run -p 8080:8080 -e DEVELOP="/app/src/mysite.policy" plone/plone-backend:{PLONE_BACKEND_VERSION} start
289+
docker run -p 8080:8080 -e DEVELOP="/app/src/mysite.policy" plone/plone-backend:{PLONE_BACKEND_MINOR_VERSION} start
290290
```
291291

292292
This approach also allows you to develop local packages by using a volume.
293293

294294
```shell
295-
docker run -p 8080:8080 -e DEVELOP="/app/src/mysite.policy" -v /path/to/mysite.policy:/app/src/mysite.policy plone/plone-backend:{PLONE_BACKEND_VERSION} start
295+
docker run -p 8080:8080 -e DEVELOP="/app/src/mysite.policy" -v /path/to/mysite.policy:/app/src/mysite.policy plone/plone-backend:{PLONE_BACKEND_MINOR_VERSION} start
296296
```
297297

298298
(backend-extending-from-this-image-label)=
@@ -302,7 +302,7 @@ docker run -p 8080:8080 -e DEVELOP="/app/src/mysite.policy" -v /path/to/mysite.p
302302
In a directory create a `Dockerfile` file:
303303

304304
```Dockerfile
305-
FROM plone/plone-backend:{PLONE_BACKEND_VERSION}
305+
FROM plone/plone-backend:{PLONE_BACKEND_MINOR_VERSION}
306306
307307
RUN apt-get update \
308308
&& apt-get install -y --no-install-recommends gcc \

docs/install/containers/images/frontend.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ version: "3"
100100
services:
101101

102102
backend:
103-
image: plone/plone-backend:{PLONE_BACKEND_VERSION}
103+
image: plone/plone-backend:{PLONE_BACKEND_MINOR_VERSION}
104104
# Plone 5.2 series can be used too
105105
# image: plone/plone-backend:5.2.7
106106
ports:

docs/install/containers/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ Consult [Get Docker](https://docs.docker.com/get-docker/) for details.
5959
First start the Plone Backend, naming it `plone6-backend` and creating a site with its default configuration, using the following command.
6060

6161
```shell
62-
docker run --name plone6-backend -e SITE=Plone -e CORS_ALLOW_ORIGIN='*' -d -p 8080:8080 plone/plone-backend:{PLONE_BACKEND_VERSION}
62+
docker run --name plone6-backend -e SITE=Plone -e CORS_ALLOW_ORIGIN='*' -d -p 8080:8080 plone/plone-backend:{PLONE_BACKEND_MINOR_VERSION}
6363
```
6464

6565
Now start the Plone Frontend, linking it to the `plone6-backend`:

docs/install/manage-add-ons-packages.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ If you want to check out a Plone core package for development, or want to overri
6161

6262
```
6363
# constraints.txt with unresolvable version conflict
64-
-c https://dist.plone.org/release/{PLONE_BACKEND_VERSION}/constraints.txt
64+
-c https://dist.plone.org/release/{PLONE_BACKEND_PATCH_VERSION}/constraints.txt
6565
plone.api>=2.0.0a3
6666
```
6767

@@ -106,7 +106,7 @@ zope.testrunner
106106
{file}`constraints.txt`
107107

108108
```ini
109-
-c https://dist.plone.org/release/{PLONE_BACKEND_VERSION}/constraints.txt
109+
-c https://dist.plone.org/release/{PLONE_BACKEND_PATCH_VERSION}/constraints.txt
110110
```
111111

112112
{file}`mx.ini`

0 commit comments

Comments
 (0)