Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide a Dockerfile #17

Open
sulantha2006 opened this issue Nov 14, 2023 · 0 comments
Open

Provide a Dockerfile #17

sulantha2006 opened this issue Nov 14, 2023 · 0 comments

Comments

@sulantha2006
Copy link

sulantha2006 commented Nov 14, 2023

Would it be possible to provide a docker file in order to easily use this?
I have tried one with SamTools installed, but various dependency version requirements in the cmake file makes it really impossible.

My only success was with ubuntu jammy, but when I run vntrseek.pl --HELP I get, malloc_consolidate(): unaligned fastbin chunk detected. this may be due to incorrect versions being used in building.

Any help is appreciated. Here is the Dockerfile I used.

ARG SAMTOOLS_VER="1.18"
FROM ubuntu:jammy as builder

ARG SAMTOOLS_VER
ARG DEBIAN_FRONTEND=noninteractive

# install dependencies required for compiling samtools
RUN apt-get update && apt-get install --no-install-recommends -y \
    libncurses5-dev \
    libbz2-dev \
    liblzma-dev \
    libcurl4-gnutls-dev \
    zlib1g-dev \
    libssl-dev \
    gcc \
    wget \
    make \
    perl \
    bzip2 \
    gnuplot \
    ca-certificates

# download, compile, and install samtools
RUN wget https://github.com/samtools/samtools/releases/download/${SAMTOOLS_VER}/samtools-${SAMTOOLS_VER}.tar.bz2 && \
    tar -xjf samtools-${SAMTOOLS_VER}.tar.bz2 && \
    cd samtools-${SAMTOOLS_VER} && \
    ./configure && \
    make && \
    make install

### start of app stage ###
FROM ubuntu:jammy as app
ARG SAMTOOLS_VER
ARG DEBIAN_FRONTEND=noninteractive

RUN apt-get update && apt-get install --no-install-recommends -y \
libncurses5-dev \
    libbz2-dev \
    liblzma-dev \
    libcurl4-gnutls-dev \
    zlib1g-dev \
    libssl-dev \
    build-essential \
    g++ \
    gcc \
    glibc-source \
    clang \
    wget \
    make \
    cmake \
    perl \
    zlib1g \
    libncurses5 \
    bzip2 \
    liblzma-dev \
    libcurl4-gnutls-dev \
    gnuplot \
    sqlite3 \
    libsqlite3-dev \
    libdbi-perl \
    libdbd-sqlite3-perl libdatetime-perl libxml-simple-perl libdigest-md5-perl \
    ca-certificates git \
    && apt-get autoclean && rm -rf /var/lib/apt/lists/*

## needed by vntr make ##
RUN ln -s /lib/x86_64-linux-gnu/libc.so.6 /lib/libc.so.6

# copy in samtools executables from builder stage
COPY --from=builder /usr/local/bin/* /usr/local/bin/

ENV LC_ALL=C

RUN wget -O vntr.tar.gz https://github.com/Benson-Genomics-Lab/VNTRseek/archive/refs/tags/v2.0.3.tar.gz && tar -zxvf vntr.tar.gz && rm vntr.tar.gz && cd VNTRseek-2.0.3 && mkdir build && cd build && cmake -DCMAKE_C_COMPILER=clang .. && make install 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant