-
Notifications
You must be signed in to change notification settings - Fork 65
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add missing support_url and auto_upgrade_from fields (PR #55)
* Add more envirinment variables to override configuration (for use with docker) * Upgrade Docker to jdel/alpine:3.8, php7, composer 1.6.5, remove supervisor, change volumes to `/packages` and `/cache` * Update README with docker instructions
- Loading branch information
Showing
11 changed files
with
104 additions
and
44 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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
.git | ||
.gitignore | ||
.scrutinizer.yml | ||
.travis.yml | ||
CHANGELOG | ||
Dockerfile | ||
INSTALL.md | ||
LICENSE | ||
Makefile | ||
README.md | ||
VERSION | ||
_syno_package | ||
hooks | ||
packages | ||
phpunit.xml.dist | ||
selftest.php | ||
tests |
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 |
---|---|---|
@@ -1,24 +1,16 @@ | ||
FROM alpine:3.5 | ||
MAINTAINER Julien Del-Piccolo <[email protected]> | ||
ARG BRANCH="master" | ||
ARG COMMIT="" | ||
ENV SSPKS_BRANCH=${BRANCH} | ||
ENV SSPKS_COMMIT=${COMMIT} | ||
FROM jdel/alpine:3.8 | ||
LABEL maintainer="Julien Del-Piccolo <[email protected]>" | ||
LABEL branch=${BRANCH} | ||
LABEL commit=${COMMIT} | ||
|
||
RUN echo "BRANCH: ${BRANCH}" \ | ||
&& echo "COMMIT: ${COMMIT}" \ | ||
&& echo "TRAVIS_BRANCH: ${TRAVIS_BRANCH}" \ | ||
&& echo "TRAVIS_COMMIT: ${TRAVIS_COMMIT}" \ | ||
&& apk update && apk add --no-cache supervisor apache2 php5-apache2 php5-phar php5-ctype php5-json \ | ||
&& apk add --virtual=.build-dependencies openssl php5 php5-openssl git \ | ||
&& rm -rf /var/www/localhost/htdocs \ | ||
&& wget -O /var/www/localhost/sspks.zip https://github.com/jdel/sspks/archive/${COMMIT}.zip \ | ||
&& unzip /var/www/localhost/sspks.zip -d /var/www/localhost/ \ | ||
&& rm /var/www/localhost/sspks.zip \ | ||
&& mv /var/www/localhost/sspks-*/ /var/www/localhost/htdocs/ && cd /var/www/localhost/htdocs \ | ||
&& wget -q -O /usr/local/bin/composer https://getcomposer.org/download/1.3.1/composer.phar \ | ||
USER root | ||
|
||
COPY . /var/www/localhost/htdocs/ | ||
|
||
RUN apk update && apk add --no-cache apache2 php7-apache2 php7-phar php7-ctype php7-json \ | ||
&& apk add --virtual=.build-dependencies curl openssl php7 php7-openssl git \ | ||
&& rm -f /var/www/localhost/htdocs/index.html \ | ||
&& curl -sSL https://getcomposer.org/download/1.6.5/composer.phar -o /usr/local/bin/composer \ | ||
&& chmod +x /usr/local/bin/composer \ | ||
&& cd /var/www/localhost/htdocs \ | ||
&& composer install --no-dev \ | ||
|
@@ -27,14 +19,13 @@ RUN echo "BRANCH: ${BRANCH}" \ | |
&& rm -rf /var/cache/apk/* \ | ||
&& mkdir /run/apache2 \ | ||
&& sed -i 's/Listen 80/Listen 8080/' /etc/apache2/httpd.conf \ | ||
&& sed -i 's/^variables_order = "GPCS"/variables_order = "EGPCS"/' /etc/php5/php.ini \ | ||
&& sed -i 's/^variables_order = "GPCS"/variables_order = "EGPCS"/' /etc/php7/php.ini \ | ||
&& ln -sf /dev/stdout /var/log/apache2/access.log \ | ||
&& ln -sf /dev/stderr /var/log/apache2/error.log | ||
|
||
COPY ./docker/supervisord.conf /usr/local/etc/supervisor/ | ||
&& ln -sf /dev/stderr /var/log/apache2/error.log \ | ||
&& ln -sf /var/www/localhost/htdocs/packages /packages \ | ||
&& ln -sf /var/www/localhost/htdocs/cache /cache | ||
|
||
EXPOSE 8080 | ||
VOLUME "/var/www/localhost/htdocs/packages" | ||
VOLUME "/var/www/localhost/htdocs/cache" | ||
VOLUME "/tmp" | ||
CMD ["/usr/bin/supervisord", "-c", "/usr/local/etc/supervisor/supervisord.conf"] | ||
VOLUME "/packages" | ||
VOLUME "/cache" | ||
CMD ["/usr/sbin/httpd", "-DFOREGROUND"] |
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 |
---|---|---|
@@ -1 +1 @@ | ||
0.2b | ||
1.1.3 |
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 was deleted.
Oops, something went wrong.
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
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
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