Sign inSign up

plone/plone

By plone

•Updated about 1 month ago

Container images for legacy versions of the Plone CMS

Image
Content management system
6

50K+

plone/plone repository overview

⚠️ WARNING: These images are no longer supported. They are preserved for historical reference only. Plone 4.x and 5.x have both reached end of life, the images receive no security or dependency updates, and they are no longer part of the Docker Official Images⁠ programme. Do not run them in production or expose them to an untrusted network.

They remain useful for content extraction, migration rehearsal and archaeology. For a supported Plone, use Plone 6: plone-backend⁠, plone-frontend⁠ and plone-zeo⁠. See the release schedule⁠.

⁠Plone

Plone⁠ is a free and open source content management system built on top of the Zope application server.

⁠Features

  • Images for Plone 5.x and Plone 4.x, plus a legacy/ matrix reaching back to Plone 1.0
  • Images for Plone 6 are available at https://github.com/plone/container-backend⁠
  • Enable add-ons via environment variables
  • Built-in RelStorage support, configurable via environment variables (requires Plone 5.2+)
  • Built-in LDAP/AD support via pas.plugins.ldap (requires Plone 5.1+)

NOTE: Python 2 based Docker images are no longer supported by the Docker Official Images⁠
If you need Python 2, you can use plone/plone:5-python2 instead of plone:5-python2.

⁠Images

Newest to oldest. For the 4.3 - 5.2 series only the latest point release is listed; earlier point releases remain in the repository and on Docker Hub.

PlonePythonVariantBuilt fromPublished tags
5.2.143.8Debian5.2/5.2.14/debian/Dockerfile⁠latest, 5, 5.2, 5.2.14, python38, 5-python38, 5.2-python38, 5.2.14-python38, 5.2-demo, 5.2.14-demo
5.2.143.8Alpine5.2/5.2.14/alpine/Dockerfile⁠not published
5.2.143.7Debian5.2/5.2.14/python37/Dockerfile⁠not published
5.2.142.7Debian5.2/5.2.14/python2/Dockerfile⁠not published
5.1.62.7Debian5.1/5.1.6/debian/Dockerfile⁠5.1, 5.1.6, 5.1-demo, 5.1.6-demo
5.1.62.7Alpine5.1/5.1.6/alpine/Dockerfile⁠5.1-alpine, 5.1.6-alpine
5.0.82.7Debian5.0/5.0.8/debian/Dockerfile⁠5.0, 5.0.8, 5.0-demo, 5.0.8-demo
5.0.82.7Alpine5.0/5.0.8/alpine/Dockerfile⁠not published
4.3.192.7Debian4.3/4.3.19/debian/Dockerfile⁠4, 4.3, 4.3.19, 4.3-demo, 4.3.19-demo
4.3.192.7Alpine4.3/4.3.19/alpine/Dockerfile⁠4-alpine, 4.3-alpine, 4.3.19-alpine
4.2.62.7.18Debian (legacy)legacy/4.2/Dockerfile⁠4.2, 4.2.6, 4.2-demo, 4.2.6-demo
4.1.62.6.9Debian (legacy)legacy/4.1/Dockerfile⁠4.1, 4.1.6, 4.1-demo, 4.1.6-demo
4.0.92.6.9Debian (legacy)legacy/4.0/Dockerfile⁠4.0, 4.0.9, 4.0-demo, 4.0.9-demo
3.3.62.4.6Debian (legacy)legacy/3.3/Dockerfile⁠3.3, 3.3.6, 3.3-demo, 3.3.6-demo
3.2.32.4.6Debian (legacy)legacy/3.2/Dockerfile⁠3.2, 3.2.3, 3.2-demo, 3.2.3-demo
3.1.72.4.6Debian (legacy)legacy/3.1/Dockerfile⁠3.1, 3.1.7, 3.1-demo, 3.1.7-demo
3.0.52.4.6Debian (legacy)legacy/3.0/Dockerfile⁠3.0, 3.0.5, 3.0-demo, 3.0.5-demo
2.5.4-22.4.6Debian (legacy)legacy/2.5/Dockerfile⁠2.5, 2.5.4-2, 2.5-demo, 2.5.4-2-demo
2.1.42.4.6Debian (legacy)legacy/2.1/Dockerfile⁠2.1, 2.1.4, 2.1-demo, 2.1.4-demo
2.0.52.3.7Debian (legacy)legacy/2.0/Dockerfile⁠2.0, 2.0.5, 2.0-demo, 2.0.5-demo
1.0.62.3.7Debian (legacy)legacy/1.0/Dockerfile⁠1.0, 1.0.6, 1.0-demo, 1.0.6-demo
⁠Where the tags live

The two halves of the table publish to different places, and the tag names alone do not say which:

RowsRegistryPull with
4.3 - 5.2the official plone imagedocker pull plone:5.2.14
5.2.14 (Debian)also plone/plone and GHCRdocker pull plone/plone:5.2.14
docker pull ghcr.io/plone/plone.docker:5.2.14
4.3 - 5.2 -demoplone/plone and GHCR onlydocker pull plone/plone:5.2-demo
docker pull ghcr.io/plone/plone.docker:5.2-demo
legacy/plone/plone and GHCRdocker pull plone/plone:4.2
docker pull ghcr.io/plone/plone.docker:4.2

The 5.2.14 tags on plone/plone and GHCR are copies of the official image, made by digest rather than rebuilt: plone/plone:5.2.14 is plone:5.2.14. The tags copied, and the digests they are pinned to, are listed in mirror/official-tags.txt⁠; the mirror official⁠ workflow publishes them.

plone/plone's other 4.3 - 5.2 tags come from an earlier mirror, last pushed in March 2021, and lag behind the official image. For any other 4.3 - 5.2 tag, prefer plone:<tag>.

Each legacy series publishes four tags — the full version and the series, each with a -demo counterpart that ships a Plone site already created. The 4.3 - 5.2 series have the same -demo counterparts, built on the official images; see demo/⁠.

The 4.3 - 5.2 images take Python from an upstream python:* base image. The legacy/ images build the interpreter from source, because no usable base image exists for Python 2.3 - 2.7 of that vintage.

Floating tags such as 5.2-alpine, 5.2-python2 and 5.2-python37 exist on the official image but point at earlier point releases than 5.2.14 — the 5.2.14 roll published only the Python 3.8 variant.

⁠Legacy images (Plone 1.0 - 4.2)

Images for Plone releases older than 4.3 live under legacy/⁠ and are built separately. They are intended for content extraction, migration rehearsal and archaeology only — these stacks have known, unpatched security issues and must never be exposed.

Each series also ships a -demo variant with a Plone site already created, and carries an upgrade command so a database can be walked up one version at a time. See legacy/README.md⁠.

⁠Prerequisites

Make sure you have Docker installed and running for your platform. You can download Docker from https://www.docker.com⁠.

⁠Usage

Choose either single Plone instance or ZEO cluster.

NOTE: It is inadvisable to use following configurations for production.

⁠Standalone Plone instance

Plone standalone instances are best suited for testing Plone and development.

Download and start the latest Plone 5 container, based on Debian⁠.

docker run -p 8080:8080 plone

This image includes EXPOSE 8080 (the Plone port), standard container linking will make it automatically available to the linked containers.

You can add a Plone Site at http://localhost:8080⁠ - default Zope user and password are admin/admin.

By using the tags listed above a Plone container with a different version can be downloaded and started.

The following command starts a Plone 4.3 container, based on Alpine⁠.

docker run -p 8080:8080 plone:4.3-alpine
⁠Plone as ZEO cluster

ZEO cluster are best suited for production setups, you will need a loadbalancer.

Start ZEO server in the background

docker run -d --name=zeo plone zeo

Start 2 Plone clients (also in the background)

docker run -d --name=instance1 --link=zeo -e ZEO_ADDRESS=zeo:8080 -p 8081:8080 plone
docker run -d --name=instance2 --link=zeo -e ZEO_ADDRESS=zeo:8080 -p 8082:8080 plone
⁠Start Plone in debug mode

You can also start Plone in debug mode (fg) by running

docker run -p 8080:8080 plone fg

Debug mode may be used with ZEO

docker run --link=zeo -e ZEO_ADDRESS=zeo:8080 -p 8080:8080 plone fg

For more information on how to extend this image with your own custom settings, adding more add-ons, building it or mounting volumes, please refer to our documentation⁠.

⁠Supported environment variables

The Plone image uses several environment variable that allow to specify a more specific setup.

⁠For basic usage
  • ADDONS - Customize Plone via Plone add-ons using this environment variable
  • ZEO_ADDRESS - This environment variable allows you to run Plone image as a ZEO client.
  • SITE - Add Plone with this id to Data.fs on first run. If NOT provided, you'll have to manually add a Plone Site via web UI
  • VERSIONS - Use specific versions of Plone Add-on or python libraries

Run Plone and install two addons (eea.facetednavigation⁠ and collective.easyform⁠).

docker run -p 8080:8080 -e SITE="mysite" -e ADDONS="eea.facetednavigation collective.easyform" plone

To use specific add-ons versions:

 -e ADDONS="eea.facetednavigation collective.easyform" -e VERSIONS="eea.facetednavigation=13.3 collective.easyform=2.1.0"

RestAPI:

docker run -p 8080:8080 -e SITE=plone plone

curl -H 'Accept: application/json' http://localhost:8080/plone
⁠For advanced usage

Plone:

  • PLONE_ADDONS, ADDONS - Customize Plone via Plone add-ons using this environment variable
  • PLONE_SITE, SITE - Add Plone with this id to Data.fs on first run. If NOT provided, you'll have to manually add a Plone Site via web UI
  • PLONE_VERSIONS, VERSIONS - Use specific versions of Plone Add-on or python libraries
  • PLONE_PROFILES, PROFILES - GenericSetup profiles to include when SITE environment provided.
  • PLONE_ZCML, ZCML - Include custom Plone add-ons ZCML files
  • PLONE_DEVELOP, DEVELOP - Develop new or existing Plone add-ons
  • BUILDOUT_EXTENDS - Add configuration files that buildout should extend
  • FIND_LINKS - Add custom find-links to the buildout configuration
  • SOURCES - Add custom sources to the buildout configuration

To add custom sources, the SOURCES env var needs to be a string containing a comma-separated list of sources. This is different from the other environment variables described above, which are space-separated.

For example:

 -e SOURCES="plone.restapi = git https://github.com/plone/plone.restapi,plone.staticresources = git https://github.com/plone/plone.staticresources"

ZEO:

  • ZEO_ADDRESS - This environment variable allows you to run Plone image as a ZEO client.
  • ZEO_READ_ONLY - Run Plone as a read-only ZEO client. Defaults to off.
  • ZEO_CLIENT_READ_ONLY_FALLBACK - A flag indicating whether a read-only remote storage should be acceptable as a fallback when no writable storages are available. Defaults to false.
  • ZEO_SHARED_BLOB_DIR - Set this to on if the ZEO server and the instance have access to the same directory. Defaults to off.
  • ZEO_STORAGE - Set the storage number of the ZEO storage. Defaults to 1.
  • ZEO_CLIENT_CACHE_SIZE - Set the size of the ZEO client cache. Defaults to 128MB.
  • ZEO_PACK_KEEP_OLD - Can be set to false to disable the creation of *.fs.old files before the pack is run. Defaults to true.

CORS:

  • CORS_ALLOW_ORIGIN - Origins that are allowed access to the resource. Either a comma separated list of origins, for example http://example.net,http://mydomain.com or *. Defaults to http://localhost:3000,http://127.0.0.1:3000
  • CORS_ALLOW_METHODS - A comma separated list of HTTP method names that are allowed by this CORS policy, for example DELETE,GET,OPTIONS,PATCH,POST,PUT. Defaults to DELETE,GET,OPTIONS,PATCH,POST,PUT
  • CORS_ALLOW_CREDENTIALS - Indicates whether the resource supports user credentials in the request. Defaults to true
  • CORS_EXPOSE_HEADERS - A comma separated list of response headers clients can access, for example Content-Length,X-My-Header. Defaults to Content-Length,X-My-Header
  • CORS_ALLOW_HEADERS - A comma separated list of request headers allowed to be sent by the client, for example X-My-Header. Defaults to Accept,Authorization,Content-Type,X-Custom-Header
  • CORS_MAX_AGE - Indicates how long the results of a preflight request can be cached. Defaults to 3600

RELSTORAGE:

  • RELSTORAGE_ADAPTER_OPTIONS - A comma separated list of RelStorage adapter options to set for the plone instance (using plone.recipe.zope2instance⁠). This is required in order to use RelStorage.

All other available environment variables match exactly with RelStorage settings, according to the following table and the settings specification available on the docs⁠.

Environment variableRelStorage optionDefault value
RELSTORAGE_NAMEnameNone
RELSTORAGE_READ_ONLYread-onlyNone
RELSTORAGE_KEEP_HISTORYkeep-historyNone
RELSTORAGE_COMMIT_LOCK_TIMEOUTcommit-lock-timeoutNone
RELSTORAGE_COMMIT_LOCK_IDcommit-lock-idNone
RELSTORAGE_CREATE_SCHEMAcreate-schemaNone
RELSTORAGE_BLOB_DIRblob-dir/plone/instance/var/blobstorage
RELSTORAGE_SHARED_BLOB_DIRshared-blob-dirNone
RELSTORAGE_BLOB_CACHE_SIZEblob-cache-sizeNone
RELSTORAGE_BLOB_CACHE_SIZE_CHECKblob-cache-size-checkNone
RELSTORAGE_BLOB_CACHE_SIZE_CHECK_EXTERNALblob-cache-size-check-externalNone
RELSTORAGE_BLOB_CHUNK_SIZEblob-chunk-sizeNone
RELSTORAGE_REPLICA_CONFreplica-confNone
RELSTORAGE_RO_REPLICA_CONFro-replica-confNone
RELSTORAGE_REPLICA_TIMEOUTreplica-timeoutNone
RELSTORAGE_REVERT_WHEN_STALErevert-when-staleNone
RELSTORAGE_PACK_GCpack-gcNone
RELSTORAGE_PACK_PREPACK_ONLYpack-prepack-onlyNone
RELSTORAGE_PACK_SKIP_PREPACKpack-skip-prepackNone
RELSTORAGE_PACK_BATCH_TIMEOUTpack-batch-timeoutNone
RELSTORAGE_PACK_COMMIT_BUSY_DELAYpack-commit-busy-delayNone
RELSTORAGE_CACHE_PREFIXcache-prefixNone
RELSTORAGE_CACHE_LOCAL_MBcache-local-mbNone
RELSTORAGE_CACHE_LOCAL_OBJECT_MAXcache-local-object-maxNone
RELSTORAGE_CACHE_LOCAL_COMPRESSIONcache-local-compressioneNone
RELSTORAGE_CACHE_DELTA_SIZE_LIMITcache-delta-size-limitNone
RELSTORAGE_CACHE_LOCAL_DIRcache-local-dirNone

⁠Documentation

Full documentation for end users can be found online at docs.plone.org⁠.

⁠Contribute

⁠Support

If you are having issues, please let us know at https://community.plone.org⁠

⁠License

The project is licensed under the GPLv2.

Tag summary

Content type

Image

Digest

sha256:7f6383aa9…

Size

103.2 MB

Last updated

about 1 month ago

docker pull plone/plone:4.1-demo