-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
TM416 alfresco reindexing job (#100)
* Update reindexing-job.yaml * 🔧 make all config dynamic, create taskfile and add index task * Update Taskfile.yml * new logic to create new jobs as they complete * Update Taskfile.yml * add continue feature * Update Taskfile.yml * patch pvc * test new index name * Update Taskfile.yml * reindexing optimisations * version mapping * filestore patch * updates * Update data-refresh.yaml * Update data-refresh.yaml * Update job.yaml * Update data-refresh.yaml * Update job.yaml * pooling * indexing updates * optimisations * amq port forwarding bug * feat: new script to stat amq queues * feat: count any amq stat * updates * new migration job * Update migrate-s3.yaml * Update migrate-s3.yaml * Update migrate-s3.yaml * Update migrate-s3.yaml * Update migrate-s3.yaml * fix * Update migrate-s3.yaml * Update migrate-s3.yaml * Update migrate-s3.yaml * updates for indexing * Update Taskfile.yml * Update migrate-s3.yaml * Update migrate-s3.yaml * Update migrate-s3.yaml * add helm job * Update migrate-s3.yaml * fix * modify jobs
- Loading branch information
1 parent
54e4e14
commit d2b3b15
Showing
53 changed files
with
12,930 additions
and
122 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -42,7 +42,11 @@ jobs: | |
run: | | ||
kubectl scale deployment alfresco-content-services-alfresco-cs-repository --replicas=0 | ||
kubectl scale deployment alfresco-content-services-alfresco-cs-share --replicas=0 | ||
kubectl scale deployment alfresco-content-services-alfresco-search-enterprise-liveindexing --replicas=0 | ||
kubectl scale deployment alfresco-content-services-alfresco-search-enterprise-content --replicas=0 | ||
kubectl scale deployment alfresco-content-services-alfresco-search-enterprise-metadata --replicas=0 | ||
kubectl scale deployment alfresco-content-services-alfresco-search-enterprise-path --replicas=0 | ||
kubectl scale deployment alfresco-content-services-alfresco-search-enterprise-mediation --replicas=0 | ||
kubectl scale deployment alfresco-content-services-alfresco-router --replicas=0 | ||
refresh-db: | ||
name: Refresh DB | ||
|
@@ -53,7 +57,7 @@ jobs: | |
steps: | ||
- uses: actions/[email protected] | ||
|
||
- name: Install Kubernetes | ||
- name: Install kubectl | ||
uses: azure/[email protected] | ||
with: | ||
version: 'v1.26.0' # default is latest stable | ||
|
@@ -95,7 +99,7 @@ jobs: | |
steps: | ||
- uses: actions/[email protected] | ||
|
||
- name: Install Kubernetes | ||
- name: Install k | ||
uses: azure/[email protected] | ||
with: | ||
version: 'v1.26.0' # default is latest stable | ||
|
@@ -130,12 +134,12 @@ jobs: | |
SRC_BUCKET=$(kubectl get secrets s3-bucket-output -o jsonpath='{.data.BUCKET_NAME}' | base64 -d) | ||
DIRS=$(kubectl exec $SERVICE_POD_NAME -- aws s3 ls $SRC_BUCKET | grep -v contentstore | awk -F ' ' '{print $2}' | tr -d '/' | tr '\n' ',') | ||
DIRS=$(kubectl exec $SERVICE_POD_NAME -- aws s3 ls $SRC_BUCKET | grep -v contentstore | awk '/\/$/ && NF {print $2}' | tr -d '/' | tr '\n' ',' | sed 's/,$/\n/') | ||
helm install refresh-s3 . \ | ||
--set sourceEnvironment=${{ github.event.inputs.source_env }} \ | ||
--set destinationEnvironment=${{ github.event.inputs.destination_env }} \ | ||
--set directories="{${DIRS:0:-1}}" | ||
--set directories="{${DIRS}}" | ||
kubectl wait jobs -l name-prefix=refresh-s3 --for=condition=complete --timeout 10h | ||
|
@@ -197,4 +201,8 @@ jobs: | |
kubectl scale deployment alfresco-content-services-alfresco-cs-repository --replicas=$(echo $HELM_VALUES | jq '.repository.replicaCount') | ||
kubectl scale deployment alfresco-content-services-alfresco-cs-share --replicas=$(echo $HELM_VALUES | jq '.share.replicaCount') | ||
kubectl scale deployment alfresco-content-services-alfresco-search-enterprise-liveindexing --replicas=1 | ||
kubectl scale deployment alfresco-content-services-alfresco-search-enterprise-content --replicas=1 | ||
kubectl scale deployment alfresco-content-services-alfresco-search-enterprise-metadata --replicas=1 | ||
kubectl scale deployment alfresco-content-services-alfresco-search-enterprise-path --replicas=1 | ||
kubectl scale deployment alfresco-content-services-alfresco-search-enterprise-mediation --replicas=1 | ||
kubectl scale deployment alfresco-content-services-alfresco-router --replicas=1 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
environment: preprod |
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.