Skip to content

Commit 50aa101

Browse files
committedAug 20, 2014
Add files
1 parent 0777266 commit 50aa101

File tree

3 files changed

+58
-0
lines changed

3 files changed

+58
-0
lines changed
 

‎Dockerfile

+41
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
############################################################
2+
# Dockerfile to run an OrientDB (Graph) Container
3+
# Based on Ubuntu Image
4+
############################################################
5+
6+
# Set the base image to use to Ubuntu
7+
FROM ubuntu
8+
9+
MAINTAINER Davide Marquês (nesrait@gmail.com)
10+
11+
# Update the default application repository sources list
12+
RUN apt-get update
13+
14+
# Install supervisord
15+
RUN apt-get -y install supervisor
16+
RUN mkdir -p /var/log/supervisor
17+
18+
# Install OrientDB
19+
# https://www.digitalocean.com/community/tutorials/how-to-install-and-use-orientdb-on-an-ubuntu-12-04-vps
20+
RUN apt-get -y install openjdk-7-jdk git ant
21+
RUN cd
22+
RUN git clone https://github.com/orientechnologies/orientdb.git --single-branch --branch 1.7.8
23+
RUN cd orientdb && ant clean installg
24+
RUN mv /releases/orientdb-community-* /opt/orientdb
25+
26+
# open the image to configuration and storage via volumes
27+
VOLUME /etc/orientdb/config
28+
VOLUME /opt/orientdb/databases
29+
VOLUME /opt/orientdb/backup
30+
31+
# use supervisord to start orientdb
32+
ADD supervisord.conf /etc/supervisor/conf.d/supervisord.conf
33+
34+
EXPOSE 2424
35+
EXPOSE 2480
36+
37+
# Set the user to run OrientDB daemon
38+
USER root
39+
40+
# Default command when starting the container
41+
CMD ["/usr/bin/supervisord", "-c", "/etc/supervisor/conf.d/supervisord.conf"]

‎README.md

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
orientdb-docker
2+
===============
3+
4+
A dockerfile for creating an orientdb image with:
5+
6+
- explicit orientdb version for image cache stability
7+
- config, databases and backup folders mounted via volumes
8+
- launched via supervisord

‎supervisord.conf

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
[supervisord]
2+
nodaemon=true
3+
4+
[program:orientdb]
5+
command=/opt/orientdb/bin/server.sh
6+
autostart=true
7+
autorestart=true
8+
stderr_logfile=/var/log/orientdb.err.log
9+
stdout_logfile=/var/log/orientdb.out.log

0 commit comments

Comments
 (0)
Please sign in to comment.