Skip to content
Snippets Groups Projects
Commit 2c7fc444 authored by Stefano Alberto Russo's avatar Stefano Alberto Russo
Browse files

Fixed bug in handling presturtup scripts.

parent 250edebe
No related branches found
No related tags found
No related merge requests found
...@@ -35,7 +35,6 @@ prestartup_scripts_path='/prestartup' ...@@ -35,7 +35,6 @@ prestartup_scripts_path='/prestartup'
def sorted_ls(path): def sorted_ls(path):
mtime = lambda f: os.stat(os.path.join(path, f)).st_mtime mtime = lambda f: os.stat(os.path.join(path, f)).st_mtime
file_list = list(sorted(os.listdir(path), key=mtime)) file_list = list(sorted(os.listdir(path), key=mtime))
file_list.reverse()
return file_list return file_list
for item in sorted_ls(prestartup_scripts_path): for item in sorted_ls(prestartup_scripts_path):
......
...@@ -30,4 +30,5 @@ RUN cat /rosetta/.ssh/id_rsa.pub >> /home/slurmtestuser/.ssh/authorized_keys ...@@ -30,4 +30,5 @@ RUN cat /rosetta/.ssh/id_rsa.pub >> /home/slurmtestuser/.ssh/authorized_keys
RUN chown -R slurmtestuser:slurmtestuser /home/slurmtestuser RUN chown -R slurmtestuser:slurmtestuser /home/slurmtestuser
# Add prestartup # Add prestartup
COPY prestartup_slurmbase.sh /prestartup/ COPY prestartup_slurmbase.sh /prestartup/
\ No newline at end of file RUN touch -m /prestartup/prestartup_slurmbase.sh
...@@ -9,3 +9,4 @@ COPY test.sh /rosetta ...@@ -9,3 +9,4 @@ COPY test.sh /rosetta
# Add prestartup # Add prestartup
COPY prestartup_slurmclustermaster.sh /prestartup/ COPY prestartup_slurmclustermaster.sh /prestartup/
RUN touch -m /prestartup/prestartup_slurmclustermaster.sh
...@@ -78,6 +78,7 @@ COPY supervisord_dregistrytunnel.conf /etc/supervisor/conf.d/ ...@@ -78,6 +78,7 @@ COPY supervisord_dregistrytunnel.conf /etc/supervisor/conf.d/
#------------------------------ #------------------------------
COPY prestartup_webapp.sh /prestartup/ COPY prestartup_webapp.sh /prestartup/
RUN touch -m /prestartup/prestartup_webapp.sh
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment