Skip to content

Commit

Permalink
wip: Add support for kapture service #265
Browse files Browse the repository at this point in the history
ci: login to docker before build the services because of rate limiting
  • Loading branch information
cnouguier committed Oct 6, 2021
1 parent e310fbe commit 0fc5740
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .travis.build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@ build_and_push()
DOCKERFILE_OPT=""
fi

docker login -u="$DOCKER_USER" -p="$DOCKER_PASSWORD"
echo "Building $TOOL:$VERSION from $CONTEXT"
docker build --force-rm --build-arg VERSION=$VERSION $DOCKERFILE_OPT -t kalisio/$TOOL:$VERSION $CONTEXT
RESULT_CODE=$?
if [ $RESULT_CODE -ne 0 ]; then
echo "$TOOL generation failed [error: $RESULT_CODE]"
exit 1
fi
docker login -u="$DOCKER_USER" -p="$DOCKER_PASSWORD"
docker push kalisio/$TOOL:$VERSION
}

Expand Down
4 changes: 2 additions & 2 deletions deploy/kapture.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ services:
- KANO_URL=${KAPTURE_KANO_URL}
- KANO_JWT=${KAPTURE_KANO_JWT}
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:3000/healthcheck"]
test: ["CMD", "wget", "-q", "--tries=1", "--spider", "http://localhost:3000/healthcheck"]
interval: 30s
timeout: 5s
timeout: 10s
retries: 3
start_period: 1m
deploy:
Expand Down

0 comments on commit 0fc5740

Please sign in to comment.