From 6d8b7751f2f236a3aaa4f63d997e6cbcb4384ccf Mon Sep 17 00:00:00 2001 From: Anthony David Date: Sun, 4 Jan 2015 14:17:29 +1100 Subject: [PATCH] Set a member of @allhosts group to this host to allow job submission --- Dockerfile | 2 ++ sge_hostgrp.conf | 2 ++ 2 files changed, 4 insertions(+) create mode 100644 sge_hostgrp.conf diff --git a/Dockerfile b/Dockerfile index 9a0e7ae..30d348c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -41,6 +41,7 @@ ADD sge_auto_install.conf /root/sge_auto_install.conf ADD docker_sge_init.sh /etc/my_init.d/01_docker_sge_init.sh ADD sge_exec_host.conf /root/sge_exec_host.conf ADD sge_queue.conf /root/sge_queue.conf +ADD sge_hostgrp.conf /root/sge_hostgrp.conf RUN chmod ug+x /etc/my_init.d/01_docker_sge_init.sh # change to home directory @@ -93,6 +94,7 @@ RUN echo Y | ./scripts/distinst -local -allall -libs -noexit WORKDIR $SGE_ROOT RUN ./inst_sge -m -x -s -auto ~/sge_auto_install.conf \ && /etc/my_init.d/01_docker_sge_init.sh && sed -i "s/HOSTNAME/`hostname`/" $HOME/sge_exec_host.conf \ +&& sed -i "s/HOSTNAME/`hostname`/" $HOME/sge_hostgrp.conf\ && /opt/sge/bin/lx-amd64/qconf -au sgeadmin arusers \ && /opt/sge/bin/lx-amd64/qconf -Me $HOME/sge_exec_host.conf \ && /opt/sge/bin/lx-amd64/qconf -Aq $HOME/sge_queue.conf diff --git a/sge_hostgrp.conf b/sge_hostgrp.conf new file mode 100644 index 0000000..0766b69 --- /dev/null +++ b/sge_hostgrp.conf @@ -0,0 +1,2 @@ +group_name @allhosts +hostlist HOSTNAME