docker-atlassian-confluence.../pipelines-generator.py
Eugene Ivantsov ddfc0a93e0 Merged in CLIP-1847-support-jdk-17 (pull request #149)
Stop bundling Java 11 with Confluence 8.x

* Stop bundling Java 11 with Confluence 8.x

* Update the latest 7.x lts


Approved-by: Yifei Zhang
Approved-by: Minh Tran
2024-01-23 03:25:13 +00:00

44 lines
1.1 KiB
Python
Executable File

from pathlib import Path
import os
import jinja2 as j2
TEMPLATE_FILE = 'bitbucket-pipelines.yml.j2'
REPOS = ['atlassian/confluence', 'atlassian/confluence-server']
images = {
'Confluence': {
11: {
'start_version': '7.19',
'end_version': '8',
'default_release': True,
'base_image': 'eclipse-temurin:11',
'tag_suffixes': ['jdk11','ubuntu-jdk11'],
'dockerfile': 'Dockerfile',
'docker_repos': REPOS,
},
17: {
'start_version': '8',
'default_release': False,
'base_image': 'eclipse-temurin:17',
'tag_suffixes': ['jdk17','ubuntu-jdk17'],
'dockerfile': 'Dockerfile',
'docker_repos': REPOS,
}
},
}
def main():
jenv = j2.Environment(
loader=j2.FileSystemLoader('.'),
lstrip_blocks=True,
trim_blocks=True)
template = jenv.get_template(TEMPLATE_FILE)
generated_output = template.render(images=images, batches=8)
print(generated_output)
if __name__ == '__main__':
main()