-
Notifications
You must be signed in to change notification settings - Fork 192
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Docker: Add folders that automatically run scripts before/after daemo…
…n start (#6170) In order to simplify the implementation of using the `aiida-core` image as the base for customized images, the `run-before-daemon-start` and `run-after-daemon-start` script folders are created. Any executables in these two folders will be executed before and after the AiiDA daemon is started in the container, respectively. The standard linux `run-parts` tool is used to scan these folders for files, which are run in the lexical sort order of their names, according to the C/POSIX locale character collation rules
- Loading branch information
Showing
14 changed files
with
18 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
Empty file.
Empty file.
1 change: 1 addition & 0 deletions
1
.docker/aiida-core-base/s6-assets/s6-rc.d/run-after-daemon-start/timeout-up
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
0 |
1 change: 1 addition & 0 deletions
1
.docker/aiida-core-base/s6-assets/s6-rc.d/run-after-daemon-start/type
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
oneshot |
6 changes: 6 additions & 0 deletions
6
.docker/aiida-core-base/s6-assets/s6-rc.d/run-after-daemon-start/up
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#!/command/execlineb -P | ||
|
||
with-contenv | ||
|
||
foreground { s6-echo "Calling /etc/init/run-after-daemon-start" } | ||
run-parts --regex=".*" /etc/init/run-after-daemon-start/ |
Empty file.
Empty file.
1 change: 1 addition & 0 deletions
1
.docker/aiida-core-base/s6-assets/s6-rc.d/run-before-daemon-start/timeout-up
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
0 |
1 change: 1 addition & 0 deletions
1
.docker/aiida-core-base/s6-assets/s6-rc.d/run-before-daemon-start/type
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
oneshot |
6 changes: 6 additions & 0 deletions
6
.docker/aiida-core-base/s6-assets/s6-rc.d/run-before-daemon-start/up
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#!/command/execlineb -P | ||
|
||
with-contenv | ||
|
||
foreground { s6-echo "Calling /etc/init/run-before-daemon-start" } | ||
run-parts --regex=".*" /etc/init/run-before-daemon-start/ |
Empty file.
Empty file.