mirror of
https://bitbucket.org/atlassian-docker/docker-atlassian-confluence-server.git
synced 2024-08-30 18:22:16 +00:00
36 lines
878 B
Python
Executable File
36 lines
878 B
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.4',
|
|
'end_version': '8',
|
|
'default_release': True,
|
|
'base_image': 'adoptopenjdk/openjdk11',
|
|
'tag_suffixes': ['adoptopenjdk11', 'jdk11', 'ubuntu', 'ubuntu-18.04-adoptopenjdk11'],
|
|
'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()
|