Skip to content

Commit 7da0ba7

Browse files
author
Amanda Sullivan
committed
clean up docker files
1 parent f1e347f commit 7da0ba7

19 files changed

+80
-69
lines changed

CHANGELOG.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,22 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
### Credits
99

10+
- [Amanda Sullivan](https://github.com/mandysulli)
11+
12+
### Enhancements
13+
14+
-
15+
16+
### Parameters
17+
18+
| Old parameter | New parameter |
19+
| ------------- | ---------------------------- |
20+
| | |
21+
22+
## v1.2.0 - 2024.11.07
23+
24+
### Credits
25+
1026
- [Amanda Sullivan](https://github.com/mandysulli)
1127
- [Reina Chau](https://github.com/rchau88)
1228
- [Arumugam Rajarethinam](https://github.com/lochanaarumugam)

Dockerfile

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ COPY . ${PROJECT_DIR}
3434
############# Install python packages ##################
3535

3636
# Copy all files to docker images
37-
COPY requirements.txt ${PROJECT_DIR}/requirements.txt
37+
COPY docker_files/requirements.txt ${PROJECT_DIR}/requirements.txt
3838

3939
# Install python requirements
4040
RUN pip install --no-cache-dir -r ${PROJECT_DIR}/requirements.txt
@@ -53,13 +53,13 @@ RUN chmod a+x ${PROJECT_DIR}/MIRA_nextflow.sh
5353
############# Fix vulnerablities pkgs ##################
5454

5555
# Copy all files to docker images
56-
COPY fixed_vulnerability_pkgs.txt ${PROJECT_DIR}/fixed_vulnerability_pkgs.txt
56+
COPY docker_files/fixed_vulnerability_pkgs.txt ${PROJECT_DIR}/docker_files/fixed_vulnerability_pkgs.txt
5757

5858
# Copy all files to docker images
59-
COPY fixed_vulnerability_pkgs.sh ${PROJECT_DIR}/fixed_vulnerability_pkgs.sh
59+
COPY docker_files/fixed_vulnerability_pkgs.sh ${PROJECT_DIR}/docker_files/fixed_vulnerability_pkgs.sh
6060

6161
# Convert bash script from Windows style line endings to Unix-like control characters
62-
RUN dos2unix ${PROJECT_DIR}/fixed_vulnerability_pkgs.sh
62+
RUN dos2unix ${PROJECT_DIR}/docker_files/fixed_vulnerability_pkgs.sh
6363

6464
# Allow permission to excute the bash script
6565
RUN chmod a+x ${PROJECT_DIR}/fixed_vulnerability_pkgs.sh
@@ -70,10 +70,10 @@ RUN bash ${PROJECT_DIR}/fixed_vulnerability_pkgs.sh
7070
############# Remove vulnerability pkgs ##################
7171

7272
# Copy all files to docker images
73-
COPY remove_mira_nf_vulnerability_pkgs.txt ${PROJECT_DIR}/remove_vulnerability_pkgs.txt
73+
COPY docker_files/remove_mira_nf_vulnerability_pkgs.txt ${PROJECT_DIR}/remove_vulnerability_pkgs.txt
7474

7575
# Copy all files to docker images
76-
COPY remove_vulnerability_pkgs.sh ${PROJECT_DIR}/remove_vulnerability_pkgs.sh
76+
COPY docker_files/remove_vulnerability_pkgs.sh ${PROJECT_DIR}/remove_vulnerability_pkgs.sh
7777

7878
# Convert bash script from Windows style line endings to Unix-like control characters
7979
RUN dos2unix ${PROJECT_DIR}/remove_vulnerability_pkgs.sh

Dockerfile-bbtools

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -15,27 +15,27 @@ ENV python_version=${python_version:-python3.10}
1515
COPY ca.crt /root/ca.crt
1616

1717
# Put certs in /etc/ssl/certs location
18-
RUN cat /root/ca.crt >> /etc/ssl/certs/ca-certificates.crt
18+
RUN cat /root/ca.crt >>/etc/ssl/certs/ca-certificates.crt
1919

2020
# Install system libraries of general use
2121
RUN apk update && apk add --no-cache \
2222
openjdk21-jre=21.0.5_p11-r0 \
2323
bash \
2424
vim \
2525
tar \
26-
dos2unix \
27-
&& pip install --upgrade pip
26+
dos2unix &&
27+
pip install --upgrade pip
2828

2929
# Set up project directory
3030
ENV PROJECT_DIR=/bbtools
3131

3232
############# Install bbtools ##################
3333

3434
# Copy all files to docker images
35-
COPY bbtools/* ${PROJECT_DIR}/
35+
COPY docker_files/bbtools/* ${PROJECT_DIR}/
3636

3737
# Copy all files to docker images
38-
COPY bbtools/install_bbtools.sh ${PROJECT_DIR}/install_bbtools.sh
38+
COPY docker_files/bbtools/install_bbtools.sh ${PROJECT_DIR}/install_bbtools.sh
3939

4040
# Convert bash script from Windows style line endings to Unix-like control characters
4141
RUN dos2unix ${PROJECT_DIR}/install_bbtools.sh
@@ -49,7 +49,7 @@ RUN bash ${PROJECT_DIR}/install_bbtools.sh
4949
############# Fix vulnerablities pkgs ##################
5050

5151
# Copy all files to docker images
52-
COPY fixed_vulnerability_pkgs.txt ${PROJECT_DIR}/fixed_vulnerability_pkgs.txt
52+
COPY docker_files/fixed_vulnerability_pkgs.txt ${PROJECT_DIR}/docker_files/fixed_vulnerability_pkgs.txt
5353

5454
# Copy all files to docker images
5555
COPY fixed_vulnerability_pkgs.sh ${PROJECT_DIR}/fixed_vulnerability_pkgs.sh
@@ -61,15 +61,15 @@ RUN dos2unix ${PROJECT_DIR}/fixed_vulnerability_pkgs.sh
6161
RUN chmod a+x ${PROJECT_DIR}/fixed_vulnerability_pkgs.sh
6262

6363
# Execute bash script to wget the file and tar the package
64-
RUN bash ${PROJECT_DIR}/fixed_vulnerability_pkgs.sh
64+
RUN bash ${PROJECT_DIR}/fixed_vulnerability_pkgs.sh
6565

6666
############# Remove vulnerability pkgs ##################
6767

6868
# Copy all files to docker images
69-
COPY remove_bbtools_vulnerability_pkgs.txt ${PROJECT_DIR}/remove_vulnerability_pkgs.txt
69+
COPY docker_files/remove_bbtools_vulnerability_pkgs.txt ${PROJECT_DIR}/remove_vulnerability_pkgs.txt
7070

7171
# Copy all files to docker images
72-
COPY remove_vulnerability_pkgs.sh ${PROJECT_DIR}/remove_vulnerability_pkgs.sh
72+
COPY docker_files/remove_vulnerability_pkgs.sh ${PROJECT_DIR}/remove_vulnerability_pkgs.sh
7373

7474
# Convert bash script from Windows style line endings to Unix-like control characters
7575
RUN dos2unix ${PROJECT_DIR}/remove_vulnerability_pkgs.sh
@@ -83,9 +83,9 @@ RUN bash ${PROJECT_DIR}/remove_vulnerability_pkgs.sh
8383
############# Remove the vendor packages ##################
8484

8585
# Clean up and remove unwanted files
86-
RUN rm -rf /usr/local/lib/${python_version}/site-packages/pip/_vendor \
87-
&& rm -rf /usr/local/lib/${python_version}/site-packages/pipenv/patched/pip/_vendor \
88-
&& rm -rf /usr/local/lib/${python_version}/site-packages/examples
86+
RUN rm -rf /usr/local/lib/${python_version}/site-packages/pip/_vendor &&
87+
rm -rf /usr/local/lib/${python_version}/site-packages/pipenv/patched/pip/_vendor &&
88+
rm -rf /usr/local/lib/${python_version}/site-packages/examples
8989

9090
############# Set up working directory ##################
9191

@@ -96,8 +96,7 @@ ENV WORKDIR=/data
9696
VOLUME ${WORKDIR}
9797

9898
# Set up working directory in docker
99-
WORKDIR ${WORKDIR}
99+
WORKDIR ${WORKDIR}
100100

101101
# Export project directory to PATH
102102
ENV PATH "$PATH:${PROJECT_DIR}/bbmap"
103-

Dockerfile-cutadapt

Lines changed: 13 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -19,26 +19,26 @@ ENV cutadapt_version=${cutadapt_version:-4.4}
1919
COPY ca.crt /root/ca.crt
2020

2121
# Put certs in /etc/ssl/certs location
22-
RUN cat /root/ca.crt >> /etc/ssl/certs/ca-certificates.crt
22+
RUN cat /root/ca.crt >>/etc/ssl/certs/ca-certificates.crt
2323

2424
# Install system libraries of general use
2525
RUN apk update && apk add --no-cache \
2626
openjdk21-jre=21.0.5_p11-r0 \
2727
bash \
28-
vim \
29-
&& pip install --upgrade pip \
30-
&& pip install --no-cache-dir cutadapt==${cutadapt_version}
28+
vim &&
29+
pip install --upgrade pip &&
30+
pip install --no-cache-dir cutadapt==${cutadapt_version}
3131

3232
# Set up project directory
3333
ENV PROJECT_DIR=/cutadapt
3434

3535
############# Fix vulnerablities pkgs ##################
3636

3737
# Copy all files to docker images
38-
COPY fixed_vulnerability_pkgs.txt ${PROJECT_DIR}/fixed_vulnerability_pkgs.txt
38+
COPY docker_files/fixed_vulnerability_pkgs.txt ${PROJECT_DIR}/fixed_vulnerability_pkgs.txt
3939

4040
# Copy all files to docker images
41-
COPY fixed_vulnerability_pkgs.sh ${PROJECT_DIR}/fixed_vulnerability_pkgs.sh
41+
COPY docker_files/fixed_vulnerability_pkgs.sh ${PROJECT_DIR}/fixed_vulnerability_pkgs.sh
4242

4343
# Convert bash script from Windows style line endings to Unix-like control characters
4444
RUN dos2unix ${PROJECT_DIR}/fixed_vulnerability_pkgs.sh
@@ -47,15 +47,15 @@ RUN dos2unix ${PROJECT_DIR}/fixed_vulnerability_pkgs.sh
4747
RUN chmod a+x ${PROJECT_DIR}/fixed_vulnerability_pkgs.sh
4848

4949
# Execute bash script to wget the file and tar the package
50-
RUN bash ${PROJECT_DIR}/fixed_vulnerability_pkgs.sh
50+
RUN bash ${PROJECT_DIR}/fixed_vulnerability_pkgs.sh
5151

5252
############# Remove vulnerability pkgs ##################
5353

5454
# Copy all files to docker images
55-
COPY remove_cutadapt_vulnerability_pkgs.txt ${PROJECT_DIR}/remove_vulnerability_pkgs.txt
55+
COPY docker_files/remove_cutadapt_vulnerability_pkgs.txt ${PROJECT_DIR}/remove_vulnerability_pkgs.txt
5656

5757
# Copy all files to docker images
58-
COPY remove_vulnerability_pkgs.sh ${PROJECT_DIR}/remove_vulnerability_pkgs.sh
58+
COPY docker_files/remove_vulnerability_pkgs.sh ${PROJECT_DIR}/remove_vulnerability_pkgs.sh
5959

6060
# Convert bash script from Windows style line endings to Unix-like control characters
6161
RUN dos2unix ${PROJECT_DIR}/remove_vulnerability_pkgs.sh
@@ -69,9 +69,9 @@ RUN bash ${PROJECT_DIR}/remove_vulnerability_pkgs.sh
6969
############# Remove the vendor packages ##################
7070

7171
# Clean up and remove unwanted files
72-
RUN rm -rf /usr/local/lib/${python_version}/site-packages/pip/_vendor \
73-
&& rm -rf /usr/local/lib/${python_version}/site-packages/pipenv/patched/pip/_vendor \
74-
&& rm -rf /usr/local/lib/${python_version}/site-packages/examples
72+
RUN rm -rf /usr/local/lib/${python_version}/site-packages/pip/_vendor &&
73+
rm -rf /usr/local/lib/${python_version}/site-packages/pipenv/patched/pip/_vendor &&
74+
rm -rf /usr/local/lib/${python_version}/site-packages/examples
7575

7676
############# Set up working directory ##################
7777

@@ -82,6 +82,4 @@ ENV WORKDIR=/data
8282
VOLUME ${WORKDIR}
8383

8484
# Set up working directory in docker
85-
WORKDIR ${WORKDIR}
86-
87-
85+
WORKDIR ${WORKDIR}

Dockerfile-fastqc

Lines changed: 18 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ ENV fastqc_version=${fastqc_version:-0.12.1}
1919
COPY ca.crt /root/ca.crt
2020

2121
# Put certs in /etc/ssl/certs location
22-
RUN cat /root/ca.crt >> /etc/ssl/certs/ca-certificates.crt
22+
RUN cat /root/ca.crt >>/etc/ssl/certs/ca-certificates.crt
2323

2424
# Install system libraries of general use
2525
RUN apk update && apk add --no-cache \
@@ -29,9 +29,9 @@ RUN apk update && apk add --no-cache \
2929
bash \
3030
perl \
3131
unzip \
32-
vim \
33-
&& pip install --upgrade pip
34-
32+
vim &&
33+
pip install --upgrade pip
34+
3535
# Get package version
3636
ENV FASTQC_PKG="fastqc_v${fastqc_version}.zip"
3737

@@ -42,9 +42,9 @@ WORKDIR /usr/local
4242
ADD http://www.bioinformatics.babraham.ac.uk/projects/fastqc/${FASTQC_PKG} /tmp/
4343

4444
# Download and install FastQC;
45-
RUN unzip /tmp/${FASTQC_PKG} \
46-
&& chmod 755 FastQC/fastqc \
47-
&& rm -rf /tmp/${FASTQC_PKG}
45+
RUN unzip /tmp/${FASTQC_PKG} &&
46+
chmod 755 FastQC/fastqc &&
47+
rm -rf /tmp/${FASTQC_PKG}
4848

4949
# Export program to PATH
5050
ENV PATH "$PATH:/usr/local/FastQC"
@@ -55,10 +55,10 @@ ENV PROJECT_DIR=/fastqc
5555
############# Fix vulnerablities pkgs ##################
5656

5757
# Copy all files to docker images
58-
COPY fixed_vulnerability_pkgs.txt ${PROJECT_DIR}/fixed_vulnerability_pkgs.txt
58+
COPY docker_files/fixed_vulnerability_pkgs.txt ${PROJECT_DIR}/fixed_vulnerability_pkgs.txt
5959

6060
# Copy all files to docker images
61-
COPY fixed_vulnerability_pkgs.sh ${PROJECT_DIR}/fixed_vulnerability_pkgs.sh
61+
COPY docker_files/fixed_vulnerability_pkgs.sh ${PROJECT_DIR}/fixed_vulnerability_pkgs.sh
6262

6363
# Convert bash script from Windows style line endings to Unix-like control characters
6464
RUN dos2unix ${PROJECT_DIR}/fixed_vulnerability_pkgs.sh
@@ -67,15 +67,15 @@ RUN dos2unix ${PROJECT_DIR}/fixed_vulnerability_pkgs.sh
6767
RUN chmod a+x ${PROJECT_DIR}/fixed_vulnerability_pkgs.sh
6868

6969
# Execute bash script to wget the file and tar the package
70-
RUN bash ${PROJECT_DIR}/fixed_vulnerability_pkgs.sh
70+
RUN bash ${PROJECT_DIR}/fixed_vulnerability_pkgs.sh
7171

7272
############# Remove vulnerability pkgs ##################
7373

7474
# Copy all files to docker images
75-
COPY remove_fastqc_vulnerability_pkgs.txt ${PROJECT_DIR}/remove_vulnerability_pkgs.txt
75+
COPY docker_files/remove_fastqc_vulnerability_pkgs.txt ${PROJECT_DIR}/remove_vulnerability_pkgs.txt
7676

7777
# Copy all files to docker images
78-
COPY remove_vulnerability_pkgs.sh ${PROJECT_DIR}/remove_vulnerability_pkgs.sh
78+
COPY docker_files/remove_vulnerability_pkgs.sh ${PROJECT_DIR}/remove_vulnerability_pkgs.sh
7979

8080
# Convert bash script from Windows style line endings to Unix-like control characters
8181
RUN dos2unix ${PROJECT_DIR}/remove_vulnerability_pkgs.sh
@@ -89,19 +89,18 @@ RUN bash ${PROJECT_DIR}/remove_vulnerability_pkgs.sh
8989
############# Remove the vendor packages ##################
9090

9191
# Clean up and remove unwanted files
92-
RUN rm -rf /usr/local/lib/${python_version}/site-packages/pip/_vendor \
93-
&& rm -rf /usr/local/lib/${python_version}/site-packages/pipenv/patched/pip/_vendor \
94-
&& rm -rf /usr/local/lib/${python_version}/site-packages/examples \
95-
&& rm -rf /usr/local/FastQC/cisd-jhdf5.jar
92+
RUN rm -rf /usr/local/lib/${python_version}/site-packages/pip/_vendor &&
93+
rm -rf /usr/local/lib/${python_version}/site-packages/pipenv/patched/pip/_vendor &&
94+
rm -rf /usr/local/lib/${python_version}/site-packages/examples &&
95+
rm -rf /usr/local/FastQC/cisd-jhdf5.jar
9696

9797
############# Set up working directory ##################
9898

99-
# Create working directory variable
99+
# Create working directory variable
100100
ENV WORKDIR=/data
101101

102102
# Set up volume directory in docker
103103
VOLUME ${WORKDIR}
104104

105105
# Set up working directory in docker
106-
WORKDIR ${WORKDIR}
107-
106+
WORKDIR ${WORKDIR}

Dockerfile-multiqc

Lines changed: 14 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -19,26 +19,26 @@ ENV multiqc_version=${multiqc_version:-1.19}
1919
COPY ca.crt /root/ca.crt
2020

2121
# Put certs in /etc/ssl/certs location
22-
RUN cat /root/ca.crt >> /etc/ssl/certs/ca-certificates.crt
22+
RUN cat /root/ca.crt >>/etc/ssl/certs/ca-certificates.crt
2323

2424
# Install system libraries of general use
2525
RUN apk update && apk add --no-cache \
2626
openjdk21-jre=21.0.5_p11-r0 \
2727
bash \
28-
vim \
29-
&& pip install --upgrade pip \
30-
&& pip install --no-cache-dir multiqc==${multiqc_version}
28+
vim &&
29+
pip install --upgrade pip &&
30+
pip install --no-cache-dir multiqc==${multiqc_version}
3131

3232
# Set up project directory
3333
ENV PROJECT_DIR=/multiqc
3434

3535
############# Fix vulnerablities pkgs ##################
3636

3737
# Copy all files to docker images
38-
COPY fixed_vulnerability_pkgs.txt ${PROJECT_DIR}/fixed_vulnerability_pkgs.txt
38+
COPY docker_files/fixed_vulnerability_pkgs.txt ${PROJECT_DIR}/fixed_vulnerability_pkgs.txt
3939

4040
# Copy all files to docker images
41-
COPY fixed_vulnerability_pkgs.sh ${PROJECT_DIR}/fixed_vulnerability_pkgs.sh
41+
COPY docker_files/fixed_vulnerability_pkgs.sh ${PROJECT_DIR}/fixed_vulnerability_pkgs.sh
4242

4343
# Convert bash script from Windows style line endings to Unix-like control characters
4444
RUN dos2unix ${PROJECT_DIR}/fixed_vulnerability_pkgs.sh
@@ -47,15 +47,15 @@ RUN dos2unix ${PROJECT_DIR}/fixed_vulnerability_pkgs.sh
4747
RUN chmod a+x ${PROJECT_DIR}/fixed_vulnerability_pkgs.sh
4848

4949
# Execute bash script to wget the file and tar the package
50-
RUN bash ${PROJECT_DIR}/fixed_vulnerability_pkgs.sh
50+
RUN bash ${PROJECT_DIR}/fixed_vulnerability_pkgs.sh
5151

5252
############# Remove vulnerability pkgs ##################
5353

5454
# Copy all files to docker images
55-
COPY remove_multiqc_vulnerability_pkgs.txt ${PROJECT_DIR}/remove_vulnerability_pkgs.txt
55+
COPY docker_files/remove_multiqc_vulnerability_pkgs.txt ${PROJECT_DIR}/remove_vulnerability_pkgs.txt
5656

5757
# Copy all files to docker images
58-
COPY remove_vulnerability_pkgs.sh ${PROJECT_DIR}/remove_vulnerability_pkgs.sh
58+
COPY docker_files/remove_vulnerability_pkgs.sh ${PROJECT_DIR}/remove_vulnerability_pkgs.sh
5959

6060
# Convert bash script from Windows style line endings to Unix-like control characters
6161
RUN dos2unix ${PROJECT_DIR}/remove_vulnerability_pkgs.sh
@@ -69,10 +69,10 @@ RUN bash ${PROJECT_DIR}/remove_vulnerability_pkgs.sh
6969
############# Remove the vendor packages ##################
7070

7171
# Clean up and remove unwanted files
72-
RUN rm -rf /usr/local/lib/${python_version}/site-packages/pip/_vendor \
73-
&& rm -rf /usr/local/lib/${python_version}/site-packages/pipenv/patched/pip/_vendor \
74-
&& rm -rf /usr/local/lib/${python_version}/site-packages/examples
75-
72+
RUN rm -rf /usr/local/lib/${python_version}/site-packages/pip/_vendor &&
73+
rm -rf /usr/local/lib/${python_version}/site-packages/pipenv/patched/pip/_vendor &&
74+
rm -rf /usr/local/lib/${python_version}/site-packages/examples
75+
7676
############# Set up working directory ##################
7777

7878
# Create working directory variable
@@ -82,5 +82,4 @@ ENV WORKDIR=/data
8282
VOLUME ${WORKDIR}
8383

8484
# Set up working directory in docker
85-
WORKDIR ${WORKDIR}
86-
85+
WORKDIR ${WORKDIR}
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)