Skip to content

Commit

Permalink
Refactor for SCING
Browse files Browse the repository at this point in the history
  • Loading branch information
hisplan committed Aug 31, 2021
1 parent 5db1da5 commit d465422
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 3 deletions.
23 changes: 21 additions & 2 deletions build.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,26 @@
#!/bin/bash -e
#!/bin/bash

source config.sh

# get download url for Cell Ranger
if [ ! -n "$download_url" ]
then
if [ ! -x "$(command -v scing)" ]
then
echo "Please install SCING CLI (https://github.com/hisplan/scing)."
exit 1
fi

out=`scing --no-logo download --site-url ${site_url}`
if [ $? != 0 ]
then
echo "$out"
exit 1
fi
download_url=$out
fi

# build ${image_name}:${version}
docker build \
--tag ${image_name}:${version} \
--build-arg DOWNLOAD_URL=${download_url} \
Expand All @@ -15,7 +34,7 @@ cat Dockerfile \
| sed 's/^ENTRYPOINT \[/# ENTRYPOINT \[/g' \
| sed 's/^CMD \[/# CMD \[/g' > Dockerfile.cromwell

# build it
# build cromwell-${image_name}:${version}
docker build \
--tag cromwell-${image_name}:${version} \
--build-arg DOWNLOAD_URL=${download_url} \
Expand Down
3 changes: 2 additions & 1 deletion config.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
version="6.0.2"
vdj_ref_version="5.0.0"
download_url="https://cf.10xgenomics.com/releases/cell-exp/cellranger-6.0.2.tar.gz?Expires=1628576161&Policy=eyJTdGF0ZW1lbnQiOlt7IlJlc291cmNlIjoiaHR0cHM6Ly9jZi4xMHhnZW5vbWljcy5jb20vcmVsZWFzZXMvY2VsbC1leHAvY2VsbHJhbmdlci02LjAuMi50YXIuZ3oiLCJDb25kaXRpb24iOnsiRGF0ZUxlc3NUaGFuIjp7IkFXUzpFcG9jaFRpbWUiOjE2Mjg1NzYxNjF9fX1dfQ__&Signature=c4jpVDQb~oCKL~sUJvvhuOLTc1OwAK~g3JXeRFqXVhM9VXK4lXPGXUxAkUWsHZzZD2QAiONH4j2lNK44yFJaTqMNp1gzzWmsRXW-0HoSDZyxm4n9ikxVZgptXTSbSsMac7D7U71G0PPvc4v2M5cgHg-TJg7N2lVmw3QfVQkHC50rI60DL1VYxB-KMMjJ69xse5BlSsLfyKSRQQ9P-QhwMmluZIMVhWvcMSWKAqFmrth9trqtYkchXXX9~mxsAlYZJymaKRRoYJbJT~ctInx0jBmPz7EbUjLMdXhaeUQl2Uy~C9QH43ZvhAWb4~aphr6Iv8uYQw3wp7GoirURUII24A__&Key-Pair-Id=APKAI7S6A5RYOXBWRPDA"
site_url="https://support.10xgenomics.com/single-cell-vdj/software/downloads/6.0/"
download_url=""

# docker related
registry="quay.io/hisplan"
Expand Down

0 comments on commit d465422

Please sign in to comment.