-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile_worker
More file actions
29 lines (20 loc) · 887 Bytes
/
Dockerfile_worker
File metadata and controls
29 lines (20 loc) · 887 Bytes
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
# Use an official java 7 as a parent image
# FROM ubuntu:latest
FROM java:8
MAINTAINER William Petit <w.petit@ed.ac.uk>
ENV MAVEN_OPTS "-Xmx1024m"
ENV DATAVAULT_HOME "/docker_datavault-home"
# Update ubuntu
RUN apt-get update && apt-get install -y procps
# Install usefull tools
RUN apt-get -y install vim
# Couldn't use the whole directory as volume or datavault.properties gets overwritten
RUN mkdir -p /docker_datavault-home/config
# Use customised properties
ADD ./config /docker_datavault-home/config
WORKDIR /docker_datavault-home/lib
# Make port 80 available to the world outside this container
EXPOSE 8080
ADD wait-for-rabbitmq.sh /docker_datavault-home/wait-for-rabbitmq.sh
#CMD supervisord -c /etc/supervisor/supervisord.conf -n
CMD /docker_datavault-home/wait-for-rabbitmq.sh;java -cp datavault-worker-1.0-SNAPSHOT.jar:./* org.datavaultplatform.worker.WorkerInstance