Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update healthcheck and ports #3343

Merged
merged 1 commit into from
Aug 16, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion agent-container/agent-config.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"author":"Amazon Web Services, Inc.","config":{"Cmd":["/agent"],"ArgsEscaped":true},"created":"~~timestamp~~","history":[{"created":"~~timestamp~~","author":"Amazon Web Services, Inc.","created_by":"°o°","empty_layer":true}],"os":"linux","rootfs":{"type":"layers","diff_ids":["sha256:~~digest~~"]}}
{"author":"Amazon Web Services, Inc.","config":{"Cmd":["/agent"],"ArgsEscaped":true},"created":"~~timestamp~~","config":{"ExposedPorts":{"51678/tcp":{},"51679/tcp":{}},"Healthcheck":{"Test":["CMD","/agent","--healthcheck"]}},"history":[{"created":"~~timestamp~~","author":"Amazon Web Services, Inc.","created_by":"°o°","empty_layer":true}],"os":"linux","rootfs":{"type":"layers","diff_ids":["sha256:~~digest~~"]}}
2 changes: 1 addition & 1 deletion buildspecs/merge-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ phases:

# Git short sha - used to name artifacts and make release json
# This variable is exported
- GIT_COMMIT_SHORT_SHA=$(git rev-parse --short HEAD)
- GIT_COMMIT_SHORT_SHA=$(git rev-parse --short=8 HEAD)

# Different names of under which tar is released
- ECS_AGENT_TAR="ecs-agent-v${AGENT_VERSION}.tar"
Expand Down
4 changes: 4 additions & 0 deletions buildspecs/release-config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,15 @@ phases:
- RELEASE_DATE=$(date +'%Y%m%d')

# Prepare agent.json config file
# TODO initStagingConfig.release version configurable
- |
cat << EOF > agent.json
{
"agentReleaseVersion" : "$AGENT_VERSION",
"releaseDate" : "$RELEASE_DATE",
"initStagingConfig" {
"release": "1"
},
"agentStagingConfig": {
"releaseGitSha": "$GIT_COMMIT_SHA",
"releaseGitShortSha": "$GIT_COMMIT_SHORT_SHA",
Expand Down
2 changes: 1 addition & 1 deletion scripts/verify-agent-artifacts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

AGENT_VERSION="${1:-}"
BUCKET_NAME="${2:-}"
SHA=$(git rev-parse --short HEAD)
SHA=$(git rev-parse --short=8 HEAD)

usage() {
echo "Usage: ${0} AGENT_VERSION BUCKET_NAME"
Expand Down