Merge pull request #21 from pmsipilot/fix-entrypoint

fix: Entrypoint works with the lastest base image
This commit is contained in:
Julien BIANCHI 2017-08-13 19:16:22 +02:00 committed by GitHub
commit acc508b1d8
4 changed files with 5 additions and 4 deletions

3
.gitignore vendored
View file

@ -2,4 +2,5 @@ vendor/
docker.lock docker.lock
bin/ bin/
!bin/dcv !bin/dcv
!bin/entry_script.sh !bin/entrypoint.sh
.cache/

View file

@ -19,5 +19,5 @@ USER dcv
VOLUME /input VOLUME /input
WORKDIR /input WORKDIR /input
ENTRYPOINT ["/dcv/bin/entry_script.sh"] ENTRYPOINT ["/dcv/bin/entrypoint.sh"]
CMD ["render", "-m", "image", "-f"] CMD ["render", "-m", "image", "-f"]

View file

@ -23,7 +23,7 @@ fix-cs:
clean: clean:
rm -rf vendor/ rm -rf vendor/
docker.lock: Dockerfile vendor docker.lock: Dockerfile bin/entrypoint.sh vendor src/application.php src/functions.php
$(COMPOSER) dump-autoload --classmap-authoritative $(COMPOSER) dump-autoload --classmap-authoritative
$(DOCKER) build -t $(DCV_IMAGE_NAME) . $(DOCKER) build -t $(DCV_IMAGE_NAME) .
touch docker.lock touch docker.lock

View file

@ -6,7 +6,7 @@ CURRENT_DIR=$(dirname $0)
if [ "$1" = "render" ] if [ "$1" = "render" ]
then then
$("$CURRENT_DIR/dcv" "$@") $CURRENT_DIR/dcv "$@"
else else
exec "$@" exec "$@"
fi fi