forked from orientechnologies/orientdb-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
42 lines (31 loc) · 1.34 KB
/
Dockerfile
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
############################################################
# Dockerfile to run an OrientDB (Graph) Container
# http://crosbymichael.com/dockerfile-best-practices.html
# http://crosbymichael.com/dockerfile-best-practices-take-2.html
############################################################
FROM debian:jessie
MAINTAINER Davide Marquês (nesrait@gmail.com)
# Update the default application repository sources list
RUN apt-get update
# Install supervisord
RUN apt-get -y install supervisor
RUN mkdir -p /var/log/supervisor
# Install OrientDB dependencies
# https://www.digitalocean.com/community/tutorials/how-to-install-and-use-orientdb-on-an-ubuntu-12-04-vps
RUN apt-get -y install openjdk-7-jdk git ant
ENV ORIENTDB_VERSION 1.7.8
# Build OrientDB cleaning up afterwards
RUN cd && \
git clone https://github.com/orientechnologies/orientdb.git --single-branch --depth 1 --branch $ORIENTDB_VERSION && \
cd orientdb && \
ant clean installg && \
mv /releases/orientdb-community-* /opt/orientdb && \
rm -rf /opt/orientdb/databases/* ~/orientdb
# use supervisord to start orientdb
ADD supervisord.conf /etc/supervisor/conf.d/supervisord.conf
EXPOSE 2424
EXPOSE 2480
# Set the user to run OrientDB daemon
USER root
# Default command when starting the container
CMD ["/usr/bin/supervisord", "-c", "/etc/supervisor/conf.d/supervisord.conf"]