diff --git a/services/base/prestartup.py b/services/base/prestartup.py index 1bcfd455887481aad1d51e5fb0d7a676bf03df96..78edb3f99b584311463c0ec6a3761de15d8540e5 100644 --- a/services/base/prestartup.py +++ b/services/base/prestartup.py @@ -35,7 +35,6 @@ prestartup_scripts_path='/prestartup' def sorted_ls(path): mtime = lambda f: os.stat(os.path.join(path, f)).st_mtime file_list = list(sorted(os.listdir(path), key=mtime)) - file_list.reverse() return file_list for item in sorted_ls(prestartup_scripts_path): diff --git a/services/slurmbase/Dockerfile b/services/slurmbase/Dockerfile index 16126b744192172a9bb2611f9db8b06069741835..c50920071024f7d6bcb2b043a990ceca7d14bbd8 100755 --- a/services/slurmbase/Dockerfile +++ b/services/slurmbase/Dockerfile @@ -30,4 +30,5 @@ RUN cat /rosetta/.ssh/id_rsa.pub >> /home/slurmtestuser/.ssh/authorized_keys RUN chown -R slurmtestuser:slurmtestuser /home/slurmtestuser # Add prestartup -COPY prestartup_slurmbase.sh /prestartup/ \ No newline at end of file +COPY prestartup_slurmbase.sh /prestartup/ +RUN touch -m /prestartup/prestartup_slurmbase.sh diff --git a/services/slurmclustermaster/Dockerfile b/services/slurmclustermaster/Dockerfile index 9bdae9ec8e3188915d26ec08e790507d7e02c6ed..7c0ddfeb798eae64659571f365347d6c6cbf34c4 100755 --- a/services/slurmclustermaster/Dockerfile +++ b/services/slurmclustermaster/Dockerfile @@ -9,3 +9,4 @@ COPY test.sh /rosetta # Add prestartup COPY prestartup_slurmclustermaster.sh /prestartup/ +RUN touch -m /prestartup/prestartup_slurmclustermaster.sh diff --git a/services/webapp/Dockerfile b/services/webapp/Dockerfile index dd5d1a1ab9585d9ea3a7e96806bcdb4951da7019..dff25b267f18fb1a0eebfa665c503516430d73e2 100644 --- a/services/webapp/Dockerfile +++ b/services/webapp/Dockerfile @@ -78,6 +78,7 @@ COPY supervisord_dregistrytunnel.conf /etc/supervisor/conf.d/ #------------------------------ COPY prestartup_webapp.sh /prestartup/ +RUN touch -m /prestartup/prestartup_webapp.sh