mirror of
https://bitbucket.org/atlassian-docker/docker-atlassian-confluence-server.git
synced 2024-08-30 18:22:16 +00:00
21 lines
824 B
Python
Executable File
21 lines
824 B
Python
Executable File
#!/usr/bin/python3 -B
|
|
|
|
from entrypoint_helpers import env, gen_cfg, str2bool, exec_app
|
|
|
|
|
|
RUN_USER = env['run_user']
|
|
RUN_GROUP = env['run_group']
|
|
CONFLUENCE_INSTALL_DIR = env['confluence_install_dir']
|
|
CONFLUENCE_HOME = env['confluence_home']
|
|
|
|
gen_cfg('server.xml.j2', f'{CONFLUENCE_INSTALL_DIR}/conf/server.xml')
|
|
gen_cfg('seraph-config.xml.j2',
|
|
f'{CONFLUENCE_INSTALL_DIR}/confluence/WEB-INF/classes/seraph-config.xml')
|
|
gen_cfg('confluence-init.properties.j2',
|
|
f'{CONFLUENCE_INSTALL_DIR}/confluence/WEB-INF/classes/confluence-init.properties')
|
|
gen_cfg('confluence.cfg.xml.j2', f'{CONFLUENCE_HOME}/confluence.cfg.xml',
|
|
user=RUN_USER, group=RUN_GROUP, overwrite=False)
|
|
|
|
exec_app([f'{CONFLUENCE_INSTALL_DIR}/bin/start-confluence.sh', '-fg'], CONFLUENCE_HOME,
|
|
name='Confluence', env_cleanup=True)
|