Skip to content
This repository has been archived by the owner on Nov 19, 2024. It is now read-only.

Commit

Permalink
fixed path to rancherize in the entrypoint
Browse files Browse the repository at this point in the history
  • Loading branch information
Sven Speckmaier committed Nov 27, 2017
1 parent fedb86c commit 4050f2d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,6 @@ RUN cd /opt/rancherize-package \
&& curl -sSL "https://gist.githubusercontent.com/justb81/1006b89e41e41e1c848fe91969af7a0b/raw/c12faf968e659356ec1cb53f313e7f8383836be3/getcomposer.sh" | sh \
&& COMPOSER_ALLOW_SUPERUSER=1 ./composer.phar install \
&& rm composer.phar \
&& ln -s vendor/bin/rancherize
&& ln -s /opt/rancherize/vendor/bin/rancherize /opt/rancherize/rancherize

ENTRYPOINT ["/bin/sh", "/opt/rancherize/docker-entrypoint.sh"]
4 changes: 2 additions & 2 deletions docker/docker-entrypoint.sh
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
#!/bin/sh

export PATH=$PATH:/opt/rancherize
export PATH=$PATH:/opt/rancherize/vendor/bin/

if type "$1" >/dev/null ; then
exec "$@"
exit $?
fi

exec vendor/bin/rancherize "$@"
exec rancherize "$@"

0 comments on commit 4050f2d

Please sign in to comment.