Skip to content

Commit

Permalink
reinstate pipeline and fix deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
kenoir committed Jan 8, 2025
1 parent b5505a9 commit e032729
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 42 deletions.
4 changes: 2 additions & 2 deletions builds/deploy_catalogue_pipeline.sh
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ then

echo "Deploying λ pipeline services to catalogue-$PIPELINE_DATE"
"$ROOT/builds/deploy_lambda_services.sh" \
batcher \
relation_embedder
r_embed_batcher:batcher \
r_embed_embedder:relation_embedder
fi

9 changes: 6 additions & 3 deletions builds/deploy_lambda_services.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,13 @@ set -o pipefail
PIPELINE_NAMESPACE="catalogue-$PIPELINE_DATE"
REPOSITORY_URI="760097843905.dkr.ecr.eu-west-1.amazonaws.com"

for SERVICE_NAME in "$@"
for FUNCTION_SUFFIX_IMAGE_NAME_PAIR in "$@"
do
IMAGE_URI="${REPOSITORY_URI}"/uk.ac.wellcome/"${SERVICE_NAME}":"env.${PIPELINE_DATE}"
FUNCTION_NAME="${PIPELINE_NAMESPACE}"-"${SERVICE_NAME}"
FUNCTION_SUFFIX="${FUNCTION_SUFFIX_IMAGE_NAME_PAIR%:*}"
IMAGE_NAME="${FUNCTION_SUFFIX_IMAGE_NAME_PAIR#*:}"

IMAGE_URI="${REPOSITORY_URI}"/uk.ac.wellcome/"${IMAGE_NAME}":"env.${PIPELINE_DATE}"
FUNCTION_NAME="${PIPELINE_NAMESPACE}"-"${FUNCTION_SUFFIX}"

echo "Deploying ${IMAGE_URI} to ${FUNCTION_NAME}, @ $(date) ..."

Expand Down
68 changes: 31 additions & 37 deletions pipeline/terraform/2024-11-18/main.tf
Original file line number Diff line number Diff line change
@@ -1,38 +1,32 @@
# DEACTIVATED - 2024-12-16
# This pipeline has been deactivated over the winter break,
# to save costs and will be reactivated in the new year.
# We need to keep this folder, so that new deploys don't go
# to the production environment.
module "pipeline" {
source = "../modules/stack"

# module "pipeline" {
# source = "../modules/stack"
#
# reindexing_state = {
# listen_to_reindexer = false
# scale_up_tasks = false
# scale_up_elastic_cluster = false
# scale_up_id_minter_db = false
# scale_up_matcher_db = false
# }
#
# index_config = {
# works = {
# identified = "works_identified.2023-05-26"
# merged = "works_merged.2023-05-26"
# indexed = "works_indexed.2024-11-14"
# }
# images = {
# indexed = "images_indexed.2024-11-14"
# works_analysis = "works_indexed.2024-11-06"
# }
# }
#
# allow_delete_indices = true
#
# pipeline_date = local.pipeline_date
# release_label = local.pipeline_date
#
# providers = {
# aws.catalogue = aws.catalogue
# }
# }
reindexing_state = {
listen_to_reindexer = true
scale_up_tasks = true
scale_up_elastic_cluster = true
scale_up_id_minter_db = true
scale_up_matcher_db = true
}

index_config = {
works = {
identified = "works_identified.2023-05-26"
merged = "works_merged.2023-05-26"
indexed = "works_indexed.2024-11-14"
}
images = {
indexed = "images_indexed.2024-11-14"
works_analysis = "works_indexed.2024-11-06"
}
}

allow_delete_indices = false

pipeline_date = local.pipeline_date
release_label = local.pipeline_date

providers = {
aws.catalogue = aws.catalogue
}
}

0 comments on commit e032729

Please sign in to comment.