Skip to content

Commit

Permalink
MAINT: fix code style issue in script reported by codacy
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastientourbier committed Oct 30, 2020
1 parent 186e73a commit 89a3a7f
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions build_jupyter.sh
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@
#! /bin/sh
CMP_BUILD_DATE=$(date -u +"%Y-%m-%dT%H:%M:%SZ")
echo $CMP_BUILD_DATE
CMP_BUILD_DATE="$(date -u +"%Y-%m-%dT%H:%M:%SZ")"
echo "$CMP_BUILD_DATE"

VERSION=v$(python get_version.py)
echo $VERSION
VERSION="v$(python get_version.py)"
echo "$VERSION"

VCS_REF=$(git rev-parse --verify HEAD)
echo $VCS_REF
VCS_REF="$(git rev-parse --verify HEAD)"
echo "$VCS_REF"

MAIN_DOCKER="sebastientourbier/mialsuperresolutiontoolkit-ubuntu14.04:${VERSION}"
echo $MAIN_DOCKER
echo "$MAIN_DOCKER"

docker build --rm --build-arg BUILD_DATE=$CMP_BUILD_DATE \
--build-arg VCS_REF=$VCS_REF \
--build-arg VERSION=$VERSION \
docker build --rm --build-arg BUILD_DATE="$CMP_BUILD_DATE" \
--build-arg VCS_REF="$VCS_REF" \
--build-arg VERSION="$VERSION" \
-t "${MAIN_DOCKER}" . \

JUPYTER_DOCKER="sebastientourbier/mialsuperresolutiontoolkit-jupyter:${VERSION}"

docker build --rm --build-arg BUILD_DATE=$CMP_BUILD_DATE \
--build-arg VERSION=$VERSION \
--build-arg VCS_REF=$VCS_REF \
--build-arg MAIN_DOCKER=$MAIN_DOCKER \
docker build --rm --build-arg BUILD_DATE="$CMP_BUILD_DATE" \
--build-arg VERSION="$VERSION" \
--build-arg VCS_REF="$VCS_REF" \
--build-arg MAIN_DOCKER="$MAIN_DOCKER" \
-t "${JUPYTER_DOCKER}" ./docker/jupyter

0 comments on commit 89a3a7f

Please sign in to comment.