Skip to content
This repository has been archived by the owner on Aug 16, 2023. It is now read-only.

Update Dockerfile #32

Open
wants to merge 2 commits into
base: eicu
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
56 changes: 19 additions & 37 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,31 +1,23 @@
# CaMicroscope DATA container
# DOCKER-VERSION 0.3.4
# Mongo, Bindass

# VERSION 0.3.1

FROM ubuntu:16.04
MAINTAINER Ganesh Iyer "[email protected]"

# build with
# sudo docker build --rm=true -t="repo/imgname" .

# sudo docker build --rm=tru
### 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
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
#RUN apt-get install -y default-jdk
RUN 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
Expand All @@ -39,42 +31,32 @@ 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 http://imaging.cci.emory.edu/wiki/download/attachments/4915228/bindaas-dist-2.0.2-201603312230-min.tar.gz?version=1&modificationDate=1459806174096&api=v2 /root/bindaas/bindaas.tar.gz
#EXPOSE 28017


## Bindaas
RUN mkdir -p /root/bindaas
ADD https://github.com/sharmalab/bindaas/releases/download/v3.0.2/bindaas-dist-3.0.2.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
EXPOSE 9099
WORKDIR /root/bindaas/bin

COPY projects /root/bindaas/bin/projects
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"]