Skip to content
Snippets Groups Projects
Commit 34823718 authored by Ruqian Lyu's avatar Ruqian Lyu
Browse files

docker file for installing sscocaller with nimble

parent d5476438
No related branches found
No related tags found
No related merge requests found
...@@ -33,7 +33,23 @@ RUN apk add cmake openssl-dev && \ ...@@ -33,7 +33,23 @@ RUN apk add cmake openssl-dev && \
make -j4 CFLAGS="-fPIC -O3" install && \ make -j4 CFLAGS="-fPIC -O3" install && \
cd ../../ && rm -rf libzip-1.6.1* cd ../../ && rm -rf libzip-1.6.1*
## libRmath.a
RUN apk update
RUN \
apk add curl-dev
RUN \
git clone https://github.com/SurajGupta/r-source/ && \
cd r-source && chmod 755 ./configure && \
./configure -with-readline=no --with-x=no --disable-s3 --with-libdeflate && \
cd src/nmath/standalone && make && \
make install
RUN \
cd / && cp /r-source/src/nmath/standalone/libRmath.a /usr/local/lib/ && \
cp /r-source/src/nmath/standalone/libRmath.so /usr/local/lib/
ENV PATH=:/root/.nimble/bin:/nim/bin/:$PATH ENV PATH=:/root/.nimble/bin:/nim/bin/:$PATH
RUN \ RUN \
...@@ -48,12 +64,15 @@ RUN \ ...@@ -48,12 +64,15 @@ RUN \
make -j4 CFLAGS="-fPIC -O3" install && \ make -j4 CFLAGS="-fPIC -O3" install && \
cd ../ && rm -rf htslib bcftools cd ../ && rm -rf htslib bcftools
ENV HTSLIB=system
ENV PATH=$PATH:~/.cargo/bin/
ADD . /src/ ADD . /src/
RUN nimble install -y https://gitlab.svi.edu.au/biocellgen-public/sscocaller.git RUN nimble install -y https://gitlab.svi.edu.au/biocellgen-public/sscocaller.git
RUN ls ~/.nimble/lib/ RUN ls ~/.nimble/lib/
ENV LD_LIBRARY_PATH=:/root/.nimble/lib/:$LD_LIBRARY_PATH ENV LD_LIBRARY_PATH=:/root/.nimble/lib/:/usr/local/lib/:$LD_LIBRARY_PATH
RUN cp /root/.nimble/bin/sscocaller /usr/bin/ RUN cp /root/.nimble/bin/sscocaller /usr/bin/
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment