feat(adding in a way to run interactive processes):

Issue: NA

- [ ] It works!
- [ ] Comments provide sufficient explanations for the next contributor
- [ ] Tests cover changes and corner cases
- [ ] Follows Quay syntax patterns and format
This commit is contained in:
Charlton Austin 2017-07-27 13:54:29 -04:00
parent 572eeca8f5
commit 72264cbdad
2 changed files with 35 additions and 1 deletions

33
quay-entrypoint.sh Executable file
View file

@ -0,0 +1,33 @@
#!/usr/bin/env bash
MODE="$1"
display_usage() {
echo "This script takes one arguments."
echo -e "\nUsage: ${0} <interactive|batch|both>\n"
}
if [[ "${MODE}" = "help" ]]
then
display_usage
exit 0
fi
case "$MODE" in
"interactive")
echo "Copying $MODE files"
cp -r ${QUAYCONF}/init/service/interactive/* /etc/service
;;
"batch")
echo "Copying $MODE files"
cp -r ${QUAYCONF}/init/service/batch/* /etc/service
;;
*)
echo "Copying all files"
cp -r ${QUAYCONF}/init/service/interactive/* /etc/service
cp -r ${QUAYCONF}/init/service/batch/* /etc/service
;;
esac
/sbin/my_init