-
Notifications
You must be signed in to change notification settings - Fork 4
/
Dockerfile
53 lines (39 loc) · 1.43 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
43
44
45
46
47
48
49
50
51
52
53
#
# Ubuntu 14.04
#
# https://hub.docker.com/_/ubuntu/
#
# Pull base image.
FROM uwitech/ohie-base
USER root
#install tools
RUN apt-get update
RUN apt-get -y install wget
RUN apt-get -y install curl
RUN curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
RUN apt-get -y install nodejs
RUN apt-get -y install git build-essential
RUN apt-get -y install software-properties-common python-software-properties openjdk-7-jdk unzip
RUN apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 0C49F3730359A14518585931BC711F9BA15703C6 && \
echo "deb [ arch=amd64 ] http://repo.mongodb.org/apt/ubuntu trusty/mongodb-org/3.4 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-3.4.list && \
apt-get update && \
apt-get install -y mongodb-org-shell
#install openhim
RUN npm -y install -g [email protected] grunt
RUN mkdir /etc/openhim
COPY default.json /etc/openhim/core.json
COPY mongo.js /etc/openhim/mongo.js
COPY dhis-mediator-config.json /etc/openhim/default.json
COPY openhim-ilr-dhis-mediator.json /etc/openhim/mediator.json
COPY mediator-xds-1.0.3-jar-with-dependencies.jar /root/mediator-xds-1.0.3-jar-with-dependencies.jar
#install mediators
COPY InstallCert.java.zip /root/InstallCert.java.zip
COPY mediators.sh /root/mediators.sh
RUN chmod +x /root/mediators.sh
RUN /root/mediators.sh
COPY mediator.properties /root/mediator.properties
COPY cmd.sh /cmd.sh
RUN chmod +x /cmd.sh
CMD /cmd.sh
EXPOSE 5012
EXPOSE 8080