-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Christopher Perrin
committed
Feb 15, 2017
1 parent
f304460
commit 3f1a8d2
Showing
16 changed files
with
106 additions
and
87 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 |
---|---|---|
@@ -1,5 +1,7 @@ | ||
FROM php:5-apache | ||
|
||
LABEL maintainer "Christopher Perrin <[email protected]>" | ||
|
||
ENV STUDIP_VERSION=3.3.4 | ||
ENV STUDIP_DOWNLOAD_URL="https://sourceforge.net/projects/studip/files/Stud.IP/3.3/studip-3.3.4.tar.bz2" \ | ||
STUDIP_ARCHIVE_NAME="studip-$STUDIP_VERSION.tar.bz" \ | ||
|
@@ -34,14 +36,18 @@ RUN ln -s /usr/lib/x86_64-linux-gnu/libldap.so /usr/lib/libldap.so && \ | |
|
||
RUN cd /tmp && \ | ||
wget "$STUDIP_DOWNLOAD_URL" -O "$STUDIP_ARCHIVE_NAME" && \ | ||
echo "$STUDIP_ARCHIVE_HASH_SHA1 $STUDIP_ARCHIVE_NAME" | sha1sum --check && \ | ||
if [ -n "$STUDIP_ARCHIVE_HASH_SHA1" ]; then \ | ||
echo "$STUDIP_ARCHIVE_HASH_SHA1 $STUDIP_ARCHIVE_NAME" | sha1sum --check; \ | ||
fi && \ | ||
tar --extract --file "$STUDIP_ARCHIVE_NAME" && \ | ||
rm "$STUDIP_ARCHIVE_NAME" && \ | ||
mv "$STUDIP_DIR_NAME" /usr/local/studip && \ | ||
ln -s /usr/local/studip/public /var/www/html/studip | ||
mv "$STUDIP_DIR_NAME" /usr/local/studip | ||
|
||
RUN mv /usr/local/studip/config/config.inc.php.dist /usr/local/studip/config/config.inc.php && \ | ||
RUN ln -s /usr/local/studip/public /var/www/html/studip && \ | ||
mv /usr/local/studip/config/config_local.inc.php.dist /usr/local/studip/config/config_local.inc.php && \ | ||
mv /usr/local/studip/config/config.inc.php.dist /usr/local/studip/config/config.inc.php && \ | ||
chown --recursive www-data:www-data /usr/local/studip/public \ | ||
/usr/local/studip/data && \ | ||
chmod a+rwx /tmp | ||
|
||
ADD entrypoint /usr/local/bin | ||
|
@@ -53,4 +59,5 @@ ADD php.ini /usr/local/etc/php | |
ENTRYPOINT ["entrypoint"] | ||
|
||
EXPOSE 80 | ||
|
||
CMD ["apache2-foreground"] |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
FROM php:5-apache | ||
|
||
LABEL maintainer "Christopher Perrin <[email protected]>" | ||
|
||
ENV STUDIP_VERSION=3.3 | ||
ENV STUDIP_DOWNLOAD_URL="https://sourceforge.net/projects/studip/files/Stud.IP/3.3/studip-3.3.tar.bz2" \ | ||
STUDIP_ARCHIVE_NAME="studip-$STUDIP_VERSION.tar.bz" \ | ||
|
@@ -34,14 +36,18 @@ RUN ln -s /usr/lib/x86_64-linux-gnu/libldap.so /usr/lib/libldap.so && \ | |
|
||
RUN cd /tmp && \ | ||
wget "$STUDIP_DOWNLOAD_URL" -O "$STUDIP_ARCHIVE_NAME" && \ | ||
echo "$STUDIP_ARCHIVE_HASH_SHA1 $STUDIP_ARCHIVE_NAME" | sha1sum --check && \ | ||
if [ -n "$STUDIP_ARCHIVE_HASH_SHA1" ]; then \ | ||
echo "$STUDIP_ARCHIVE_HASH_SHA1 $STUDIP_ARCHIVE_NAME" | sha1sum --check; \ | ||
fi && \ | ||
tar --extract --file "$STUDIP_ARCHIVE_NAME" && \ | ||
rm "$STUDIP_ARCHIVE_NAME" && \ | ||
mv "$STUDIP_DIR_NAME" /usr/local/studip && \ | ||
ln -s /usr/local/studip/public /var/www/html/studip | ||
mv "$STUDIP_DIR_NAME" /usr/local/studip | ||
|
||
RUN mv /usr/local/studip/config/config.inc.php.dist /usr/local/studip/config/config.inc.php && \ | ||
RUN ln -s /usr/local/studip/public /var/www/html/studip && \ | ||
mv /usr/local/studip/config/config_local.inc.php.dist /usr/local/studip/config/config_local.inc.php && \ | ||
mv /usr/local/studip/config/config.inc.php.dist /usr/local/studip/config/config.inc.php && \ | ||
chown --recursive www-data:www-data /usr/local/studip/public \ | ||
/usr/local/studip/data && \ | ||
chmod a+rwx /tmp | ||
|
||
ADD entrypoint /usr/local/bin | ||
|
@@ -53,4 +59,5 @@ ADD php.ini /usr/local/etc/php | |
ENTRYPOINT ["entrypoint"] | ||
|
||
EXPOSE 80 | ||
|
||
CMD ["apache2-foreground"] |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
FROM php:5-apache | ||
|
||
LABEL maintainer "Christopher Perrin <[email protected]>" | ||
|
||
ENV STUDIP_VERSION=3.4.3 | ||
ENV STUDIP_DOWNLOAD_URL="https://sourceforge.net/projects/studip/files/Stud.IP/3.4/studip-3.4.3.tar.bz2" \ | ||
STUDIP_ARCHIVE_NAME="studip-$STUDIP_VERSION.tar.bz" \ | ||
|
@@ -34,14 +36,18 @@ RUN ln -s /usr/lib/x86_64-linux-gnu/libldap.so /usr/lib/libldap.so && \ | |
|
||
RUN cd /tmp && \ | ||
wget "$STUDIP_DOWNLOAD_URL" -O "$STUDIP_ARCHIVE_NAME" && \ | ||
echo "$STUDIP_ARCHIVE_HASH_SHA1 $STUDIP_ARCHIVE_NAME" | sha1sum --check && \ | ||
if [ -n "$STUDIP_ARCHIVE_HASH_SHA1" ]; then \ | ||
echo "$STUDIP_ARCHIVE_HASH_SHA1 $STUDIP_ARCHIVE_NAME" | sha1sum --check; \ | ||
fi && \ | ||
tar --extract --file "$STUDIP_ARCHIVE_NAME" && \ | ||
rm "$STUDIP_ARCHIVE_NAME" && \ | ||
mv "$STUDIP_DIR_NAME" /usr/local/studip && \ | ||
ln -s /usr/local/studip/public /var/www/html/studip | ||
mv "$STUDIP_DIR_NAME" /usr/local/studip | ||
|
||
RUN mv /usr/local/studip/config/config.inc.php.dist /usr/local/studip/config/config.inc.php && \ | ||
RUN ln -s /usr/local/studip/public /var/www/html/studip && \ | ||
mv /usr/local/studip/config/config_local.inc.php.dist /usr/local/studip/config/config_local.inc.php && \ | ||
mv /usr/local/studip/config/config.inc.php.dist /usr/local/studip/config/config.inc.php && \ | ||
chown --recursive www-data:www-data /usr/local/studip/public \ | ||
/usr/local/studip/data && \ | ||
chmod a+rwx /tmp | ||
|
||
ADD entrypoint /usr/local/bin | ||
|
@@ -53,4 +59,5 @@ ADD php.ini /usr/local/etc/php | |
ENTRYPOINT ["entrypoint"] | ||
|
||
EXPOSE 80 | ||
|
||
CMD ["apache2-foreground"] |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
FROM php:7-apache | ||
|
||
LABEL maintainer "Christopher Perrin <[email protected]>" | ||
|
||
ENV STUDIP_VERSION=3.5 | ||
ENV STUDIP_DOWNLOAD_URL="https://sourceforge.net/projects/studip/files/Stud.IP/3.5/studip-3.5.tar.bz2" \ | ||
STUDIP_ARCHIVE_NAME="studip-$STUDIP_VERSION.tar.bz" \ | ||
|
@@ -34,14 +36,18 @@ RUN ln -s /usr/lib/x86_64-linux-gnu/libldap.so /usr/lib/libldap.so && \ | |
|
||
RUN cd /tmp && \ | ||
wget "$STUDIP_DOWNLOAD_URL" -O "$STUDIP_ARCHIVE_NAME" && \ | ||
echo "$STUDIP_ARCHIVE_HASH_SHA1 $STUDIP_ARCHIVE_NAME" | sha1sum --check && \ | ||
if [ -n "$STUDIP_ARCHIVE_HASH_SHA1" ]; then \ | ||
echo "$STUDIP_ARCHIVE_HASH_SHA1 $STUDIP_ARCHIVE_NAME" | sha1sum --check; \ | ||
fi && \ | ||
tar --extract --file "$STUDIP_ARCHIVE_NAME" && \ | ||
rm "$STUDIP_ARCHIVE_NAME" && \ | ||
mv "$STUDIP_DIR_NAME" /usr/local/studip && \ | ||
ln -s /usr/local/studip/public /var/www/html/studip | ||
mv "$STUDIP_DIR_NAME" /usr/local/studip | ||
|
||
RUN mv /usr/local/studip/config/config.inc.php.dist /usr/local/studip/config/config.inc.php && \ | ||
RUN ln -s /usr/local/studip/public /var/www/html/studip && \ | ||
mv /usr/local/studip/config/config_local.inc.php.dist /usr/local/studip/config/config_local.inc.php && \ | ||
mv /usr/local/studip/config/config.inc.php.dist /usr/local/studip/config/config.inc.php && \ | ||
chown --recursive www-data:www-data /usr/local/studip/public \ | ||
/usr/local/studip/data && \ | ||
chmod a+rwx /tmp | ||
|
||
ADD entrypoint /usr/local/bin | ||
|
@@ -53,4 +59,5 @@ ADD php.ini /usr/local/etc/php | |
ENTRYPOINT ["entrypoint"] | ||
|
||
EXPOSE 80 | ||
|
||
CMD ["apache2-foreground"] |
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
Oops, something went wrong.