-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from acseo/feature/rsync
deployer v6.6.0 + recipes
- Loading branch information
Showing
3 changed files
with
33 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,10 +2,18 @@ FROM php:7-alpine | |
|
||
LABEL maintainer "[email protected]" | ||
|
||
RUN curl -LO https://deployer.org/deployer.phar \ | ||
&& mv deployer.phar /usr/local/bin/dep \ | ||
&& chmod +x /usr/local/bin/dep | ||
RUN curl -LO https://deployer.org/releases/v6.6.0/deployer.phar \ | ||
&& mv deployer.phar /usr/local/bin/dep \ | ||
&& chmod +x /usr/local/bin/dep | ||
|
||
RUN apk --no-cache add openssh-client rsync | ||
RUN apk --no-cache add openssh-client rsync | ||
|
||
ENTRYPOINT ["/bin/sh", "-c"] | ||
ENV COMPOSER_HOME=/var/composer | ||
COPY composer-install /tmp/composer-install | ||
RUN chmod +x /tmp/composer-install | ||
RUN /tmp/composer-install && \ | ||
rm /tmp/composer-install | ||
|
||
RUN composer global require deployer/recipes --dev | ||
|
||
ENTRYPOINT ["/bin/sh", "-c"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#!/usr/bin/env sh | ||
|
||
EXPECTED_SIGNATURE=$(wget -q -O - https://composer.github.io/installer.sig) | ||
php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" | ||
ACTUAL_SIGNATURE=$(php -r "echo hash_file('SHA384', 'composer-setup.php');") | ||
|
||
if [ "$EXPECTED_SIGNATURE" != "$ACTUAL_SIGNATURE" ] | ||
then | ||
>&2 echo 'ERROR: Invalid installer signature' | ||
rm composer-setup.php | ||
exit 1 | ||
fi | ||
|
||
php composer-setup.php --quiet | ||
RESULT=$? | ||
rm composer-setup.php | ||
mv composer.phar /usr/bin/composer && chmod +x /usr/bin/composer | ||
|
||
exit ${RESULT} |