comparison docker/data/Dockerfile @ 21:0e78c8a4626e

Added Dockerfiles to create Docker images for easy installation + scripts to manages them. see README for details.
author Goffi <goffi@goffi.org>
date Sun, 19 Oct 2014 15:14:40 +0200
parents
children 686a8c982c3f
comparison
equal deleted inserted replaced
20:703a394b9780 21:0e78c8a4626e
1 ###############################################################
2 # #
3 # Salut à Toi/data #
4 # This Dockerfile build a « Salut à Toi » data image #
5 # Salut à Toi is a multi-frontends multi-purposes XMPP client #
6 # #
7 ###############################################################
8
9 FROM salutatoi/sat_pubsub:latest
10
11 MAINTAINER Goffi <goffi@goffi.org>
12
13 ###########
14 # VOLUMES #
15 ###########
16
17 # sat user home, where most of config files and databases are located
18 VOLUME ["/home/sat"]
19
20 # Prosody
21 RUN mkdir -p /var/lib/prosody && chown 106:110 /var/lib/prosody && chmod 0750 /var/lib/prosody
22 VOLUME ["/var/lib/prosody"]
23
24 # Postgres database, used in SàT PubSub
25 VOLUME ["/var/lib/postgresql"]
26
27 # Logs not shown directly with docker logs
28 VOLUME ["/var/log"]
29
30 ##########
31 # BACKUP #
32 ##########
33
34 WORKDIR /volumes
35 RUN ln -s /home/sat sat
36 RUN ln -s /var/lib/prosody prosody
37 RUN ln -s /var/lib/postgresql postgresql
38 RUN ln -s /var/log log
39 VOLUME ["/volumes"]
40
41 ENTRYPOINT ["/bin/true"]