Skip to content

Commit 467bae0

Browse files
committed
first commit
0 parents  commit 467bae0

6 files changed

Lines changed: 87 additions & 0 deletions

File tree

Dockerfile

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
FROM linuxserver/baseimage.apache
2+
3+
MAINTAINER Mark Burford <[email protected]>
4+
5+
# set install packages as variable
6+
ENV install_packages="curl \
7+
lynx-cur \
8+
php5-cgi \
9+
php5-gd \
10+
php5-imagick \
11+
php5-mysql \
12+
php5-xmlrpc \
13+
php5-xsl \
14+
php5-apcu \
15+
php-auth \
16+
php-auth-sasl \
17+
php-net-smtp \
18+
php-pear \
19+
unzip \
20+
wget"
21+
22+
23+
24+
# install packages
25+
RUN apt-get update && \
26+
apt-get install \
27+
$install_packages -qy && \
28+
29+
# cleanup
30+
apt-get clean -y && \
31+
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
32+
33+
# add some files
34+
ADD defaults/ /defaults/
35+
ADD init/ /etc/my_init.d/
36+
RUN chmod -v +x /etc/service/*/run /etc/my_init.d/*.sh
37+
38+
# expose ports
39+
EXPOSE 80 443
40+
41+
# set volumes
42+
VOLUME /config /pictures

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
![http://linuxserver.io](http://www.linuxserver.io/wp-content/uploads/2015/06/linuxserver_medium.png)
2+
3+
## This is a Container in active development, and should not be used by the general public.
4+
If you are curious about the current progress or want to comment\contribute to this work, feel free to join us at out irc channel:
5+
[IRC](http://www.linuxserver.io/index.php/irc/) on freenode at `#linuxserver.io`.
6+
7+
or visit our website at [http://linuxserver.io](http://linuxserver.io)

defaults/default.conf

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<VirtualHost *:80>
2+
DocumentRoot /config/www/gallery
3+
4+
<Directory /config/www/gallery/>
5+
Options Indexes FollowSymLinks MultiViews
6+
AllowOverride All
7+
Order deny,allow
8+
Allow from all
9+
</Directory>
10+
11+
</VirtualHost>
12+

init/04_set_the_time.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/bin/bash
2+
3+
if [[ $(cat /etc/timezone) != $TZ ]] ; then
4+
echo "$TZ" > /etc/timezone
5+
dpkg-reconfigure -f noninteractive tzdata
6+
sed -i -e "s#;date.timezone.*#date.timezone = ${TZ}#g" /etc/php5/fpm/php.ini
7+
sed -i -e "s#;date.timezone.*#date.timezone = ${TZ}#g" /etc/php5/cli/php.ini
8+
fi

init/50_update_apps.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/bin/bash
2+
3+
apt-get update -qq
4+
apt-get --only-upgrade install \
5+
$install_packages -qqy

init/60_set_the_site.sh

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#!/bin/bash
2+
mkdir -p /config/www/gallery
3+
if [ -f "/config/www/gallery/index.php" ]; then
4+
echo "using existing website"
5+
else
6+
echo "fetching piwigo files"
7+
wget "http://piwigo.org/download/dlcounter.php?code=latest" -O /tmp/piwigo.zip
8+
unzip -q /tmp/piwigo.zip -d /tmp
9+
mv /tmp/piwigo/* /config/www/gallery
10+
rm -rf /tmp/piwigo /tmp/piwigo.zip
11+
chown -R abc:abc /config/www/gallery
12+
fi
13+

0 commit comments

Comments
 (0)