Skip to content

Commit

Permalink
Add helper script for building local docker images
Browse files Browse the repository at this point in the history
  • Loading branch information
axdanbol committed Sep 8, 2023
1 parent 3370442 commit b7d7d5a
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions scripts/build-containers.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/bin/bash
shopt -s extglob
set -e

ALL_CONTAINERS=$(basename -a ./containers/*)
CONTAINERS=${@:-$ALL_CONTAINERS}

for NAME in $CONTAINERS; do
cp -r ./src/ ./containers/$NAME/context/
docker build -t ghcr.io/hubmapconsortium/hra-workflows/$NAME:main ./containers/$NAME/
done

0 comments on commit b7d7d5a

Please sign in to comment.