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
|
|
|
|
SNPEFF_TAG=$3
|
|
|
|
|
|
|
|
docker build \
|
2022-05-05 13:41:13 +00:00
|
|
|
. \
|
2021-07-06 12:40:55 +00:00
|
|
|
-t nfcore/snpeff:${SNPEFF_TAG}.${GENOME} \
|
|
|
|
--build-arg GENOME=${GENOME} \
|
2022-05-05 13:41:13 +00:00
|
|
|
--build-arg SNPEFF_CACHE_VERSION=${SNPEFF_CACHE_VERSION} \
|
|
|
|
--build-arg SNPEFF_TAG=${SNPEFF_TAG}
|
2021-07-06 12:40:55 +00:00
|
|
|
|
|
|
|
docker push nfcore/snpeff:${SNPEFF_TAG}.${GENOME}
|
|
|
|
}
|
|
|
|
|
|
|
|
build_push "GRCh37" "75" "5.0"
|
|
|
|
build_push "GRCh38" "99" "5.0"
|
|
|
|
build_push "GRCm38" "99" "5.0"
|
|
|
|
build_push "CanFam3.1" "99" "5.0"
|
|
|
|
build_push "WBcel235" "99" "5.0"
|