mirror of
https://github.com/MillironX/nf-core_modules.git
synced 2024-11-10 20:23:10 +00:00
Tidying, add samtools and trim_galore
This commit is contained in:
parent
198e9a85eb
commit
c8ceddfe77
6 changed files with 51 additions and 9 deletions
25
.github/workflows/docker.yml
vendored
25
.github/workflows/docker.yml
vendored
|
@ -20,26 +20,33 @@ jobs:
|
||||||
# Annoyingly, matrix can't take dynamic variables
|
# Annoyingly, matrix can't take dynamic variables
|
||||||
- name: Find changed tools
|
- name: Find changed tools
|
||||||
run: |
|
run: |
|
||||||
TOOLS=$( git diff --name-only HEAD~ | egrep -o 'tools\/[^\/]+\/' | sort | uniq | awk NF )
|
TOOLS=$( git diff --name-only HEAD~ | egrep -o 'tools\/[^\/]+\/' | sort | uniq | awk NF | tr '\r\n' ' ' )
|
||||||
echo "Tools that appear to have been updated:"
|
|
||||||
echo $TOOLS
|
|
||||||
# Save so that GitHub Actions can see this variable in the next step
|
# Save so that GitHub Actions can see this variable in the next step
|
||||||
echo "::set-env name=TOOLS::$TOOLS"
|
echo "::set-env name=TOOLS::$TOOLS"
|
||||||
|
echo "Tools that appear to have been updated:"
|
||||||
|
echo $TOOLS
|
||||||
|
|
||||||
|
|
||||||
- name: Build images
|
- name: Build images
|
||||||
run: |
|
run: |
|
||||||
echo "Running the docker build"
|
echo "Tools that appear to have been updated:"
|
||||||
echo $TOOLS
|
echo -e $TOOLS
|
||||||
|
echo '-----'
|
||||||
|
for TOOL in $TOOLS; do
|
||||||
|
echo $TOOL
|
||||||
|
done;
|
||||||
|
echo '-----'
|
||||||
for d in tools/*; do
|
for d in tools/*; do
|
||||||
echo "In directory $d"
|
|
||||||
for TOOL in $TOOLS; do
|
for TOOL in $TOOLS; do
|
||||||
echo "Tool is $TOOL"
|
echo "$d -- $TOOL"
|
||||||
if echo $d/ | grep -q "$TOOL"; then
|
if echo $d/ | grep -q "$TOOL"; then
|
||||||
cd "$GITHUB_WORKSPACE/$d"
|
cd "$GITHUB_WORKSPACE/$d"
|
||||||
TOOLNAME=$(basename `pwd`)
|
TOOLNAME=$(basename `pwd`)
|
||||||
IMGNAME=docker.pkg.github.com/${GITHUB_REPOSITORY,,}/${TOOLNAME,,}:$GITHUB_SHA
|
# IMGNAME=docker.pkg.github.com/${GITHUB_REPOSITORY,,}/${TOOLNAME,,}:$GITHUB_SHA
|
||||||
|
# TODO: How do we have a proper version tag here?
|
||||||
|
IMGNAME=docker.pkg.github.com/${GITHUB_REPOSITORY,,}/${TOOLNAME,,}:latest
|
||||||
echo "Image name is: $IMGNAME"
|
echo "Image name is: $IMGNAME"
|
||||||
docker login -u ${{ github.actor }} -p ${{ secrets.GITHUB_TOKEN }} docker.pkg.github.com
|
echo "${{ secrets.GITHUB_TOKEN }}" | docker login -u ${{ github.actor }} --password-stdin docker.pkg.github.com
|
||||||
docker build -t $IMGNAME .
|
docker build -t $IMGNAME .
|
||||||
docker push $IMGNAME
|
docker push $IMGNAME
|
||||||
fi;
|
fi;
|
||||||
|
|
|
@ -2,6 +2,7 @@ FROM nfcore/base:1.7
|
||||||
LABEL authors="phil.ewels@scilifelab.se" \
|
LABEL authors="phil.ewels@scilifelab.se" \
|
||||||
description="Docker image for nf-core modules fastqc"
|
description="Docker image for nf-core modules fastqc"
|
||||||
|
|
||||||
|
# foobar
|
||||||
COPY environment.yml /
|
COPY environment.yml /
|
||||||
RUN conda env create -f /environment.yml && conda clean -a
|
RUN conda env create -f /environment.yml && conda clean -a
|
||||||
ENV PATH /opt/conda/envs/nf-core-modules-fastqc/bin:$PATH
|
ENV PATH /opt/conda/envs/nf-core-modules-fastqc/bin:$PATH
|
||||||
|
|
8
tools/samtools/Dockerfile
Normal file
8
tools/samtools/Dockerfile
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
FROM nfcore/base:1.7
|
||||||
|
LABEL authors="phil.ewels@scilifelab.se" \
|
||||||
|
description="Docker image for nf-core modules samtools"
|
||||||
|
|
||||||
|
# foobar
|
||||||
|
COPY environment.yml /
|
||||||
|
RUN conda env create -f /environment.yml && conda clean -a
|
||||||
|
ENV PATH /opt/conda/envs/nf-core-modules-samtools/bin:$PATH
|
9
tools/samtools/environment.yml
Normal file
9
tools/samtools/environment.yml
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
# You can use this file to create a conda environment for this pipeline:
|
||||||
|
# conda env create -f environment.yml
|
||||||
|
name: nf-core-modules-samtools
|
||||||
|
channels:
|
||||||
|
- conda-forge
|
||||||
|
- bioconda
|
||||||
|
- defaults
|
||||||
|
dependencies:
|
||||||
|
- samtools=1.9
|
8
tools/trim_galore/Dockerfile
Normal file
8
tools/trim_galore/Dockerfile
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
FROM nfcore/base:1.7
|
||||||
|
LABEL authors="phil.ewels@scilifelab.se" \
|
||||||
|
description="Docker image for nf-core modules trimgalore"
|
||||||
|
|
||||||
|
# foobar
|
||||||
|
COPY environment.yml /
|
||||||
|
RUN conda env create -f /environment.yml && conda clean -a
|
||||||
|
ENV PATH /opt/conda/envs/nf-core-modules-trimgalore/bin:$PATH
|
9
tools/trim_galore/environment.yml
Normal file
9
tools/trim_galore/environment.yml
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
# You can use this file to create a conda environment for this pipeline:
|
||||||
|
# conda env create -f environment.yml
|
||||||
|
name: nf-core-modules-trimgalore
|
||||||
|
channels:
|
||||||
|
- conda-forge
|
||||||
|
- bioconda
|
||||||
|
- defaults
|
||||||
|
dependencies:
|
||||||
|
- trim-galore=0.6.4
|
Loading…
Reference in a new issue