forked from arangodb/arangodb-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile.local
40 lines (32 loc) · 1.1 KB
/
Dockerfile.local
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 debian:jessie
MAINTAINER Frank Celler <[email protected]>
RUN gpg --keyserver ha.pool.sks-keyservers.net --recv-keys CD8CB0F1E0AD5B52E93F41E7EA93F5E56E751E9B
RUN apt-get update && \
apt-get install -y --no-install-recommends \
libgoogle-perftools4 \
ca-certificates \
pwgen \
wget \
&& \
rm -rf /var/lib/apt/lists/*
COPY arangodb.deb /arangodb.deb
RUN dpkg -i arangodb.deb && \
sed -ri \
# https://docs.arangodb.com/ConfigureArango/Arangod.html
-e 's!127\.0\.0\.1!0.0.0.0!g' \
# https://docs.arangodb.com/ConfigureArango/Logging.html
-e 's!^(file\s*=).*!\1 -!' \
# run as arangodb:arangodb
-e 's!^#\s*uid\s*=.*!uid = arangodb!' \
-e 's!^#\s*gid\s*=.*!gid = arangodb!' \
/etc/arangodb/arangod.conf \
&& \
apt-get purge -y --auto-remove ca-certificates wget && \
rm -f /arangodb.deb
# retain the database directory and the Foxx Application directory
VOLUME ["/var/lib/arangodb", "/var/lib/arangodb-apps"]
COPY docker-entrypoint.sh /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]
# standard port
EXPOSE 8529
CMD ["arangod"]