forked from bistro-its-berkeley/BISTRO
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker_entrypoint.sh
More file actions
executable file
·26 lines (22 loc) · 897 Bytes
/
docker_entrypoint.sh
File metadata and controls
executable file
·26 lines (22 loc) · 897 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/bin/bash
##################################################################
# Init any required service(s)
##################################################################
# no-op
##################################################################
# Execute the actual simulation
# Note : The paths specified here is relative to the docker
# container. And this entrypoint is expected to be executed inside
# the docker container.
##################################################################
/competitions/bin/competitions $@
##################################################################
# Post Processing / Cleanup
##################################################################
# No-Op
echo "Post Processing / Cleanup complete"
if [ -n "${AICROWD_IS_GRADING}" ]; then
sleep 600
# Sleep for 10 minutes while waiting for the evaluator to
# do the necessary cleanup
fi