Skip to content

Commit

Permalink
#57 debug
Browse files Browse the repository at this point in the history
  • Loading branch information
kernelsam committed Oct 30, 2023
1 parent 962d179 commit e06a17d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions aws/Push-Staging-Images-To-ECR.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,20 +21,24 @@ phases:
echo "[INFO] Login to dockerhub"
aws secretsmanager get-secret-value --secret-id $DOCKERHUB_ACCESS_TOKEN | jq -r '.SecretString' | docker login \
--username $(aws secretsmanager get-secret-value --secret-id $DOCKERHUB_USERNAME) | jq -r '.SecretString' --password-stdin
else
echo "[INFO] Skipping dockerhub login"
fi
build:
commands:

# Build senzingapi-runtime base image
- |
echo "[INFO] $CODEBUILD_SRC_DIR_senzingapi_runtime"
cd $CODEBUILD_SRC_DIR_senzingapi_runtime
build_args=(
"--build-arg SENZING_APT_INSTALL_PACKAGE=senzingapi-runtime "
"--build-arg SENZING_APT_REPOSITORY_NAME=${SENZING_APT_REPO_PACKAGE} "
"--build-arg SENZING_APT_REPOSITORY_URL=https://${SENZING_APT_REPOSITORY} "
"--build-arg SENZING_APT_INSTALL_PACKAGE=senzingapi-runtime=${SENZING_RUNTIME_VERSION}"
)
echo "[INFO] ./aws/docker-build.sh -a "$(printf '%s\n' "${build_args[*]}")" -t "senzing/senzingapi-runtime:staging""
./aws/docker-build.sh -a "$(printf '%s\n' "${build_args[*]}")" \
-t "senzing/senzingapi-runtime:staging"
Expand Down
3 changes: 3 additions & 0 deletions aws/docker-build.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
#!/usr/bin/env bash

# exit when any command fails
set -e

# Default variable values
build_arguments=""
image_tag=""
Expand Down

0 comments on commit e06a17d

Please sign in to comment.