Skip to content
Open
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
90 changes: 45 additions & 45 deletions libBuild.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,55 +4,55 @@ set -Eeuo pipefail

# Regions that support arm64 architecture
REGIONS_ARM=(
af-south-1
ap-northeast-1
ap-northeast-2
ap-northeast-3
ap-south-1
ap-southeast-1
ap-southeast-2
ap-southeast-3
ca-central-1
eu-central-1
eu-north-1
eu-south-1
eu-west-1
eu-west-2
eu-west-3
me-south-1
sa-east-1
# af-south-1
# ap-northeast-1
# ap-northeast-2
# ap-northeast-3
# ap-south-1
# ap-southeast-1
# ap-southeast-2
# ap-southeast-3
# ca-central-1
# eu-central-1
# eu-north-1
# eu-south-1
# eu-west-1
# eu-west-2
# eu-west-3
# me-south-1
# sa-east-1
us-east-1
us-east-2
us-west-1
# us-east-2
# us-west-1
us-west-2
)

REGIONS_X86=(
af-south-1
ap-northeast-1
ap-northeast-2
ap-northeast-3
ap-south-1
ap-south-2
ap-southeast-1
ap-southeast-2
ap-southeast-3
ap-southeast-4
ca-central-1
eu-central-1
eu-central-2
eu-north-1
eu-south-1
eu-south-2
eu-west-1
eu-west-2
eu-west-3
me-central-1
me-south-1
sa-east-1
# af-south-1
# ap-northeast-1
# ap-northeast-2
# ap-northeast-3
# ap-south-1
# ap-south-2
# ap-southeast-1
# ap-southeast-2
# ap-southeast-3
# ap-southeast-4
# ca-central-1
# eu-central-1
# eu-central-2
# eu-north-1
# eu-south-1
# eu-south-2
# eu-west-1
# eu-west-2
# eu-west-3
# me-central-1
# me-south-1
# sa-east-1
us-east-1
us-east-2
us-west-1
# us-east-2
# us-west-1
us-west-2
)

Expand Down Expand Up @@ -243,7 +243,7 @@ function publish_layer {

hash=$( hash_file $layer_archive | awk '{ print $1 }' )

bucket_name="nr-layers-${region}"
bucket_name="nr-test-saket-layers-${region}"
s3_key="$( s3_prefix $runtime_name )/${hash}.${arch}.zip"

compat_list=( $runtime_name )
Expand Down Expand Up @@ -343,7 +343,7 @@ function publish_docker_ecr {

# public ecr repository name
# maintainer can use this("q6k3q1g1") repo name for testing
repository="x6n7b2o2"
repository="q6k3q1g1"

# copy dockerfile
cp ../Dockerfile.ecrImage .
Expand Down
5 changes: 3 additions & 2 deletions python/publish-layers.sh
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,9 @@ function build_python_layer {
exit 1;
fi

pip install --no-cache-dir -qU "newrelic==${NEWRELIC_AGENT_VERSION}" newrelic-lambda -t $BUILD_DIR/lib/python${python_version}/site-packages
cp newrelic_lambda_wrapper.py "$BUILD_DIR/lib/python${python_version}/site-packages/newrelic_lambda_wrapper.py"
# Modifying path as per https://docs.aws.amazon.com/lambda/latest/dg/packaging-layers.html
pip install --no-cache-dir -qU "newrelic==${NEWRELIC_AGENT_VERSION}" newrelic-lambda -t $BUILD_DIR
cp newrelic_lambda_wrapper.py "$BUILD_DIR/newrelic_lambda_wrapper.py"
find $BUILD_DIR -name '__pycache__' -exec rm -rf {} +

download_extension $arch
Expand Down