Skip to content
Snippets Groups Projects
Commit 9ec433b5 authored by B13nch3n's avatar B13nch3n
Browse files

Finisch container

parent 31d633d4
No related branches found
No related tags found
No related merge requests found
......@@ -48,11 +48,11 @@ ARG MMCIF_USER_ID=501
RUN adduser --system -u ${MMCIF_USER_ID} mmcif
#COPY --chmod=755 docker-entrypoint.sh /
COPY --chmod=755 docker-entrypoint.sh /
USER mmcif
#ENTRYPOINT ["/docker-entrypoint.sh"]
ENTRYPOINT ["/docker-entrypoint.sh"]
# LocalWords: ARG OST ARGs ENV SRC tmp PYTHONUNBUFFERED Schwede schwedelab py
# LocalWords: PYTHONDONTWRITEBYTECODE Bioinformatics sib swiss Biozentrum ihm
......
#!/bin/bash
## (We use sh since Alpine does not have Bash by default)
## exit immediately on commands with a non-zero exit status.
set -euo pipefail
## When started without any arguments, "-h", "--help", "-help" or "help", print
## usage.
if [ $# -eq 0 ] || [ x$1 == x"-h" ] || [ x$1 == x"--help" ] ||
[ x$1 == x"-help" ] || [ x$1 == x"help" ]; then
echo " ModelCIF file formating tool."
echo "------------------------------------------"
echo "Provided by SWISS-MODEL / Schwede group"
echo "(swissmodel.expasy.org / schwedelab.org)"
echo ""
echo "This container takes a directory of "
echo "AlphaFold2 models and turns them into "
echo "ModelCIF files."
echo ""
/usr/local/bin/translate2modelcif --help
exit 1
fi
if [ x$1 == x"translate2modelcif" ] || [ x$1 == x"2cif" ]; then
echo "Let's go to the CIF site of life!"
shift
# take over the process, make translate2modelcif run on PID 1
exec /usr/local/bin/translate2modelcif $@
exit $?
fi
exec "$@"
# LocalWords: euo pipefail eq Schwede schwedelab mmcif fi
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment