Skip to content

Commit

Permalink
More complete Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
anshumanmohan committed Jul 19, 2023
1 parent 4a33aae commit 267bdd4
Showing 1 changed file with 19 additions and 16 deletions.
35 changes: 19 additions & 16 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,23 @@
# With this Dockerfile in working directory,
# docker build -t username/imagename .
# (note the period at the end)
# docker run -it username/imagename /bin/bash
# docker run -it --rm username/imagename

# Start with latest Calyx image
FROM ghcr.io/cucapra/calyx:latest

# return to root directory
# Go to the root directory
WORKDIR /root

# Install ODGI
# dependencies:
# Dependencies:
RUN apt install -y build-essential cmake python3-distutils python3-dev libjemalloc-dev
# clone:
# Clone:
RUN git clone --recursive https://github.com/pangenome/odgi.git
# build:
# Build:
WORKDIR /root/odgi
RUN cmake -H. -Bbuild && cmake --build build -- -j7
# return to root directory
# Return to root directory
WORKDIR /root

# Add ODGI to paths
Expand All @@ -27,24 +27,27 @@ 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
# dependencies:
# Install Pollen's dependencies:
RUN git clone https://github.com/cucapra/turnt.git
WORKDIR /root/turnt
RUN flit install --symlink --user
RUN flit install -s --user
WORKDIR /root

# good to have:
# Good to have:
RUN apt install emacs -y
RUN apt install vim -y

# clone:
# Clone and build Pollen:
RUN git clone https://github.com/cucapra/pollen.git
# build:
WORKDIR /root/pollen
RUN make fetch
RUN make og

# return to root directory
WORKDIR /root

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

0 comments on commit 267bdd4

Please sign in to comment.