forked from mig42/plastic-docker
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathDockerfile.14
More file actions
42 lines (31 loc) · 1.6 KB
/
Dockerfile.14
File metadata and controls
42 lines (31 loc) · 1.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
FROM ubuntu:trusty
MAINTAINER Miguel González <mgonzalez@codicefactory.com>
RUN apt-get update
RUN apt-get install -y wget
RUN mkdir /conf
RUN mkdir /logs
RUN mkdir -p /db/sqlite
RUN echo "deb http://www.plasticscm.com/plasticrepo/5.0/Ubuntu_14.04/ ./" >> /etc/apt/sources.list.d/plastic.list
RUN echo "deb http://www.plasticscm.com/plasticrepo/5.4/Ubuntu_14.04/ ./" >> /etc/apt/sources.list.d/plastic.list
RUN wget -q http://www.plasticscm.com/plasticrepo/5.0/Ubuntu_14.04/Release.key -O - | apt-key add -
RUN wget -q http://www.plasticscm.com/plasticrepo/5.4/Ubuntu_14.04/Release.key -O - | apt-key add -
RUN DEBIAN_FRONTEND=noninteractive apt-get -q update && apt-get install -y -q plasticscm-client plasticscm-server && plasticsd stop
RUN { \
clconfigureserver --language=en --port=8087 --workingmode=UPWorkingMode; \
[ -f /opt/plasticscm5/server/users.conf ] && mv /opt/plasticscm5/server/users.conf /conf || touch /conf/users.conf; \
[ -f /opt/plasticscm5/server/groups.conf ] && mv /opt/plasticscm5/server/groups.conf /conf || touch /conf/groups.conf; \
mv /opt/plasticscm5/server/plasticd.lic /conf; \
ln -s /conf/users.conf /opt/plasticscm5/server && ln -s /conf/groups.conf /opt/plasticscm5/server; \
ln -s /conf/plasticd.lic /opt/plasticscm5/server; \
ln -s /conf/plasticd.token.lic /opt/plasticscm5/server; \
}
RUN umtool cu root root
RUN umtool cg administrators
RUN umtool autg root administrators
ADD loader.log.conf /opt/plasticscm5/server/
ADD db.conf /opt/plasticscm5/server/
EXPOSE 8087
VOLUME /conf
VOLUME /db/sqlite
VOLUME /logs
CMD ["/opt/plasticscm5/server/plasticd", "--daemon"]