From 95907e86dc391ce55767429fa17de63a68d7af32 Mon Sep 17 00:00:00 2001 From: Andrea Dell'Amico Date: Fri, 10 Feb 2017 18:35:58 +0100 Subject: [PATCH] d4science-ghn-cluster/group_vars/sharelatex_app/sharelatex_app.yml: Use the 'docker_container' ansible module to run the sharelatex instance. --- sharelatex/tasks/main.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sharelatex/tasks/main.yml b/sharelatex/tasks/main.yml index 7a226bef..9aac955e 100644 --- a/sharelatex/tasks/main.yml +++ b/sharelatex/tasks/main.yml @@ -21,7 +21,8 @@ when: not docker_run_as_docker_user - name: Start the Sharelatex docker container as docker user - command: docker run -v {{ sharelatex_host_data_dir }}:{{ sharelatex_container_data_dir }} -p {{ sharelatex_container_public_port }}:{{ sharelatex_container_local_port }} --name={{ sharelatex_container_name }} --env-file {{ docker_user_home }}/sharelatex/sharelatex-env.sh {{ sharelatex_docker_image }} + #command: docker run -v {{ sharelatex_host_data_dir }}:{{ sharelatex_container_data_dir }} -p {{ sharelatex_container_public_port }}:{{ sharelatex_container_local_port }} --name={{ sharelatex_container_name }} --env-file {{ docker_user_home }}/sharelatex/sharelatex-env.sh {{ sharelatex_docker_image }} + docker_container: name={{ sharelatex_container_name }} volumes:{{ sharelatex_host_data_dir }}:{{ sharelatex_container_data_dir }} published_ports={{ sharelatex_container_public_port }}:{{ sharelatex_container_local_port }} env_file={{ docker_user_home }}/sharelatex/sharelatex-env.sh {{ sharelatex_docker_image }} state=started user=docker when: docker_run_as_docker_user - name: Start the Sharelatex docker container as root