Skip to content

Commit

Permalink
Remove kafka-streamer
Browse files Browse the repository at this point in the history
  • Loading branch information
radazen committed Aug 15, 2024
1 parent dbd5a31 commit 00ac6ff
Show file tree
Hide file tree
Showing 51 changed files with 5 additions and 6,659 deletions.
1 change: 0 additions & 1 deletion .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,4 @@
!autosocial
!activity_stats
!opensea-streamer
!kafka-streamer
!platform
11 changes: 0 additions & 11 deletions .github/workflows/deployer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -94,17 +94,6 @@ jobs:
gcp-credentials-json: ${{ secrets.GCP_PROD_CREDENTIALS }}
- name: 'Deploy'
run: make deploy-prod-opensea-streamer
deploy-prod-kafka-streamer:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: 'Install build deps'
uses: ./.github/actions/build-deps
with:
sentry-auth-token: ${{ secrets.SENTRY_AUTH_TOKEN }}
gcp-credentials-json: ${{ secrets.GCP_PROD_CREDENTIALS }}
- name: 'Deploy'
run: make deploy-prod-kafka-streamer
deploy-dev-feed:
runs-on: ubuntu-latest
steps:
Expand Down
20 changes: 0 additions & 20 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ start-dev-sql-proxy : REQUIRED_SOPS_SECRETS := $(SOPS_DEV_SECRETS)
start-prod-sql-proxy : REQUIRED_SOPS_SECRETS := $(SOPS_PROD_SECRETS)
migrate-dev-coredb : REQUIRED_SOPS_SECRETS := $(SOPS_DEV_SECRETS)
migrate-prod-coredb : REQUIRED_SOPS_SECRETS := $(SOPS_PROD_SECRETS)
migrate-prod-mirrordb : REQUIRED_SOPS_SECRETS := $(SOPS_PROD_SECRETS)

# Environment-specific settings
$(DEPLOY)-$(DEV)-% : ENV := $(DEV)
Expand Down Expand Up @@ -95,7 +94,6 @@ $(DEPLOY)-$(PROD)-autosocial-orch : SERVICE_FILE := autosocial-env.yaml
$(DEPLOY)-$(PROD)-tokenprocessing : SERVICE_FILE := tokenprocessing-env.yaml
$(DEPLOY)-$(PROD)-pushnotifications : SERVICE_FILE := pushnotifications-env.yaml
$(DEPLOY)-$(PROD)-opensea-streamer : SERVICE_FILE := opensea-streamer-env.yaml
$(DEPLOY)-$(PROD)-kafka-streamer : SERVICE_FILE := kafka-streamer-env.yaml
$(DEPLOY)-$(PROD)-dummymetadata : SERVICE_FILE := dummymetadata-env.yaml
$(DEPLOY)-$(PROD)-emails : SERVICE_FILE := emails-server-env.yaml
$(DEPLOY)-$(PROD)-routing-rules : SERVICE_FILE := dispatch.yaml
Expand All @@ -114,7 +112,6 @@ $(DEPLOY)-%-emails : SENTRY_PROJECT := emails
$(DEPLOY)-%-userpref-upload : SENTRY_PROJECT := userpref
$(DEPLOY)-%-activitystats : SENTRY_PROJECT := activitystats
$(DEPLOY)-%-opensea-streamer : SENTRY_PROJECT := opensea-streamer
$(DEPLOY)-%-kafka-streamer : SENTRY_PROJECT := kafka-streamer
$(DEPLOY)-%-autosocial : SENTRY_PROJECT := autosocial
$(DEPLOY)-%-autosocial-orch : SENTRY_PROJECT := autosocial

Expand Down Expand Up @@ -232,15 +229,6 @@ $(DEPLOY)-%-opensea-streamer : CONCURRENCY := $(OPENSEA_STREAMER_CO
$(DEPLOY)-%-opensea-streamer : DEPLOY_FLAGS = $(BASE_DEPLOY_FLAGS) --no-cpu-throttling
$(DEPLOY)-$(DEV)-opensea-streamer : SERVICE := opensea-streamer
$(DEPLOY)-$(PROD)-opensea-streamer : SERVICE := opensea-streamer
$(DEPLOY)-%-kafka-streamer : REPO := kafka-streamer
$(DEPLOY)-%-kafka-streamer : DOCKER_FILE := $(DOCKER_DIR)/kafka-streamer/Dockerfile
$(DEPLOY)-%-kafka-streamer : PORT := 3000
$(DEPLOY)-%-kafka-streamer : TIMEOUT := $(KAFKA_STREAMER_TIMEOUT)
$(DEPLOY)-%-kafka-streamer : CPU := $(KAFKA_STREAMER_CPU)
$(DEPLOY)-%-kafka-streamer : MEMORY := $(KAFKA_STREAMER_MEMORY)
$(DEPLOY)-%-kafka-streamer : CONCURRENCY := $(KAFKA_STREAMER_CONCURRENCY)
$(DEPLOY)-%-kafka-streamer : DEPLOY_FLAGS = $(BASE_DEPLOY_FLAGS) --no-cpu-throttling
$(DEPLOY)-$(PROD)-kafka-streamer : SERVICE := kafka-streamer
$(DEPLOY)-%-rasterizer : SERVICE := rasterizer
$(DEPLOY)-%-rasterizer : REPO := rasterizer
$(DEPLOY)-%-rasterizer : DOCKER_FILE := $(DOCKER_DIR)/rasterizer/Dockerfile
Expand Down Expand Up @@ -480,7 +468,6 @@ $(DEPLOY)-$(PROD)-emails : _set-project-$(ENV) _$(DOCKER)-$(DE
$(DEPLOY)-$(PROD)-feed : _set-project-$(ENV) _$(DOCKER)-$(DEPLOY)-feed _$(RELEASE)-feed
$(DEPLOY)-$(PROD)-feedbot : _set-project-$(ENV) _$(DOCKER)-$(DEPLOY)-feedbot _$(RELEASE)-feedbot
$(DEPLOY)-$(PROD)-opensea-streamer : _set-project-$(ENV) _$(DOCKER)-$(DEPLOY)-opensea-streamer _$(RELEASE)-opensea-streamer
$(DEPLOY)-$(PROD)-kafka-streamer : _set-project-$(ENV) _$(DOCKER)-$(DEPLOY)-kafka-streamer _$(RELEASE)-kafka-streamer
$(DEPLOY)-$(PROD)-admin : _set-project-$(ENV) _$(DEPLOY)-admin
$(DEPLOY)-$(PROD)-routing-rules : _set-project-$(ENV) _$(DEPLOY)-routing-rules
$(DEPLOY)-$(PROD)-graphql-gateway : _set-project-$(ENV) _$(DOCKER)-$(DEPLOY)-graphql-gateway
Expand Down Expand Up @@ -509,7 +496,6 @@ $(PROMOTE)-$(PROD)-dummymetadata : _set-project-$(ENV) _$(DOCKER)-$(PROMOTE
$(PROMOTE)-$(PROD)-emails : _set-project-$(ENV) _$(DOCKER)-$(PROMOTE)-emails
$(PROMOTE)-$(PROD)-feed : _set-project-$(ENV) _$(DOCKER)-$(PROMOTE)-feed
$(PROMOTE)-$(PROD)-opensea-streamer : _set-project-$(ENV) _$(DOCKER)-$(PROMOTE)-opensea-streamer
$(PROMOTE)-$(PROD)-kafka-streamer : _set-project-$(ENV) _$(DOCKER)-$(PROMOTE)-kafka-streamer
$(PROMOTE)-$(PROD)-feedbot : _set-project-$(ENV) _$(PROMOTE)-feedbot
$(PROMOTE)-$(PROD)-admin : _set-project-$(ENV) _$(PROMOTE)-admin

Expand Down Expand Up @@ -624,12 +610,6 @@ migrate-prod-coredb: start-prod-sql-proxy confirm-prod-migrate
POSTGRES_PORT=6543 \
go run cmd/migrate/main.go

migrate-prod-mirrordb: start-prod-sql-proxy confirm-prod-migrate
@POSTGRES_USER=$(POSTGRES_MIGRATION_USER) \
POSTGRES_PASSWORD=$(POSTGRES_MIGRATION_PASSWORD) \
POSTGRES_PORT=6544 \
go run cmd/migrate/main.go mirror

fix-sops-macs:
@cd secrets; ../scripts/fix-sops-macs.sh

Expand Down
4 changes: 0 additions & 4 deletions cmd/migrate/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,6 @@ func init() {
func main() {
migrations := "./db/migrations/core"

if len(os.Args) > 1 && os.Args[1] == "mirror" {
migrations = "./db/migrations/mirror"
}

superRequired, err := migrate.SuperUserRequired(migrations)
if err != nil {
panic(err)
Expand Down
Loading

0 comments on commit 00ac6ff

Please sign in to comment.