From a3743ffe7524fe9c96844e0454c73fb7af0ea439 Mon Sep 17 00:00:00 2001 From: Georgii Karataev Date: Wed, 19 Jun 2024 15:30:12 +0200 Subject: [PATCH] chore: Remove search index publish scripts --- Dockerfile | 4 ---- Makefile | 10 +--------- .../{publishSearchIndex.go => generateSearchIndex.go} | 0 deploy/clowdapp.yml | 6 ------ docs/search-index.md | 8 -------- 5 files changed, 1 insertion(+), 27 deletions(-) rename cmd/search/{publishSearchIndex.go => generateSearchIndex.go} (100%) diff --git a/Dockerfile b/Dockerfile index 3f5d0ec4..da907024 100644 --- a/Dockerfile +++ b/Dockerfile @@ -16,16 +16,12 @@ ENV GO111MODULE=on USER root RUN go get -d -v RUN make validate-schema -RUN make publish-search-index-dry-run RUN make parse-services RUN make generate-search-index RUN CGO_ENABLED=1 go build -o /go/bin/chrome-service-backend # Build the migration binary. RUN CGO_ENABLED=1 go build -o /go/bin/chrome-migrate cmd/migrate/migrate.go -# Build the search index binary. -RUN CGO_ENABLED=1 go build -o /go/bin/chrome-search-index cmd/search/publishSearchIndex.go - FROM registry.redhat.io/ubi8-minimal:latest # Setup permissions to allow RDSCA to be written from clowder to container diff --git a/Makefile b/Makefile index a29e42f0..63f8de57 100644 --- a/Makefile +++ b/Makefile @@ -38,15 +38,7 @@ clean: validate-schema: go run cmd/validate/* - -publish-search-index: - go run cmd/search/* - -publish-search-index-dry-run: export SEARCH_INDEX_DRY_RUN = true - -publish-search-index-dry-run: - go run cmd/search/* - + generate-search-index: export SEARCH_INDEX_WRITE = true generate-search-index: diff --git a/cmd/search/publishSearchIndex.go b/cmd/search/generateSearchIndex.go similarity index 100% rename from cmd/search/publishSearchIndex.go rename to cmd/search/generateSearchIndex.go diff --git a/deploy/clowdapp.yml b/deploy/clowdapp.yml index 676afa35..a9ff083c 100644 --- a/deploy/clowdapp.yml +++ b/deploy/clowdapp.yml @@ -36,12 +36,6 @@ objects: - -c - chrome-migrate inheritEnv: true - - name: publish-search-index - command: - - bash - - -c - - chrome-search-index - inheritEnv: true livenessProbe: failureThreshold: 3 httpGet: diff --git a/docs/search-index.md b/docs/search-index.md index 919fcd11..951d67b3 100644 --- a/docs/search-index.md +++ b/docs/search-index.md @@ -75,11 +75,3 @@ To generate the search index follow these steps: 1. Make sure the correct files were changed. If you are changing navigation files, make sure to edit both stage and production files. 2. Run the `make generate-search-index` command from the project root - -## Publishing search index - -To publish the search index follow these steps: - -1. Make sure the correct files were changed. If you are changing navigation files, make sure to edit both stage and production files. -2. Make sure you are on RH wired network or on VPN -3. Run the `make publish-search-index` command from the project root