hacker-challenge-sgx-general/docker/challenge.sh
jakubDoka 09a84a15f3 rewrite (#2)
running clippy fix
separating homepage to a file
adding summary of network security
removing the rewrite structure
removing catch unwind
adding sealing to persistence
redirectng to the upstream
fixing some startup endgecases

Co-authored-by: Jakub Doka <jakub.doka2@gmail.com>
Reviewed-on: SGX/hacker-challenge-sgx#2
2024-11-08 14:33:42 +00:00

14 lines
302 B
Bash
Executable File

#!/bin/sh
# This script is the entrypoint of the challenge container
tar -xzf challenge.tar.gz && cd challenge
if [ -z "${INIT_NODES}" ]; then
echo "The INIT_NODES environment variable is not set."
else
echo $INIT_NODES | tr ' ' '\n' > detee_challenge_nodes
fi
occlum run /bin/hacker-challenge