Skip to content

Commit e4aadb3

Browse files
committed
Updating adding bwa-mem2 wrapper and increasing patch version
1 parent ee21c9a commit e4aadb3

File tree

2 files changed

+24
-31
lines changed

2 files changed

+24
-31
lines changed
+18-25
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,27 @@
11
############# OVERVIEW #############
22
# genome-seek trim_map docker image,
3-
# uses genome-seek as a base image:
4-
FROM skchronicles/genome-seek:v0.1.0
3+
# uses previous version of genome-seek
4+
# trim_map (v0.1.0) as a base image:
5+
FROM skchronicles/genome-seek_trim_map:v0.1.0
56

67
# Base image already contains:
7-
# samblaster and samtools
8-
# @INSTALLS:
9-
# • fastp, bwa_mem2
8+
# samblaster, samtools, fastp, bwa_mem2
109
WORKDIR /opt2
1110

12-
############## INSTALL #############
13-
# Install fastp, for more info see:
14-
# https://github.com/OpenGene/fastp/
15-
RUN mkdir -p /opt2/fastp/0.23.2/ \
16-
&& wget http://opengene.org/fastp/fastp.0.23.2 -P /opt2/fastp/0.23.2/ \
17-
&& mv /opt2/fastp/0.23.2/fastp.0.23.2 /opt2/fastp/0.23.2/fastp \
18-
&& chmod -R a+rx /opt2/fastp/0.23.2/fastp
19-
ENV PATH="${PATH}:/opt2/fastp/0.23.2"
20-
21-
# Install bwa_mem2, for more info see:
22-
# https://github.com/bwa-mem2/bwa-mem2
23-
RUN mkdir -p /opt2/bwa_mem2/2.2.1/ \
24-
&& wget https://github.com/bwa-mem2/bwa-mem2/releases/download/v2.2.1/bwa-mem2-2.2.1_x64-linux.tar.bz2 -P /opt2/bwa_mem2/2.2.1/ \
25-
&& tar -xjvf /opt2/bwa_mem2/2.2.1/bwa-mem2-2.2.1_x64-linux.tar.bz2 -C /opt2/bwa_mem2/2.2.1/ \
26-
&& rm /opt2/bwa_mem2/2.2.1/bwa-mem2-2.2.1_x64-linux.tar.bz2
27-
ENV PATH="${PATH}:/opt2/bwa_mem2/2.2.1/bwa-mem2-2.2.1_x64-linux"
28-
11+
############## INSTALL ##############
12+
# Add bwa-mem2-wrapper to select the
13+
# correct bwa-mem2 pre-compiled binary
14+
# for Intel and AMD (Zen4) processors.
15+
# AMD (Zen4) processors require are not
16+
# compatible with the AVX-512bw Intel
17+
# pre-compiled binary. This wrapper will
18+
# select the AVX2 binary if run on an
19+
# AMD processor; otherwise, it will
20+
# let bwa-mem2 select the best binary.
21+
ADD bin/bwa-mem2-wrapper /opt2/bwa_mem2/2.2.1/bwa-mem2-2.2.1_x64-linux/bwa-mem2-wrapper
22+
RUN chmod a+rx /opt2/bwa_mem2/2.2.1/bwa-mem2-2.2.1_x64-linux/bwa-mem2-wrapper
2923

3024
################ POST #################
3125
# Add Dockerfile and export env variables
32-
ADD Dockerfile /opt2/genome-seek_trim_map.dockerfile
33-
RUN chmod -R a+rX /opt2
34-
WORKDIR /data2
26+
ADD Dockerfile /opt2/genome-seek_trim_map_v0.1.1.dockerfile
27+
WORKDIR /data2

docker/genome-seek/trim_map/README.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -9,20 +9,20 @@ Directly below are instructions for building an image using the provided Dockerf
99
docker image ls
1010

1111
# Build from Dockerfile
12-
docker build --no-cache -f Dockerfile --tag=genome-seek_trim_map:v0.1.0 .
12+
docker build --no-cache -f Dockerfile --tag=genome-seek_trim_map:v0.1.1 .
1313

1414
# Testing, take a peek inside
15-
docker run -ti genome-seek_trim_map:v0.1.0 /bin/bash
15+
docker run -ti genome-seek_trim_map:v0.1.1 /bin/bash
1616

1717
# Updating Tag before pushing to DockerHub
18-
docker tag genome-seek_trim_map:v0.1.0 skchronicles/genome-seek_trim_map:v0.1.0
19-
docker tag genome-seek_trim_map:v0.1.0 skchronicles/genome-seek_trim_map # latest
18+
docker tag genome-seek_trim_map:v0.1.1 skchronicles/genome-seek_trim_map:v0.1.1
19+
docker tag genome-seek_trim_map:v0.1.1 skchronicles/genome-seek_trim_map # latest
2020

2121
# Check out new tag(s)
2222
docker image ls
2323

2424
# Push new tagged image to DockerHub
25-
docker push skchronicles/genome-seek_trim_map:v0.1.0
25+
docker push skchronicles/genome-seek_trim_map:v0.1.1
2626
docker push skchronicles/genome-seek_trim_map:latest
2727
```
2828

@@ -31,7 +31,7 @@ docker push skchronicles/genome-seek_trim_map:latest
3131
Scan your image for known vulnerabilities:
3232

3333
```bash
34-
docker scan genome-seek_trim_map:v0.1.0
34+
docker scan genome-seek_trim_map:v0.1.1
3535
```
3636

3737
> **Please Note**: Any references to `skchronicles` should be replaced your username if you would also like to push the image to a non-org account.

0 commit comments

Comments
 (0)