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

Docker update #31

Merged
merged 2 commits into from
Nov 12, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions docker/env/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,22 +6,22 @@ ENV TZ=America/New_York
ENV VERSION 0.3.0
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
RUN apt-get update && apt-get install -y curl git build-essential cmake libsdsl-dev wget libbz2-dev zlib1g-dev liblzma-dev libncurses-dev zip
RUN wget https://github.com/samtools/htslib/releases/download/1.13/htslib-1.13.tar.bz2 && \
tar -vxjf htslib-1.13.tar.bz2 && \
cd htslib-1.13 && \
RUN wget https://github.com/samtools/htslib/releases/download/1.16/htslib-1.16.tar.bz2 && \
tar -vxjf htslib-1.16.tar.bz2 && \
cd htslib-1.16 && \
./configure && \
make && \
make install && \
cd ../ && \
rm htslib-1.13.tar.bz2
RUN wget https://github.com/samtools/samtools/releases/download/1.13/samtools-1.13.tar.bz2 && \
tar -vxjf samtools-1.13.tar.bz2 && \
cd samtools-1.13 && \
rm htslib-1.16.tar.bz2
RUN wget https://github.com/samtools/samtools/releases/download/1.16/samtools-1.16.tar.bz2 && \
tar -vxjf samtools-1.16.tar.bz2 && \
cd samtools-1.16 && \
./configure && \
make && \
make install && \
cd ../ && \
rm samtools-1.13.tar.bz2
rm samtools-1.16.tar.bz2
RUN wget https://github.com/lh3/bwa/releases/download/v0.7.17/bwa-0.7.17.tar.bz2 && \
tar -vxjf bwa-0.7.17.tar.bz2 && \
cd bwa-0.7.17 && \
Expand Down
2 changes: 1 addition & 1 deletion docker/production/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ COPY --from=lev /usr/local/bin/meryl /usr/local/bin/
COPY --from=lev /usr/local/bin/samtools /usr/local/bin/
COPY --from=lev /usr/local/lib/libhts.a /usr/local/lib
COPY --from=lev /usr/local/lib/libhts.so /usr/local/lib
COPY --from=lev /usr/local/lib/libhts.so.1.13 /usr/local/lib
COPY --from=lev /usr/local/lib/libhts.so.1.16 /usr/local/lib
COPY --from=lev /usr/local/lib/libhts.so.3 /usr/local/lib
COPY --from=lev /usr/lib/x86_64-linux-gnu/libsdsl.a /usr/local/lib
COPY --from=lev /usr/lib/x86_64-linux-gnu/libsdsl.so /usr/local/lib
Expand Down
6 changes: 3 additions & 3 deletions docker/update_docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@ docker build --tag leviosam2_env .

# build the production image
cd ../production
docker build --tag leviosam2 .
docker build --tag leviosam2:${VER} --tag leviosam2:latest .

# push using the ${VER} tag
docker tag leviosam2 naechyun/leviosam2:${VER}
# docker tag leviosam2 naechyun/leviosam2:${VER}
docker push naechyun/leviosam2:${VER}

# push using the tag "latest"
docker tag leviosam2 naechyun/leviosam2:latest
# docker tag leviosam2 naechyun/leviosam2:latest
docker push naechyun/leviosam2:latest