This repository was archived by the owner on Aug 16, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathDockerfile
More file actions
80 lines (59 loc) · 2.11 KB
/
Dockerfile
File metadata and controls
80 lines (59 loc) · 2.11 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
# CaMicroscope DATA container
# DOCKER-VERSION 0.3.4
# Mongo, Bindaas
# VERSION 0.3.1
FROM ubuntu:16.04
MAINTAINER Ganesh Iyer "lastlegion@gmail.com"
# build with
# sudo docker build --rm=true -t="repo/imgname" .
### update
RUN apt-get -q update
RUN apt-get -q -y upgrade
RUN apt-get -q -y dist-upgrade
RUN apt-get install -q -y libcurl3
# Java
RUN mkdir /root/src
WORKDIR /root/src
RUN apt-get install -y default-jdk
#RUN sudo apt-get install -y openjdk-8-jre
# Add java to path
ENV PATH /root/src/jre1.6.0_45/bin:$PATH
# Install MongoDB.
RUN apt-get install -y upstart
RUN apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv EA312927
RUN echo "deb http://repo.mongodb.org/apt/ubuntu trusty/mongodb-org/3.2 multiverse" | tee /etc/apt/sources.list.d/mongodb-org-3.2.list
RUN apt-get update
RUN apt-get install -y mongodb-org
# Define mountable directories.
VOLUME ["/data/db"]
# Define working directory.
WORKDIR /data
# Expose ports.
# - 27017: process
# - 28017: http
EXPOSE 27017
EXPOSE 28017
# Bindaas
RUN mkdir -p /root/bindaas
#COPY bindaas.tar.gz /root/bindaas/
ADD https://github.com/sharmalab/bindaas/releases/download/2.02RC/bindaas-dist-2.0.2-201603312230-min.tar.gz /root/bindaas/bindaas.tar.gz
WORKDIR /root/bindaas
RUN tar -xvf bindaas.tar.gz && rm bindaas.tar.gz
COPY projects /root/bindaas/bin/projects
#COPY Camicroscope_DataLoader.project /root/bindaas/bin/projects/Camicroscope_DataLoader.project
#COPY Camicroscope_Annotations.project /root/bindaas/bin/projects/Camicroscope_Annotations.project
COPY bindaas.config.json /root/bindaas/bin/
COPY trusted-applications.config.json /root/bindaas/bin/trusted-applications.config.json
EXPOSE 9099
#EXPOSE 8080
WORKDIR /root/bindaas/bin
COPY scripts/db_index.js /root/bindaas/bin/db_index.js
#WORKDIR /root/scripts
COPY /run.sh /root/bindaas/bin/run.sh
#pre-load Camicroscope Template document
COPY /loadCamicroscopeTemplate.js /root/bindaas/bin/loadCamicroscopeTemplate.js
#pre-load admin credential document
COPY /load_admin_info.js /root/bindaas/bin/load_admin_info.js
COPY mongod.conf /etc/mongod.conf
#WORKDIR /root/
CMD ["sh", "run.sh"]