-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
43 lines (33 loc) · 1.01 KB
/
Dockerfile
File metadata and controls
43 lines (33 loc) · 1.01 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
41
42
43
FROM ubuntu:14.04
MAINTAINER Eranga Bandara (erangaeb@gmail.com)
# install java and other required packages
RUN apt-get update -y
RUN apt-get install -y python-software-properties
RUN apt-get install -y software-properties-common
RUN add-apt-repository -y ppa:webupd8team/java
RUN apt-get update -y
# install java
RUN echo oracle-java7-installer shared/accepted-oracle-license-v1-1 select true | debconf-set-selections
RUN apt-get install -y oracle-java7-installer
RUN rm -rf /var/lib/apt/lists/*
RUN rm -rf /var/cache/oracle-jdk7-installer
# set JAVA_HOME
ENV JAVA_HOME /usr/lib/jvm/java-7-oracle
# set service variables
ENV SWITCH_HOST dev.localhost
ENV SWITCH_PORT 7070
ENV EPIC_HOST dev.localhost
ENV EPIC_PORT 8080
ENV CASSANDRA_HOST dev.localhost
ENV CASSANDRA_PORT 9090
# working directory
WORKDIR /app
# copy file
ADD target/scala-2.11/sdbl-bal-assembly-1.0.jar bal.jar
# logs volume
RUN mkdir logs
VOLUME ["/app/logs"]
# .keys volume
VOLUME ["/app/.keys"]
# command
ENTRYPOINT [ "java", "-jar", "/app/bal.jar" ]