-
Notifications
You must be signed in to change notification settings - Fork 2
/
Dockerfile
53 lines (45 loc) · 1.29 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
# USAGE
# With this Dockerfile in working directory,
# docker build -t username/imagename .
# (note the period at the end)
# docker run -it --rm username/imagename
# Start with latest Calyx image
FROM ghcr.io/cucapra/calyx:latest
# Go to the root directory
WORKDIR /root
# Install ODGI
# Dependencies:
RUN apt install -y build-essential cmake python3-distutils python3-dev libjemalloc-dev
# Clone:
RUN git clone --recursive https://github.com/pangenome/odgi.git
# Build:
WORKDIR /root/odgi
RUN cmake -H. -Bbuild && cmake --build build -- -j7
# Return to root directory
WORKDIR /root
# Add ODGI to paths
ENV PATH="/root/odgi/bin:$PATH"
ENV PYTHONPATH=$PYTHONPATH:/root/odgi/lib
ENV LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libjemalloc.so.2
ENV FLIT_ROOT_INSTALL=1
# Install Pollen's dependencies:
RUN git clone https://github.com/cucapra/turnt.git
WORKDIR /root/turnt
RUN flit install -s --user
WORKDIR /root
# Good to have:
RUN apt install emacs -y
RUN apt install vim -y
# Clone and build Pollen:
RUN git clone https://github.com/cucapra/pollen.git
WORKDIR /root/pollen
RUN make fetch
RUN make og
WORKDIR /root/pollen/pollen_py
RUN flit install -s --user
WORKDIR /root/pollen/mygfa
RUN flit install -s --user
WORKDIR /root/pollen/slow_odgi
RUN flit install -s --user
# return to the Pollen directory
WORKDIR /root/pollen