From 86f2bb26a39bcd1261f15ce1aa75f94da6ff104b Mon Sep 17 00:00:00 2001 From: Qian Deng Date: Fri, 24 May 2019 15:17:35 +0800 Subject: [PATCH] Fix docker-compose file permmission non-root user can see the content Signed-off-by: Qian Deng --- make/photon/prepare/utils/docker_compose.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/make/photon/prepare/utils/docker_compose.py b/make/photon/prepare/utils/docker_compose.py index ffdc367b5..e4bfcd55b 100644 --- a/make/photon/prepare/utils/docker_compose.py +++ b/make/photon/prepare/utils/docker_compose.py @@ -56,4 +56,4 @@ def prepare_docker_compose(configs, with_clair, with_notary, with_chartmuseum): if log_ep_host: rendering_variables['external_log_endpoint'] = True - render_jinja(docker_compose_template_path, docker_compose_yml_path, **rendering_variables) \ No newline at end of file + render_jinja(docker_compose_template_path, docker_compose_yml_path, mode=0o644, **rendering_variables)