Skip to content

Commit

Permalink
entrypoint.sh host param added #210
Browse files Browse the repository at this point in the history
  • Loading branch information
antonioaltamura committed Jun 21, 2021
1 parent 145d1f8 commit 6b42feb
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
1 change: 1 addition & 0 deletions docker/iva-app/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,4 @@ COPY ./build/ /usr/local/apache2/htdocs/iva/
EXPOSE 80

CMD ["httpd-foreground"]
ENTRYPOINT ["entrypoint.sh"]
15 changes: 15 additions & 0 deletions docker/iva-app/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,18 @@ echo "total args:" $#
echo "first:" $1
echo "second:" $2
#sed -i 's/host:".*"/host: "val" /g' /usr/local/apache2/htdocs/iva/conf/conf.js


while [[ $# -gt 0 ]] ;do
case $1 in
--host=*)
echo host ${1##--host=}
echo "opencga.host = ${1##--host=};" >> /usr/local/apache2/htdocs/iva/conf/conf.js
# exit
;;
esac
shift
done

echo CMD"$@"
exec "$@"

0 comments on commit 6b42feb

Please sign in to comment.