From ceaed02286cc0b1bfcd31a0bc0e12ad4bc643c4f Mon Sep 17 00:00:00 2001 From: sparklyballs Date: Sun, 30 Aug 2015 13:56:10 +0100 Subject: [PATCH] swap readme's and remove 04 TZ script, in baseimage --- README.md | 53 +++++++++++++++++++++++++++++++++++++---- READMETEMPLATE.md | 52 ---------------------------------------- init/04_set_the_time.sh | 8 ------- init/50_update_apps.sh | 2 +- 4 files changed, 50 insertions(+), 65 deletions(-) delete mode 100644 READMETEMPLATE.md delete mode 100644 init/04_set_the_time.sh diff --git a/README.md b/README.md index 8e92668..cb2d631 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,52 @@ ![http://linuxserver.io](http://www.linuxserver.io/wp-content/uploads/2015/06/linuxserver_medium.png) -## This is a Container in active development, and should not be used by the general public. -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: -[IRC](http://www.linuxserver.io/index.php/irc/) on freenode at `#linuxserver.io`. +The [LinuxServer.io](http://linuxserver.io) team brings you another quality container release featuring auto-update of dependencies on startup, easy user mapping and community support. Be sure to checkout our [forums](http://forum.linuxserver.io) or for real-time support our [IRC](http://www.linuxserver.io/index.php/irc/) on freenode at `#linuxserver.io`. -or visit our website at [http://linuxserver.io](http://linuxserver.io) +# linuxserver/piwigo + +Piwigo is a photo gallery software for the web that comes with powerful features to publish and manage your collection of pictures. +[Piwigo](http://piwigo.org/) + +## Usage + +``` +docker create --name=piwigo -v /etc/localtime:/etc/localtime:ro -v :/config -e PGID= -e PUID= -e TZ= -p 80:80 linuxserver/piwigo +``` + +**Parameters** + +* `-p 80` - webui port *see note below* +* `-v /etc/localhost` for timesync - *optional* +* `-v /config` - folder to store appdata and config file for piwigo +* `-e PGID` for GroupID - see below for explanation +* `-e PUID` for UserID - see below for explanation +* `-e TZ` for setting timezone information, eg Europe/London +It is based on phusion-baseimage with ssh removed, for shell access whilst the container is running do `docker exec -it piwigo /bin/bash`. + +### User / Group Identifiers + +**TL;DR** - The `PGID` and `PUID` values set the user / group you'd like your container to 'run as' to the host OS. This can be a user you've created or even root (not recommended). + +Part of what makes our containers work so well is by allowing you to specify your own `PUID` and `PGID`. This avoids nasty permissions errors with relation to data volumes (`-v` flags). When an application is installed on the host OS it is normally added to the common group called users, Docker apps due to the nature of the technology can't be added to this group. So we added this feature to let you easily choose when running your containers. + +## Setting up the application + +You must create a user and database for piwigo to use in a mysql/mariadb server. In the setup page for database, use the ip address rather than hostname... + +A basic apache configuration file can be found in /config/apache/site-confs , edit the file to enable ssl (port 443 by default), set servername etc.. +Self-signed keys are generated the first time you run the container and can be found in /config/keys , if needed, you can replace them with your own. + +The easiest way to edit the configuration file is to enable local files editor from the plugins page and use it to configure email settings etc.... + + +## Updates + +* To update the packages like apache etc `docker restart piwigo`. +* To update piwigo if required, update via the webui +* To monitor the logs of the container in realtime `docker logs -f piwigo`. + + + +## Versions + ++ **29.08.2015:** Initial Release. diff --git a/READMETEMPLATE.md b/READMETEMPLATE.md deleted file mode 100644 index a1764f7..0000000 --- a/READMETEMPLATE.md +++ /dev/null @@ -1,52 +0,0 @@ -![http://linuxserver.io](http://www.linuxserver.io/wp-content/uploads/2015/06/linuxserver_medium.png) - -The [LinuxServer.io](http://linuxserver.io) team brings you another quality container release featuring auto-update of dependencies on startup, easy user mapping and community support. Be sure to checkout our [forums](http://forum.linuxserver.io) or for real-time support our [IRC](http://www.linuxserver.io/index.php/irc/) on freenode at `#linuxserver.io`. - -# linuxserver/piwigo - -Piwigo is a photo gallery software for the web that comes with powerful features to publish and manage your collection of pictures. -[Piwigo](http://piwigo.org/) - -## Usage - -``` -docker create --name=piwigo -v /etc/localtime:/etc/localtime:ro -v :/config -e PGID= -e PUID= -p 80:80 linuxserver/piwigo -``` - -**Parameters** - -* `-p 80` - webui port *see note below* -* `-v /etc/localhost` for timesync - *optional* -* `-v /config` - folder to store appdata and config file for piwigo -* `-e PGID` for GroupID - see below for explanation -* `-e PUID` for UserID - see below for explanation - -It is based on phusion-baseimage with ssh removed, for shell access whilst the container is running do `docker exec -it piwigo /bin/bash`. - -### User / Group Identifiers - -**TL;DR** - The `PGID` and `PUID` values set the user / group you'd like your container to 'run as' to the host OS. This can be a user you've created or even root (not recommended). - -Part of what makes our containers work so well is by allowing you to specify your own `PUID` and `PGID`. This avoids nasty permissions errors with relation to data volumes (`-v` flags). When an application is installed on the host OS it is normally added to the common group called users, Docker apps due to the nature of the technology can't be added to this group. So we added this feature to let you easily choose when running your containers. - -## Setting up the application - -You must create a user and database for piwigo to use in a mysql/mariadb server. In the setup page for database, use the ip address rather than hostname... - -A basic apache configuration file can be found in /config/apache/site-confs , edit the file to enable ssl (port 443 by default), set servername etc.. -Self-signed keys are generated the first time you run the container and can be found in /config/keys , if needed, you can replace them with your own. - -The easiest way to edit the configuration file is to enable local files editor from the plugins page and use it to configure email settings etc.... - - -## Updates - -* To update the packages like apache etc `docker restart piwigo`. -* To update piwigo if required, update via the webui -* To monitor the logs of the container in realtime `docker logs -f piwigo`. - - - -## Versions - -+ **29.08.2015:** Initial Release. diff --git a/init/04_set_the_time.sh b/init/04_set_the_time.sh deleted file mode 100644 index a2ce9d6..0000000 --- a/init/04_set_the_time.sh +++ /dev/null @@ -1,8 +0,0 @@ -#!/bin/bash - -if [[ $(cat /etc/timezone) != $TZ ]] ; then - echo "$TZ" > /etc/timezone - dpkg-reconfigure -f noninteractive tzdata -sed -i -e "s#;date.timezone.*#date.timezone = ${TZ}#g" /etc/php5/fpm/php.ini -sed -i -e "s#;date.timezone.*#date.timezone = ${TZ}#g" /etc/php5/cli/php.ini -fi diff --git a/init/50_update_apps.sh b/init/50_update_apps.sh index 2430c81..57a78b7 100644 --- a/init/50_update_apps.sh +++ b/init/50_update_apps.sh @@ -1,4 +1,4 @@ #!/bin/bash apt-get update -qq -apt-get --only-upgrade install $APTLIST -qqy +apt-get --only-upgrade $APTLIST -qqy