Skip to content

Commit ae3db38

Browse files
authored
Merge pull request #4 from linuxserver/microbadger
Microbadger
2 parents b19cbbf + 88e8ff9 commit ae3db38

3 files changed

Lines changed: 71 additions & 10 deletions

File tree

Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ FROM linuxserver/baseimage.apache
22

33
MAINTAINER sparklyballs <[email protected]>
44

5+
# copy sources.list
6+
COPY sources.list /etc/apt/
7+
58
# set install packages as variable
69
ENV APTLIST="curl \
710
lynx-cur \

README.md

Lines changed: 32 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,40 @@
1-
![https://linuxserver.io](http://www.linuxserver.io/wp-content/uploads/2015/06/linuxserver_medium.png)
1+
[linuxserverurl]: https://linuxserver.io
2+
[forumurl]: https://forum.linuxserver.io
3+
[ircurl]: https://www.linuxserver.io/index.php/irc/
4+
[podcasturl]: https://www.linuxserver.io/index.php/category/podcast/
25

3-
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`.
6+
[![linuxserver.io](https://www.linuxserver.io/wp-content/uploads/2015/06/linuxserver_medium.png)][linuxserverurl]
7+
8+
The [LinuxServer.io][linuxserverurl] team brings you another container release featuring easy user mapping and community support. Find us for support at:
9+
* [forum.linuxserver.io][forumurl]
10+
* [IRC][ircurl] on freenode at `#linuxserver.io`
11+
* [Podcast][podcasturl] covers everything to do with getting the most from your Linux Server plus a focus on all things Docker and containerisation!
412

513
# linuxserver/piwigo
14+
[![](https://images.microbadger.com/badges/image/linuxserver/piwigo.svg)](http://microbadger.com/images/linuxserver/piwigo "Get your own image badge on microbadger.com")[![Docker Pulls](https://img.shields.io/docker/pulls/linuxserver/piwigo.svg)][hub][![Docker Stars](https://img.shields.io/docker/stars/linuxserver/piwigo.svg)][hub][![Build Status](http://jenkins.linuxserver.io:8080/buildStatus/icon?job=Dockers/LinuxServer.io/linuxserver-piwigo)](http://jenkins.linuxserver.io:8080/job/Dockers/job/LinuxServer.io/job/linuxserver-piwigo/)
15+
[hub]: https://hub.docker.com/r/linuxserver/piwigo/
616

717
Piwigo is a photo gallery software for the web that comes with powerful features to publish and manage your collection of pictures.
8-
[Piwigo](http://piwigo.org/)
918

19+
[![nginx](https://raw.githubusercontent.com/linuxserver/docker-templates/master/linuxserver.io/img/piwigo-banner.png)][piwigourl]
20+
[piwigourl]: http://piwigo.org/
1021
## Usage
1122

1223
```
13-
docker create --name=piwigo -v /etc/localtime:/etc/localtime:ro -v <path to data>:/config -e PGID=<gid> -e PUID=<uid> -e TZ=<timezone> -p 80:80 linuxserver/piwigo
24+
docker create \
25+
--name=piwigo \
26+
-v /etc/localtime:/etc/localtime:ro \
27+
-v <path to data>:/config \
28+
-e PGID=<gid> -e PUID=<uid> \
29+
-e TZ=<timezone>
30+
-p 80:80 \
31+
linuxserver/piwigo
1432
```
1533

1634
**Parameters**
1735

1836
* `-p 80` - webui port *see note below*
19-
* `-v /etc/localhost` for timesync - *optional*
37+
* `-v /etc/localtime` for timesync - *optional*
2038
* `-v /config` - folder to store appdata and config file for piwigo
2139
* `-e PGID` for GroupID - see below for explanation
2240
* `-e PUID` for UserID - see below for explanation
@@ -26,9 +44,14 @@ It is based on phusion-baseimage with ssh removed, for shell access whilst the c
2644

2745
### User / Group Identifiers
2846

29-
**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).
47+
Sometimes when using data volumes (`-v` flags) permissions issues can arise between the host OS and the container. We avoid this issue by allowing you to specify the user `PUID` and group `PGID`. Ensure the data volume directory on the host is owned by the same user you specify and it will "just work" ™.
48+
49+
In this instance `PUID=1001` and `PGID=1001`. To find yours use `id user` as below:
3050

31-
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.
51+
```
52+
$ id <dockeruser>
53+
uid=1001(dockeruser) gid=1001(dockergroup) groups=1001(dockergroup)
54+
```
3255

3356
## Setting up the application
3457

@@ -46,8 +69,7 @@ The easiest way to edit the configuration file is to enable local files editor f
4669
* To update piwigo if required, update via the webui
4770
* To monitor the logs of the container in realtime `docker logs -f piwigo`.
4871

49-
50-
5172
## Versions
5273

53-
+ **29.08.2015:** Initial Release.
74+
+ **10.09.16:** Add layer badges to README.
75+
+ **29.08.15:** Initial Release.

sources.list

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
2+
# newer versions of the distribution.
3+
4+
deb http://archive.ubuntu.com/ubuntu/ trusty main restricted
5+
deb-src http://archive.ubuntu.com/ubuntu/ trusty main restricted
6+
7+
## Major bug fix updates produced after the final release of the
8+
## distribution.
9+
deb http://archive.ubuntu.com/ubuntu/ trusty-updates main restricted
10+
deb-src http://archive.ubuntu.com/ubuntu/ trusty-updates main restricted
11+
12+
## Uncomment the following two lines to add software from the 'universe'
13+
## repository.
14+
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
15+
## team. Also, please note that software in universe WILL NOT receive any
16+
## review or updates from the Ubuntu security team.
17+
deb http://archive.ubuntu.com/ubuntu/ trusty universe multiverse
18+
deb-src http://archive.ubuntu.com/ubuntu/ trusty universe multiverse
19+
deb http://archive.ubuntu.com/ubuntu/ trusty-updates universe multiverse
20+
deb-src http://archive.ubuntu.com/ubuntu/ trusty-updates universe multiverse
21+
22+
## N.B. software from this repository may not have been tested as
23+
## extensively as that contained in the main release, although it includes
24+
## newer versions of some applications which may provide useful features.
25+
## Also, please note that software in backports WILL NOT receive any review
26+
## or updates from the Ubuntu security team.
27+
# deb http://archive.ubuntu.com/ubuntu/ trusty-backports main restricted
28+
# deb-src http://archive.ubuntu.com/ubuntu/ trusty-backports main restricted
29+
30+
deb http://archive.ubuntu.com/ubuntu/ trusty-security main restricted
31+
deb-src http://archive.ubuntu.com/ubuntu/ trusty-security main restricted
32+
deb http://archive.ubuntu.com/ubuntu/ trusty-security universe multiverse
33+
deb-src http://archive.ubuntu.com/ubuntu/ trusty-security universe multiverse
34+
35+
36+

0 commit comments

Comments
 (0)