-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathDockerfile
46 lines (38 loc) · 2.13 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
# Docker container to host CGIMP: Clustered Genomic Interval Mapping Platform
# To build:
# docker build -t cgimp .
# To Run:
# docker run -it --name somBrowser -v $(pwd):/home/node/$(basename $(pwd)) -p 3000:3000 -p 3001:3001 -p 9200:9200 -e LOCAL_USER_ID=`id -u $USER` -e LOCAL_GROUP_ID=`id -g $USER` -e LOCAL_USER_NAME=`id -un` -e LOCAL_GROUP_NAME=`id -gn` cgimp bash
FROM node:11.12.0-stretch
MAINTAINER Adam Diehl <adadiehl@umich.edu>
# Expose the ports needed for node.js and express
EXPOSE 3000
EXPOSE 3001
EXPOSE 9200
ENV DEBIAN_FRONTEND noninteractive
# Install packages needed for non-root login/permissions control
RUN apt-get update && apt-get -y --no-install-recommends install \
ca-certificates \
curl \
sudo
RUN gpg --keyserver ha.pool.sks-keyservers.net --recv-keys B42F6819007F00F88E364FD4036A9C25BF357DD4
RUN curl -o /usr/local/bin/gosu -SL "https://github.com/tianon/gosu/releases/download/1.4/gosu-$(dpkg --print-architecture)" \
&& curl -o /usr/local/bin/gosu.asc -SL "https://github.com/tianon/gosu/releases/download/1.4/gosu-$(dpkg --print-architecture).asc" \
&& gpg --verify /usr/local/bin/gosu.asc \
&& rm /usr/local/bin/gosu.asc \
&& chmod +x /usr/local/bin/gosu
COPY entrypoint.sh /usr/local/bin/entrypoint.sh
ENTRYPOINT ["/usr/local/bin/entrypoint.sh"]
# We need to install conda and pybedtools packages to enable on-the-fly intersections.
RUN apt-get update && apt-get -y --no-install-recommends install bedtools python-setuptools python-dev build-essential
RUN easy_install pip
RUN pip install --upgrade virtualenv
RUN pip install pybedtools
# Install and configure elasticsearch and dependencies
RUN apt-get -y --no-install-recommends install openjdk-8-jre
RUN wget -qO - https://artifacts.elastic.co/GPG-KEY-elasticsearch | sudo apt-key add -
RUN apt-get install -y --no-install-recommends apt-transport-https
RUN echo "deb https://artifacts.elastic.co/packages/7.x/apt stable main" | sudo tee -a /etc/apt/sources.list.d/elastic-7.x.list
RUN sudo apt-get update && apt-get -y --no-install-recommends install elasticsearch
RUN sudo update-rc.d elasticsearch defaults 95 10
COPY elasticsearch.yml /etc/elasticsearch