This repository has been archived by the owner on Jul 19, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Fixing README (#45) * Updated License Badge Colors/Logo (#46) * Allow custom subnets in canaries (#47) * Allow custom subnets in canaries * Renamed canary EKS cluster * Build integration test container programmatically (#48) * Added script to deploy new integration container * Add AWSCLI to alpine container * Fixed incorrect script path * Modified AWSCLI installation * Start docker daemon * Removed sudo * Added docker daemon nohup * Move into tests to build * Added comments and documentation references * Float release semver up to major and minor tags (#50) * Adding non-ephemeral canary support (#51) * Fixing HPO/BT deletion resource leak when SageMaker throttles Describe (#52) * Fixing HPOJob leak when SageMaker throttles DescribeHPO requests * Fixing BatchTransformJob leak when SageMaker throttles DescribeBatchTransformJob requests * Do not delete non-ephemeral cluster (#54) * Push smlogs binaries with tags (#53) * Added tagged prefix binaries * Added full variables path * Proper printf format * Move import before logging * Renamed deployment_constants
- Loading branch information
Showing
15 changed files
with
230 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# This CodeBuild project is run using the docker:stable-dind container | ||
# Docker daemon start-up script was taken from the following URL: | ||
# https://docs.aws.amazon.com/codebuild/latest/userguide/sample-docker-custom-image.html | ||
|
||
version: 0.2 | ||
phases: | ||
install: | ||
commands: | ||
- nohup /usr/local/bin/dockerd --host=unix:///var/run/docker.sock --host=tcp://127.0.0.1:2375 --storage-driver=overlay2& | ||
- timeout 15 sh -c "until docker info; do echo .; sleep 1; done" | ||
pre_build: | ||
commands: | ||
# Add AWSCLI and bash | ||
- (apk add --update python python-dev py-pip build-base bash && pip install awscli --upgrade) | ||
build: | ||
commands: | ||
# Build new integration test container | ||
- (IMG=$INTEGRATION_CONTAINER_REPOSITORY bash codebuild/scripts/build_deploy_integration_container.sh) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#!/bin/bash | ||
|
||
# This script will build the integration test container. This container contains | ||
# all the tools necessary for running the build and test steps for each of the | ||
# CodeBuild projects. The script will also tag the container with the latest | ||
# commit SHA, and with the "latest" tag, then push to an ECR repository. | ||
|
||
set -x | ||
|
||
# Build new integration test container | ||
pushd tests | ||
IMG=$INTEGRATION_CONTAINER_REPOSITORY bash build_integration.sh | ||
popd | ||
|
||
# Log into ECR | ||
$(aws ecr get-login --no-include-email --region $REGION --registry-ids $AWS_ACCOUNT_ID) | ||
|
||
# Tag the container with SHA and latest | ||
docker tag $INTEGRATION_CONTAINER_REPOSITORY $AWS_ACCOUNT_ID.dkr.ecr.$REGION.amazonaws.com/$INTEGRATION_CONTAINER_REPOSITORY:$CODEBUILD_RESOLVED_SOURCE_VERSION | ||
docker tag $INTEGRATION_CONTAINER_REPOSITORY $AWS_ACCOUNT_ID.dkr.ecr.$REGION.amazonaws.com/$INTEGRATION_CONTAINER_REPOSITORY:latest | ||
|
||
# Push the newly tagged containers | ||
docker push $AWS_ACCOUNT_ID.dkr.ecr.$REGION.amazonaws.com/$INTEGRATION_CONTAINER_REPOSITORY:$CODEBUILD_RESOLVED_SOURCE_VERSION | ||
docker push $AWS_ACCOUNT_ID.dkr.ecr.$REGION.amazonaws.com/$INTEGRATION_CONTAINER_REPOSITORY:latest |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
RELEASE_BUCKET_NAME_FMT="%s-%s" | ||
|
||
RELEASE_BINARY_PREFIX_FMT="s3://%s/kubectl-smlogs-plugin" | ||
ALPHA_BINARY_PREFIX_FMT="s3://%s/%s" | ||
|
||
ALPHA_LINUX_BINARY_PATH_FMT="%s/kubectl-smlogs-plugin.linux.amd64.tar.gz" | ||
ALPHA_DARWIN_BINARY_PATH_FMT="%s/kubectl-smlogs-plugin.darwin.amd64.tar.gz" | ||
|
||
RELEASE_LINUX_BINARY_PATH_FMT="%s/%s/linux.amd64.tar.gz" | ||
RELEASE_DARWIN_BINARY_PATH_FMT="%s/%s/darwin.amd64.tar.gz" | ||
|
||
PUBLIC_CP_ARGS="--acl public-read" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.