mirror of
https://github.com/MillironX/nf-core_modules.git
synced 2024-12-22 02:58:17 +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
|
||||
- name: Find changed tools
|
||||
run: |
|
||||
TOOLS=$( git diff --name-only HEAD~ | egrep -o 'tools\/[^\/]+\/' | sort | uniq | awk NF )
|
||||
echo "Tools that appear to have been updated:"
|
||||
echo $TOOLS
|
||||
TOOLS=$( git diff --name-only HEAD~ | egrep -o 'tools\/[^\/]+\/' | sort | uniq | awk NF | tr '\r\n' ' ' )
|
||||
# Save so that GitHub Actions can see this variable in the next step
|
||||
echo "::set-env name=TOOLS::$TOOLS"
|
||||
echo "Tools that appear to have been updated:"
|
||||
echo $TOOLS
|
||||
|
||||
|
||||
- name: Build images
|
||||
run: |
|
||||
echo "Running the docker build"
|
||||
echo $TOOLS
|
||||
echo "Tools that appear to have been updated:"
|
||||
echo -e $TOOLS
|
||||
echo '-----'
|
||||
for TOOL in $TOOLS; do
|
||||
echo $TOOL
|
||||
done;
|
||||
echo '-----'
|
||||
for d in tools/*; do
|
||||
echo "In directory $d"
|
||||
for TOOL in $TOOLS; do
|
||||
echo "Tool is $TOOL"
|
||||
echo "$d -- $TOOL"
|
||||
if echo $d/ | grep -q "$TOOL"; then
|
||||
cd "$GITHUB_WORKSPACE/$d"
|
||||
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"
|
||||
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 push $IMGNAME
|
||||
fi;
|
||||
|
|
|
@ -2,6 +2,7 @@ FROM nfcore/base:1.7
|
|||
LABEL authors="phil.ewels@scilifelab.se" \
|
||||
description="Docker image for nf-core modules fastqc"
|
||||
|
||||
# foobar
|
||||
COPY environment.yml /
|
||||
RUN conda env create -f /environment.yml && conda clean -a
|
||||
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