2021-07-06 12:40:55 +00:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
set -euo pipefail
|
|
|
|
|
|
|
|
# Build and push all containers
|
|
|
|
|
|
|
|
build_push() {
|
|
|
|
GENOME=$1
|
|
|
|
SNPEFF_CACHE_VERSION=$2
|
2022-07-13 13:16:21 +00:00
|
|
|
SNPEFF_VERSION=$3
|
2021-07-06 12:40:55 +00:00
|
|
|
|
|
|
|
docker build \
|
2022-05-05 10:57:14 +00:00
|
|
|
. \
|
2022-07-13 13:16:21 +00:00
|
|
|
-t nfcore/snpeff:${SNPEFF_VERSION}.${GENOME} \
|
2021-07-06 12:40:55 +00:00
|
|
|
--build-arg GENOME=${GENOME} \
|
2022-05-05 10:57:14 +00:00
|
|
|
--build-arg SNPEFF_CACHE_VERSION=${SNPEFF_CACHE_VERSION} \
|
2022-07-13 13:16:21 +00:00
|
|
|
--build-arg SNPEFF_VERSION=${SNPEFF_VERSION}
|
2021-07-06 12:40:55 +00:00
|
|
|
|
2022-07-13 13:16:21 +00:00
|
|
|
docker push nfcore/snpeff:${SNPEFF_VERSION}.${GENOME}
|
2021-07-06 12:40:55 +00:00
|
|
|
}
|
|
|
|
|
2022-07-13 13:16:21 +00:00
|
|
|
build_push "GRCh37" "87" "5.1"
|
|
|
|
build_push "GRCh38" "105" "5.1"
|
|
|
|
build_push "GRCm38" "99" "5.1"
|
|
|
|
build_push "GRCm39" "105" "5.1"
|
|
|
|
build_push "CanFam3.1" "99" "5.1"
|
|
|
|
build_push "WBcel235" "105" "5.1"
|