forked from arangodb/arangodb-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile3.local
46 lines (37 loc) · 1.42 KB
/
Dockerfile3.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
41
42
43
44
45
46
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 \
libjemalloc1 \
libsnappy1 \
ca-certificates \
pwgen \
curl \
&& \
rm -rf /var/lib/apt/lists/*
COPY arangodb.deb /arangodb.deb
RUN mkdir /docker-entrypoint-initdb.d
RUN (echo arangodb3 arangodb/password password test | debconf-set-selections) && \
(echo arangodb3 arangodb/password_again password test | debconf-set-selections) && \
DEBIAN_FRONTEND="noninteractive" dpkg -i arangodb.deb && \
rm -rf /var/lib/arangodb3/* && \
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/arangodb3/arangod.conf \
&& \
DEBIAN_FRONTEND="noninteractive" apt-get purge -y --auto-remove ca-certificates && \
rm -f /arangodb.deb
# retain the database directory and the Foxx Application directory
VOLUME ["/var/lib/arangodb3", "/var/lib/arangodb3-apps"]
COPY docker-entrypoint3.sh /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]
# standard port
EXPOSE 8529
CMD ["arangod"]