Skip to content
Snippets Groups Projects
Commit 1be517ac authored by Alisandra Denton's avatar Alisandra Denton
Browse files

better but not good

parent 035327d0
No related branches found
No related tags found
No related merge requests found
#FROM nvidia/cuda:11.2.0-cudnn8-runtime-ubuntu20.04 #FROM nvidia/cuda:11.2.0-cudnn8-runtime-ubuntu20.04
FROM ubuntu:latest FROM ubuntu:latest
RUN useradd --create-home --shell /bin/bash zim-gast
# Overide user name at build, if buil-arg no passed, will create user named `default` user
ARG DOCKER_USER=zim-gast
# Create a group and user
RUN adduser $DOCKER_USER
#RUN useradd --create-home --shell /bin/bash zim-gast
RUN apt-get update -y RUN apt-get update -y
RUN apt-get install -y --no-install-recommends apt-utils RUN apt-get install -y --no-install-recommends apt-utils
RUN apt-get install python3-dev -y RUN apt-get install python3-dev -y
...@@ -32,56 +40,49 @@ ENV PATH="/root/.cargo/bin:${PATH}" ...@@ -32,56 +40,49 @@ ENV PATH="/root/.cargo/bin:${PATH}"
# --- Helixer and HelixerPost --- # # --- Helixer and HelixerPost --- #
WORKDIR /home/zim-gast/ WORKDIR /home/$DOCKER_USER/
RUN mkdir /home/zim-gast/repos RUN mkdir /home/$DOCKER_USER/repos
WORKDIR /home/zim-gast/repos WORKDIR /home/$DOCKER_USER/repos
RUN git clone -b v0.3.0a0 https://github.com/weberlab-hhu/Helixer.git Helixer RUN git clone -b v0.3.0a0 https://github.com/weberlab-hhu/Helixer.git Helixer
RUN pip install --no-cache-dir -r /home/zim-gast/repos/Helixer/requirements.txt RUN pip install --no-cache-dir -r /home/$DOCKER_USER/repos/Helixer/requirements.txt
RUN cd Helixer && pip install --no-cache-dir . RUN cd Helixer && pip install --no-cache-dir .
WORKDIR /home/zim-gast/repos WORKDIR /home/$DOCKER_USER/repos
RUN git clone https://github.com/TonyBolger/HelixerPost.git RUN git clone https://github.com/TonyBolger/HelixerPost.git
RUN cd HelixerPost && git checkout d180ad8b353fa8da69342bdb924ecfaeea9464af RUN cd HelixerPost && git checkout d180ad8b353fa8da69342bdb924ecfaeea9464af
RUN mkdir /home/zim-gast/bin RUN mkdir /home/$DOCKER_USER/bin
ENV PATH="/home/zim-gast/bin:${PATH}" ENV PATH="/home/$DOCKER_USER/bin:${PATH}"
RUN cd HelixerPost/helixer_post_bin && cargo build --release RUN cd HelixerPost/helixer_post_bin && cargo build --release
RUN mv /home/zim-gast/repos/HelixerPost/target/release/helixer_post_bin /home/zim-gast/bin/ RUN mv /home/$DOCKER_USER/repos/HelixerPost/target/release/helixer_post_bin /home/$DOCKER_USER/bin/
RUN rm -r /home/zim-gast/repos/HelixerPost/target/release/ RUN rm -r /home/$DOCKER_USER/repos/HelixerPost/target/release/
#
RUN apt install r-base-core -y
#RUN apt install rstudio -y
RUN apt install libncurses5-dev zlib1g-dev libbz2-dev liblzma-dev cmake jellyfish python-tk libcurl4-openssl-dev libgit2-dev libssl-dev -y RUN apt install libncurses5-dev zlib1g-dev libbz2-dev liblzma-dev cmake jellyfish python-tk libcurl4-openssl-dev libgit2-dev libssl-dev -y
WORKDIR /home/zim-gast/repos WORKDIR /home/$DOCKER_USER/repos
RUN git clone https://github.com/alisandra/RNAseq_workshop_helpers.git RUN git clone https://github.com/alisandra/RNAseq_workshop_helpers.git
RUN find RNAseq_workshop_helpers . -maxdepth 2 -type f -executable|xargs -I% cp % /home/zim-gast/bin/ RUN find RNAseq_workshop_helpers . -maxdepth 2 -type f -executable|xargs -I% cp % /home/$DOCKER_USER/bin/
#echo "please add the following lines to your ~/.bashrc file" #echo "please add the following lines to your ~/.bashrc file"
#echo 'export PATH=$PATH:'$SOFTWAREDIR'/bin' #echo 'export PATH=$PATH:'$SOFTWAREDIR'/bin'
#echo 'export AUGUSTUS_CONFIG_PATH='$SOFTWAREDIR'/downloads/augustus.2.5.5/config/' #echo 'export AUGUSTUS_CONFIG_PATH='$SOFTWAREDIR'/downloads/augustus.2.5.5/config/'
WORKDIR /home/zim-gast/bin WORKDIR /home/$DOCKER_USER/bin
RUN wget http://hgdownload.cse.ucsc.edu/admin/exe/linux.x86_64/faToTwoBit RUN wget http://hgdownload.cse.ucsc.edu/admin/exe/linux.x86_64/faToTwoBit && chmod +x faToTwoBit
RUN wget http://hgdownload.cse.ucsc.edu/admin/exe/linux.x86_64/blat/blat RUN wget http://hgdownload.cse.ucsc.edu/admin/exe/linux.x86_64/blat/blat && chmod +x blat
RUN chmod +x blat
RUN chmod +x faToTwoBit
# --- classic bioinf --- # # --- classic bioinf --- #
WORKDIR /home/zim-gast/ WORKDIR /home/$DOCKER_USER/
RUN apt install hisat2 -y RUN apt install hisat2 \
RUN apt install bowtie2 -y bowtie2 \
RUN apt install augustus -y augustus \
RUN apt install gffread -y gffread \
RUN apt install fastqc -y fastqc \
RUN apt install salmon -y salmon \
RUN apt install samtools -y samtools \
RUN apt install trinityrnaseq -y minimap2 \
RUN apt install minimap2 -y mash \
RUN apt install mash -y cd-hit -y
RUN apt install cd-hit -y
# --- used to be conda, now binaries... --- # # --- used to be conda, now binaries... --- #
...@@ -98,19 +99,19 @@ RUN tar xvf bax2bam-0.0.11-0.tar.bz2 ...@@ -98,19 +99,19 @@ RUN tar xvf bax2bam-0.0.11-0.tar.bz2
# kallisto # kallisto
RUN apt install libhdf5-dev m4 -y RUN apt install libhdf5-dev m4 -y
WORKDIR /home/zim-gast/repos WORKDIR /home/$DOCKER_USER/repos
RUN curl -O -L http://ftpmirror.gnu.org/autoconf/autoconf-2.69.tar.gz RUN curl -O -L http://ftpmirror.gnu.org/autoconf/autoconf-2.69.tar.gz
RUN tar -xzf autoconf-2.69.tar.gz RUN tar -xzf autoconf-2.69.tar.gz
WORKDIR /home/zim-gast/repos/autoconf-2.69 WORKDIR /home/$DOCKER_USER/repos/autoconf-2.69
RUN ./configure RUN ./configure
RUN make RUN make
RUN make install RUN make install
WORKDIR /home/zim-gast/repos WORKDIR /home/$DOCKER_USER/repos
RUN git clone https://github.com/pachterlab/kallisto.git RUN git clone https://github.com/pachterlab/kallisto.git
RUN mkdir kallisto/build RUN mkdir kallisto/build
WORKDIR /home/zim-gast/repos/kallisto/build WORKDIR /home/$DOCKER_USER/repos/kallisto/build
ENV LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/lib/x86_64-linux-gnu/hdf5/serial/lib ENV LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/lib/x86_64-linux-gnu/hdf5/serial/lib
RUN cmake -DCMAKE_INSTALL_PREFIX=/home/zim-gast/ -DUSE_HDF5=ON .. RUN cmake -DCMAKE_INSTALL_PREFIX=/home/$DOCKER_USER/ -DUSE_HDF5=ON ..
RUN make RUN make
RUN make install RUN make install
# python # python
...@@ -120,29 +121,48 @@ RUN rm python_installs.sh ...@@ -120,29 +121,48 @@ RUN rm python_installs.sh
# for virtualenv intro # for virtualenv intro
RUN pip install virtualenv RUN pip install virtualenv
ENV PATH="/home/zim-gast/.local/bin:${PATH}" ENV PATH="/home/$DOCKER_USER/.local/bin:${PATH}"
# jars # jars
RUN mkdir /home/zim-gast/sw RUN mkdir /home/$DOCKER_USER/sw
WORKDIR /home/zim-gast/sw WORKDIR /home/$DOCKER_USER/sw
RUN wget http://www.usadellab.org/cms/uploads/supplementary/Trimmomatic/Trimmomatic-0.39.zip RUN wget http://www.usadellab.org/cms/uploads/supplementary/Trimmomatic/Trimmomatic-0.39.zip
RUN apt install unzip -y
RUN unzip Trimmomatic-0.39.zip RUN unzip Trimmomatic-0.39.zip
RUN rm Trimmomatic-0.39.zip RUN rm Trimmomatic-0.39.zip
# cleanup # cleanup
WORKDIR /home/zim-gast/ WORKDIR /home/$DOCKER_USER/
RUN rm *.bz2 RUN rm *.bz2
RUN rm -r info RUN rm -r info
# shared folder # shared folder
RUN mkdir /home/zim-gast/rnaseq-workshop # rnaseq-workshop folder
RUN wget https://github.com/git-lfs/git-lfs/releases/download/v3.2.0/git-lfs-linux-amd64-v3.2.0.tar.gz
RUN mv git-lfs-linux-amd64-v3.2.0.tar.gz sw/
WORKDIR /home/$DOCKER_USER/sw/
RUN tar xvf git-lfs-linux-amd64-v3.2.0.tar.gz
WORKDIR /home/$DOCKER_USER/sw/git-lfs-3.2.0/
RUN ./install.sh
RUN rm ../git-lfs-linux-amd64-v3.2.0.tar.gz
WORKDIR /home/$DOCKER_USER/
#RUN git clone https://git.nfdi4plants.org/brilator/rnaseq-workshop.git
RUN mkdir /home/$DOCKER_USER/rnaseq-workshop
RUN apt purge gmap -y
RUN apt install gmap -y RUN apt install gmap -y
RUN rm -rf /var/lib/apt/lists/*
EXPOSE 8889 EXPOSE 8889
USER zim-gast
COPY ./first.sh /home/$DOCKER_USER/
RUN chown $DOCKER_USER:$DOCKER_USER /home/$DOCKER_USER/first.sh
USER $DOCKER_USER
RUN git lfs install
RUN echo "alias gmap='/usr/bin/gmap'" >> .bashrc RUN echo "alias gmap='/usr/bin/gmap'" >> .bashrc
CMD ["bash"] CMD ["bash"]
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