forked from mig42/plastic-docker
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathDockerfile.labs.18
More file actions
40 lines (30 loc) · 1.25 KB
/
Dockerfile.labs.18
File metadata and controls
40 lines (30 loc) · 1.25 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
FROM ubuntu:bionic
LABEL maintainer="Miguel González <mgonzalez@codicefactory.com>"
LABEL contributor="cybik"
RUN apt-get update && \
apt-get install -y wget
RUN mkdir -p /conf && \
mkdir -p /logs && \
mkdir -p /confbase && \
mkdir -p /db/sqlite
RUN apt-get install -y gnupg2 && \
echo "deb https://www.plasticscm.com/plasticrepo/labs/ubuntu/ ./" >> /etc/apt/sources.list.d/plastic.list && \
wget -q https://www.plasticscm.com/plasticrepo/labs/ubuntu/Release.key -O - | apt-key add -
RUN DEBIAN_FRONTEND=noninteractive apt-get -q update && apt-get install -y plasticscm-server-core
ADD entry.sh /entry.sh
ADD loader.log.conf /confbase
ADD db.conf /confbase
RUN { \
clconfigureserver --language=en --port=8087 --workingmode=UPWorkingMode; \
[ -f /opt/plasticscm5/server/users.conf ] && mv /opt/plasticscm5/server/users.conf /confbase || touch /confbase/users.conf; \
[ -f /opt/plasticscm5/server/groups.conf ] && mv /opt/plasticscm5/server/groups.conf /confbase || touch /confbase/groups.conf; \
mv /opt/plasticscm5/server/plasticd.lic /confbase; \
chmod 755 /entry.sh; \
}
EXPOSE 7178
EXPOSE 8087
VOLUME /conf
VOLUME /db/sqlite
VOLUME /logs
ENTRYPOINT "/entry.sh"
CMD ["/opt/plasticscm5/server/plasticd", "--daemon"]