Add support of 'labs' RUNNING_ENV in cloud_platform

The labs env can be anything starting by 'labs', such as
'labs-logistics', 'labs-finance', ...

* At install, s3/swift is set as default storage
* However, unlike prod/integration, the storage is not forced to be an
object storage
* Redis is required
* When the storage is set on s3/swift, then the bucket name is mandatory
(otherwise, there is no place where to create the files...)

The redis prefix regex match is relaxed: anything starting by a project
name, then '-odoo-', then any combination of letters, digits, and dashes
is accepted (so a prefix my-project9-odoo-labs-web3 is valid).
This commit is contained in:
Guewen Baconnier
2020-01-23 12:17:29 +01:00
committed by sebalix
co-authored by sebalix
parent af82b8fde3
commit bf35de5c59
2 changed files with 38 additions and 20 deletions
@@ -31,6 +31,7 @@ class CloudPlatform(osv.osv_abstract):
configs = {
'prod': PlatformConfig(filestore=FilestoreKind.swift),
'integration': PlatformConfig(filestore=FilestoreKind.swift),
'labs': PlatformConfig(filestore=FilestoreKind.swift),
'test': PlatformConfig(filestore=FilestoreKind.db),
'dev': PlatformConfig(filestore=FilestoreKind.db),
}