From a549e8bbbf1a91f7a8c88d562c017d201ef09b48 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=20Erik=20St=C3=B8wer?= Date: Tue, 14 May 2024 22:09:40 +0200 Subject: [PATCH 1/5] Remove entur infra config --- Dockerfile | 8 -- api/apiproxy/flexible-lines.xml | 36 --------- .../policies/assignMessage.addCors.xml | 31 -------- .../flowCallout.generalStackdriverLogging.xml | 7 -- ...lowCallout.getEnvironmentConfiguration.xml | 22 ----- .../policies/flowCallout.replaceTargetUrl.xml | 22 ----- api/apiproxy/policies/spikeArrest.xml | 23 ------ api/apiproxy/proxies/flexible-lines-v1.xml | 64 --------------- api/apiproxy/targets/flexible-lines-v1.xml | 47 ----------- helm/uttu/Chart.lock | 6 -- helm/uttu/Chart.yaml | 17 ---- helm/uttu/charts/common-1.17.5.tgz | Bin 14343 -> 0 bytes helm/uttu/env/values-kub-ent-dev.yaml | 33 -------- helm/uttu/env/values-kub-ent-prd.yaml | 35 -------- helm/uttu/env/values-kub-ent-tst.yaml | 32 -------- helm/uttu/templates/_helpers.tpl | 37 --------- helm/uttu/templates/configmap.yaml | 75 ------------------ helm/uttu/templates/ingress.yaml | 21 ----- helm/uttu/templates/uttu-psql-configmap.yaml | 9 --- helm/uttu/values.yaml | 48 ----------- terraform/.tool-versions | 1 - terraform/backend.tf | 6 -- terraform/env/kub-ent-dev.tfvars | 3 - terraform/env/kub-ent-prd.tfvars | 3 - terraform/env/kub-ent-tst.tfvars | 3 - terraform/main.tf | 61 -------------- terraform/variables.tf | 45 ----------- 27 files changed, 695 deletions(-) delete mode 100644 Dockerfile delete mode 100644 api/apiproxy/flexible-lines.xml delete mode 100644 api/apiproxy/policies/assignMessage.addCors.xml delete mode 100644 api/apiproxy/policies/flowCallout.generalStackdriverLogging.xml delete mode 100644 api/apiproxy/policies/flowCallout.getEnvironmentConfiguration.xml delete mode 100644 api/apiproxy/policies/flowCallout.replaceTargetUrl.xml delete mode 100644 api/apiproxy/policies/spikeArrest.xml delete mode 100644 api/apiproxy/proxies/flexible-lines-v1.xml delete mode 100644 api/apiproxy/targets/flexible-lines-v1.xml delete mode 100644 helm/uttu/Chart.lock delete mode 100644 helm/uttu/Chart.yaml delete mode 100644 helm/uttu/charts/common-1.17.5.tgz delete mode 100644 helm/uttu/env/values-kub-ent-dev.yaml delete mode 100644 helm/uttu/env/values-kub-ent-prd.yaml delete mode 100644 helm/uttu/env/values-kub-ent-tst.yaml delete mode 100644 helm/uttu/templates/_helpers.tpl delete mode 100644 helm/uttu/templates/configmap.yaml delete mode 100644 helm/uttu/templates/ingress.yaml delete mode 100644 helm/uttu/templates/uttu-psql-configmap.yaml delete mode 100644 helm/uttu/values.yaml delete mode 100644 terraform/.tool-versions delete mode 100644 terraform/backend.tf delete mode 100644 terraform/env/kub-ent-dev.tfvars delete mode 100644 terraform/env/kub-ent-prd.tfvars delete mode 100644 terraform/env/kub-ent-tst.tfvars delete mode 100644 terraform/main.tf delete mode 100644 terraform/variables.tf diff --git a/Dockerfile b/Dockerfile deleted file mode 100644 index 02e7a85e..00000000 --- a/Dockerfile +++ /dev/null @@ -1,8 +0,0 @@ -FROM bellsoft/liberica-openjdk-alpine:21.0.3-10 -RUN apk update && apk upgrade && apk add --no-cache \ - tini -WORKDIR /deployments -COPY target/uttu-*-SNAPSHOT.jar uttu.jar -RUN addgroup appuser && adduser --disabled-password appuser --ingroup appuser -USER appuser -CMD [ "/sbin/tini", "--", "java", "-jar", "uttu.jar" ] diff --git a/api/apiproxy/flexible-lines.xml b/api/apiproxy/flexible-lines.xml deleted file mode 100644 index a4d7daea..00000000 --- a/api/apiproxy/flexible-lines.xml +++ /dev/null @@ -1,36 +0,0 @@ - - - - - flexible-lines - flexible-lines - - assignMessage.addCors - flowCallout.getEnvironmentConfiguration - flowCallout.generalStackdriverLogging - flowCalloutreplaceTargetUrl - spikeArrest - - - flexible-lines-v1 - - - - - - flexible-lines-v1 - - diff --git a/api/apiproxy/policies/assignMessage.addCors.xml b/api/apiproxy/policies/assignMessage.addCors.xml deleted file mode 100644 index ac07e628..00000000 --- a/api/apiproxy/policies/assignMessage.addCors.xml +++ /dev/null @@ -1,31 +0,0 @@ - - - - - assignMessage.addCors - - - - -
*
-
*
-
3628800
-
GET, PUT, POST, DELETE
-
-
- true - -
diff --git a/api/apiproxy/policies/flowCallout.generalStackdriverLogging.xml b/api/apiproxy/policies/flowCallout.generalStackdriverLogging.xml deleted file mode 100644 index e1703aef..00000000 --- a/api/apiproxy/policies/flowCallout.generalStackdriverLogging.xml +++ /dev/null @@ -1,7 +0,0 @@ - - - flowCallout.generalStackdriverLogging - - - generalStackdriverLogging - \ No newline at end of file diff --git a/api/apiproxy/policies/flowCallout.getEnvironmentConfiguration.xml b/api/apiproxy/policies/flowCallout.getEnvironmentConfiguration.xml deleted file mode 100644 index e695faef..00000000 --- a/api/apiproxy/policies/flowCallout.getEnvironmentConfiguration.xml +++ /dev/null @@ -1,22 +0,0 @@ - - - - - flowCallout.getEnvironmentConfiguration - - - fetchEnvironmentConfiguration - diff --git a/api/apiproxy/policies/flowCallout.replaceTargetUrl.xml b/api/apiproxy/policies/flowCallout.replaceTargetUrl.xml deleted file mode 100644 index 9ad4dbef..00000000 --- a/api/apiproxy/policies/flowCallout.replaceTargetUrl.xml +++ /dev/null @@ -1,22 +0,0 @@ - - - - - flowCallout.replaceTargetUrl - - - replaceTargetUrl - diff --git a/api/apiproxy/policies/spikeArrest.xml b/api/apiproxy/policies/spikeArrest.xml deleted file mode 100644 index bce44598..00000000 --- a/api/apiproxy/policies/spikeArrest.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - spikeArrest - - - 600pm - false - diff --git a/api/apiproxy/proxies/flexible-lines-v1.xml b/api/apiproxy/proxies/flexible-lines-v1.xml deleted file mode 100644 index e2b414a1..00000000 --- a/api/apiproxy/proxies/flexible-lines-v1.xml +++ /dev/null @@ -1,64 +0,0 @@ - - - - - - - - - - - - - assignMessage.addCors - - - request.verb == "OPTIONS" AND request.header.origin != null AND request.header.Access-Control-Request-Method != null - - - - - - - flowCallout.generalStackdriverLogging - - - - - - - - spikeArrest - - - - flowCallout.getEnvironmentConfiguration - - - - - - /timetable-admin/v1/flexible-lines - - entur - - - request.verb == "OPTIONS" AND request.header.origin != null AND request.header.Access-Control-Request-Method != null - - - flexible-lines-v1 - - diff --git a/api/apiproxy/targets/flexible-lines-v1.xml b/api/apiproxy/targets/flexible-lines-v1.xml deleted file mode 100644 index 9c7b624d..00000000 --- a/api/apiproxy/targets/flexible-lines-v1.xml +++ /dev/null @@ -1,47 +0,0 @@ - - - - - - - - - flowCallout.generalStackdriverLogging - - - - - - - - - - - flowCallout.replaceTargetUrl - - - - - - assignMessage.addCors - - - - - - https://timetable-admin-v1-flexible-lines-gcp2.INGRESS_ENVIRONMENT/services/flexible-lines - - \ No newline at end of file diff --git a/helm/uttu/Chart.lock b/helm/uttu/Chart.lock deleted file mode 100644 index d30894ea..00000000 --- a/helm/uttu/Chart.lock +++ /dev/null @@ -1,6 +0,0 @@ -dependencies: -- name: common - repository: https://entur.github.io/helm-charts - version: 1.17.5 -digest: sha256:548d4b1e40dd575cb2036735ec04bd469d8cea4c4f32e372cf3b9513ee621912 -generated: "2024-01-19T15:17:31.306013614+01:00" diff --git a/helm/uttu/Chart.yaml b/helm/uttu/Chart.yaml deleted file mode 100644 index c82c6888..00000000 --- a/helm/uttu/Chart.yaml +++ /dev/null @@ -1,17 +0,0 @@ -apiVersion: v2 -appVersion: "0.1.80" -description: Backend for flexible transport editor -name: uttu -version: 0.1.0 -keywords: - - uttu -sources: - - https://github.com/entur/uttu -maintainers: - - name: 'team-ror' - email: team.rutedata@entur.org -engine: gotpl -dependencies: - - name: common - version: 1.17.5 - repository: "https://entur.github.io/helm-charts" \ No newline at end of file diff --git a/helm/uttu/charts/common-1.17.5.tgz b/helm/uttu/charts/common-1.17.5.tgz deleted file mode 100644 index 7bf75b4e09615ede723f0631c8923443bb2d3858..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001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RVLW BYXtxR diff --git a/helm/uttu/env/values-kub-ent-dev.yaml b/helm/uttu/env/values-kub-ent-dev.yaml deleted file mode 100644 index 1a6f48ff..00000000 --- a/helm/uttu/env/values-kub-ent-dev.yaml +++ /dev/null @@ -1,33 +0,0 @@ -common: - env: dev - deployment: - replicas: 1 - -sql: - instance: ent-uttu-dev:europe-west1:uttu-db-pg13=tcp:5432 - -ingress: - domainName: -gcp2.dev.entur.io - - -configMap: - organisationRegistryUrl: https://api.dev.entur.io/organisations/v1/register/organisations - stopplaceRegistryUrl: https://api.dev.entur.io/stop-places/v1/read - auth0: - ror: - url: https://ror-entur-dev.eu.auth0.com/ - audience: https://ror.api.dev.entur.io - partner: - url: https://partner.dev.entur.org/ - client: - tokenUri: https://partner.dev.entur.org/oauth/token - clientId: 4a5zhKZaENqIl1u0m5blot8sYKVTUIec - orgRegister: - audience: https://api.dev.entur.io - pubsubProjectId: ent-marduk-dev - blobstoreProjectId: ent-marduk-dev - blobstoreContainerName: marduk-exchange-dev - logLevel: DEBUG - flywayTable: schema_version - exportQueueName: FlexibleLinesExportQueue - exportBlobFolder: inbound/uttu/ \ No newline at end of file diff --git a/helm/uttu/env/values-kub-ent-prd.yaml b/helm/uttu/env/values-kub-ent-prd.yaml deleted file mode 100644 index 89e2c0d1..00000000 --- a/helm/uttu/env/values-kub-ent-prd.yaml +++ /dev/null @@ -1,35 +0,0 @@ -common: - env: prd - deployment: - replicas: 2 - container: - forceReplicas: 2 - -sql: - instance: ent-uttu-prd:europe-west1:uttu-db-pg13=tcp:5432 - -ingress: - domainName: -gcp2.entur.io - - -configMap: - organisationRegistryUrl: https://api.entur.io/organisations/v1/register/organisations - stopplaceRegistryUrl: https://api.entur.io/stop-places/v1/read - auth0: - ror: - url: https://auth2.entur.org/ - audience: https://ror.api.entur.io - partner: - url: https://partner.entur.org/ - client: - tokenUri: https://partner.entur.org/oauth/token - clientId: 1ZZMds7c0urOXHAMuklhv2puDcdVUQIW - orgRegister: - audience: https://api.entur.io - pubsubProjectId: ent-marduk-prd - blobstoreProjectId: ent-marduk-prd - blobstoreContainerName: marduk-exchange-production - logLevel: INFO - flywayTable: flyway_schema_history - exportQueueName: FlexibleLinesExportQueue - exportBlobFolder: inbound/uttu/ diff --git a/helm/uttu/env/values-kub-ent-tst.yaml b/helm/uttu/env/values-kub-ent-tst.yaml deleted file mode 100644 index 944d9349..00000000 --- a/helm/uttu/env/values-kub-ent-tst.yaml +++ /dev/null @@ -1,32 +0,0 @@ -common: - env: tst - deployment: - replicas: 1 - -sql: - instance: ent-uttu-tst:europe-west1:uttu-db-pg13=tcp:5432 - -ingress: - domainName: -gcp2.staging.entur.io - -configMap: - organisationRegistryUrl: https://api.staging.entur.io/organisations/v1/register/organisations - stopplaceRegistryUrl: https://api.staging.entur.io/stop-places/v1/read - auth0: - ror: - url: https://ror-entur-staging.eu.auth0.com/ - audience: https://ror.api.staging.entur.io - partner: - url: https://partner.staging.entur.org/ - client: - tokenUri: https://partner.staging.entur.org/oauth/token - clientId: AXXN2zBqjVWKOp2uJGXv44ehaQwkHUJS - orgRegister: - audience: https://api.staging.entur.io - pubsubProjectId: ent-marduk-tst - blobstoreProjectId: ent-marduk-tst - blobstoreContainerName: marduk-exchange-test - logLevel: INFO - flywayTable: flyway_schema_history - exportQueueName: FlexibleLinesExportQueue - exportBlobFolder: inbound/uttu/ diff --git a/helm/uttu/templates/_helpers.tpl b/helm/uttu/templates/_helpers.tpl deleted file mode 100644 index d811ac18..00000000 --- a/helm/uttu/templates/_helpers.tpl +++ /dev/null @@ -1,37 +0,0 @@ -{{/* vim: set filetype=mustache: */}} -{{/* -Expand the name of the chart. -*/}} -{{- define "app.name" -}} -uttu -{{- end -}} - -{{/* -Create a default fully qualified app name. -We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec). -If release name contains chart name it will be used as a full name. -*/}} -{{- define "app.fullname" -}} -{{- if .Values.fullnameOverride -}} -{{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" -}} -{{- else -}} -{{- $name := default .Chart.Name .Values.nameOverride -}} -{{- if contains $name .Release.Name -}} -{{- .Release.Name | trunc 63 | trimSuffix "-" -}} -{{- else -}} -{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" -}} -{{- end -}} -{{- end -}} -{{- end -}} - - -{{/* Generate basic labels */}} -{{- define "uttu.common.labels" }} -app: {{ template "app.name" . }} -chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }} -release: {{ .Release.Name }} -team: ror -slack: talk-ror -environment: {{ .Values.common.env }} -namespace: {{ .Release.Namespace }} -{{- end }} \ No newline at end of file diff --git a/helm/uttu/templates/configmap.yaml b/helm/uttu/templates/configmap.yaml deleted file mode 100644 index 17a5fa52..00000000 --- a/helm/uttu/templates/configmap.yaml +++ /dev/null @@ -1,75 +0,0 @@ -apiVersion: v1 -kind: ConfigMap -metadata: - name: {{ template "app.name" . }}-application - namespace: {{ .Release.Namespace }} - labels: - {{- include "uttu.common.labels" . | indent 4 }} -data: - application.properties: |- - organisation.registry.url={{ .Values.configMap.organisationRegistryUrl }} - stopplace.registry.url={{ .Values.configMap.stopplaceRegistryUrl }} - export.notify.enabled=true - export.notify.queue.name={{ .Values.configMap.exportQueueName }} - export.blob.folder={{ .Values.configMap.exportBlobFolder }} - export.blob.filenameSuffix=-flexible-lines - export.blob.commonFileFilenameSuffix=_flexible_shared_data - export.working.folder=/tmp/export - - # gcs - blobstore.gcs.project.id={{ .Values.configMap.blobstoreProjectId }} - blobstore.gcs.container.name={{ .Values.configMap.blobstoreContainerName }} - - # pubsub - spring.cloud.gcp.pubsub.project-id={{ .Values.configMap.pubsubProjectId }} - spring.cloud.gcp.pubsub.subscriber.parallel-pull-count=1 - spring.cloud.gcp.pubsub.subscriber.executor-threads=30 - spring.cloud.gcp.pubsub.subscriber.max-ack-extension-period=36000 - - # Database properties - spring.jpa.open-in-view=false - spring.jpa.properties.hibernate.temp.use_jdbc_metadata_defaults=false - spring.jpa.database=POSTGRESQL - spring.jpa.hibernate.ddl-auto=none - spring.database.driverClassName=org.postgresql.Driver - spring.datasource.url=jdbc:postgresql://localhost:5432/uttu - spring.datasource.platform=postgres - spring.datasource.username=uttu - spring.flyway.table={{ .Values.configMap.flywayTable }} - - #OAuth2 Resource Server - - # OAuth2 Resource Server - uttu.oauth2.resourceserver.auth0.ror.claim.namespace=https://ror.entur.io/ - - # OAuth2 Resource Server for Entur Partner tenant - uttu.oauth2.resourceserver.auth0.entur.partner.jwt.issuer-uri={{ .Values.configMap.auth0.partner.url }} - uttu.oauth2.resourceserver.auth0.entur.partner.jwt.audience={{ .Values.configMap.auth0.ror.audience }} - - # OAuth2 Resource Server for RoR tenant - uttu.oauth2.resourceserver.auth0.ror.jwt.issuer-uri={{ .Values.configMap.auth0.ror.url }} - uttu.oauth2.resourceserver.auth0.ror.jwt.audience={{ .Values.configMap.auth0.ror.audience }} - - - #Oauth2 Client - spring.security.oauth2.client.provider.orgregister.token-uri={{ .Values.configMap.auth0.client.tokenUri }} - spring.security.oauth2.client.registration.orgregister.client-id={{ .Values.configMap.auth0.client.clientId }} - spring.security.oauth2.client.registration.orgregister.authorization-grant-type=client_credentials - orgregister.oauth2.client.audience={{ .Values.configMap.orgRegister.audience }} - - # Spring Actuator - management.server.port= {{ .Values.common.service.internalPort }} - management.endpoints.enabled-by-default=false - management.endpoint.info.enabled=true - management.endpoint.health.enabled=true - management.endpoint.health.group.readiness.include=readinessState,db,pubSub - management.endpoint.prometheus.enabled=true - management.endpoints.web.exposure.include=info,health,prometheus - - # Logging - logging.level.no.entur.uttu={{ .Values.configMap.logLevel }} - logging.level.no.entur.uttu.health.rest.HealthResource=INFO - - # Profile - spring.profiles.active=gcs-blobstore,entur,entur-legacy-organisation-registry - spring.main.allow-bean-definition-overriding=true diff --git a/helm/uttu/templates/ingress.yaml b/helm/uttu/templates/ingress.yaml deleted file mode 100644 index 516bf334..00000000 --- a/helm/uttu/templates/ingress.yaml +++ /dev/null @@ -1,21 +0,0 @@ -apiVersion: networking.k8s.io/v1 -kind: Ingress -metadata: - labels: - traffic-type: api - {{- include "uttu.common.labels" . | indent 4 }} - annotations: - kubernetes.io/ingress.class: traefik - name: timetable-admin-v1-flexible-lines - namespace: {{ .Release.Namespace }} -spec: - rules: - - host: timetable-admin-v1-flexible-lines{{ .Values.ingress.domainName }} - http: - paths: - - pathType: ImplementationSpecific - backend: - service: - name: {{ template "app.name" . }} - port: - number: {{ .Values.common.service.externalPort }} \ No newline at end of file diff --git a/helm/uttu/templates/uttu-psql-configmap.yaml b/helm/uttu/templates/uttu-psql-configmap.yaml deleted file mode 100644 index dc04b2ad..00000000 --- a/helm/uttu/templates/uttu-psql-configmap.yaml +++ /dev/null @@ -1,9 +0,0 @@ -apiVersion: v1 -data: - INSTANCES: {{.Values.sql.instance}} -kind: ConfigMap -metadata: - name: uttu-psql-connection - namespace: {{ .Release.Namespace }} - labels: - {{- include "uttu.common.labels" . | indent 4 }} diff --git a/helm/uttu/values.yaml b/helm/uttu/values.yaml deleted file mode 100644 index 947c72df..00000000 --- a/helm/uttu/values.yaml +++ /dev/null @@ -1,48 +0,0 @@ -common: - app: uttu - shortname: uttu - team: ror - ingress: - enabled: false - service: - externalPort: 80 - internalPort: 8080 - container: - forceReplicas: 1 - image: <+artifacts.primary.image> - cpu: 1 - memory: 2000 - memoryLimit: 3000 - probes: - liveness: - path: /actuator/health/liveness - readiness: - path: /actuator/health/readiness - prometheus: - enabled: true - path: /actuator/prometheus - volumeMounts: - - mountPath: /etc/application-config - name: application-config - readOnly: true - volumes: - - configMap: - defaultMode: 420 - name: uttu-application - name: application-config - postgres: - enabled: true - memory: 40 - - configmap: - data: - JDK_JAVA_OPTIONS: -server -Xmx2048m -Xss1024m -Dspring.config.location=/etc/application-config/application.properties - -Dfile.encoding=UTF-8 - TZ: Europe/Oslo - enabled: true - toEnv: true - secrets: - psql-credentials: - - SPRING_DATASOURCE_PASSWORD - auth: - - SPRING_SECURITY_OAUTH2_CLIENT_REGISTRATION_ORGREGISTER_CLIENT_SECRET diff --git a/terraform/.tool-versions b/terraform/.tool-versions deleted file mode 100644 index 6c6e3fe8..00000000 --- a/terraform/.tool-versions +++ /dev/null @@ -1 +0,0 @@ -terraform 0.13.2 diff --git a/terraform/backend.tf b/terraform/backend.tf deleted file mode 100644 index d1c6b07f..00000000 --- a/terraform/backend.tf +++ /dev/null @@ -1,6 +0,0 @@ -# Describe where terraform will store the state of infrastructure -terraform { - backend "gcs" { - bucket = "ent-gcs-tfa-uttu" - } -} diff --git a/terraform/env/kub-ent-dev.tfvars b/terraform/env/kub-ent-dev.tfvars deleted file mode 100644 index fa89b827..00000000 --- a/terraform/env/kub-ent-dev.tfvars +++ /dev/null @@ -1,3 +0,0 @@ -gcp_resources_project = "ent-uttu-dev" -gcp_pubsub_project = "ent-marduk-dev" -uttu_service_account="serviceAccount:application@ent-uttu-dev.iam.gserviceaccount.com" \ No newline at end of file diff --git a/terraform/env/kub-ent-prd.tfvars b/terraform/env/kub-ent-prd.tfvars deleted file mode 100644 index 7115631c..00000000 --- a/terraform/env/kub-ent-prd.tfvars +++ /dev/null @@ -1,3 +0,0 @@ -gcp_resources_project = "ent-uttu-prd" -gcp_pubsub_project = "ent-marduk-prd" -uttu_service_account="serviceAccount:application@ent-uttu-prd.iam.gserviceaccount.com" \ No newline at end of file diff --git a/terraform/env/kub-ent-tst.tfvars b/terraform/env/kub-ent-tst.tfvars deleted file mode 100644 index 3b2dfdbf..00000000 --- a/terraform/env/kub-ent-tst.tfvars +++ /dev/null @@ -1,3 +0,0 @@ -gcp_resources_project = "ent-uttu-tst" -gcp_pubsub_project = "ent-marduk-tst" -uttu_service_account="serviceAccount:application@ent-uttu-tst.iam.gserviceaccount.com" \ No newline at end of file diff --git a/terraform/main.tf b/terraform/main.tf deleted file mode 100644 index 75af1070..00000000 --- a/terraform/main.tf +++ /dev/null @@ -1,61 +0,0 @@ -# Contains main description of bulk of terraform? -terraform { - required_version = ">= 0.13.2" -} - -provider "google" { - version = "~> 4.84.0" -} -provider "kubernetes" { - version = ">= 2.13.1" -} - -variable "gcp_pubsub_project" { - default = "The GCP pubsub project gcp2" -} - -resource "google_sql_database_instance" "db_instance_pg13" { - name = "uttu-db-pg13" - project = var.gcp_resources_project - region = "europe-west1" - - settings { - tier = var.db_tier - user_labels = var.labels - availability_type = "ZONAL" - backup_configuration { - enabled = true - } - ip_configuration { - require_ssl = true - } - } - database_version = "POSTGRES_13" -} - -resource "google_sql_database" "db_pg13" { - name = "uttu" - project = var.gcp_resources_project - instance = google_sql_database_instance.db_instance_pg13.name -} - -data "google_secret_manager_secret_version" "db_password" { - secret = "SPRING_DATASOURCE_PASSWORD" - project = var.gcp_resources_project -} - -resource "google_sql_user" "db-user_pg13" { - project = var.gcp_resources_project - instance = google_sql_database_instance.db_instance_pg13.name - name = "uttu" - password = data.google_secret_manager_secret_version.db_password.secret_data -} - -# add service account as member to pubsub service in the gcp2 project - -resource "google_pubsub_topic_iam_member" "pubsub_topic_iam_member" { - project = var.gcp_pubsub_project - topic = var.pubsub_topic_name - role = var.service_account_pubsub_role - member = var.uttu_service_account -} diff --git a/terraform/variables.tf b/terraform/variables.tf deleted file mode 100644 index e49e8712..00000000 --- a/terraform/variables.tf +++ /dev/null @@ -1,45 +0,0 @@ -variable "gcp_resources_project" { - description = "The GCP project id" -} - -variable "kube_namespace" { - description = "The Kubernetes namespace" - default = "uttu" -} - -variable "labels" { - description = "Labels used in all resources" - type = map(string) - default = { - manager = "terraform" - team = "ror" - slack = "talk-ror" - app = "uttu" - } -} - - -variable "db_tier" { - description = "Database instance tier" - default = "db-custom-1-3840" -} - -variable "db_backup_enabled" { - description = "Enabled automated db backup" - default = false -} - -variable "pubsub_topic_name" { - description = "PubSub Topic name" - default = "FlexibleLinesExportQueue" -} - -variable "service_account_pubsub_role" { - description = "Role of the Service Account - more about roles https://cloud.google.com/pubsub/docs/access-control" - default = "roles/pubsub.publisher" -} - -variable "uttu_service_account" { - description = "application service account" -} - From b39120885cd04624dc8c7e2b94750742d4c5747b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=20Erik=20St=C3=B8wer?= Date: Tue, 14 May 2024 22:22:14 +0200 Subject: [PATCH 2/5] Publish jar to jfrog instead of building docker image --- .circleci/config.yml | 102 +++++++++++++++++++------------------------ pom.xml | 9 ++++ 2 files changed, 55 insertions(+), 56 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index c7a3b7bb..254283f4 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -1,45 +1,18 @@ version: 2 aliases: - - &google-sdk-container-config - docker: - - image: google/cloud-sdk:latest - auth: - username: $DOCKERHUB_LOGIN - password: $DOCKERHUB_PASSWORD - - &GCP-auth-docker - name: GCP authentication with docker - command: | - echo $DOCKER_PASSWORD > ${HOME}/account-auth.json - &jfrog-login name: Rename jfrog environment variable for maven setting.xml command: | echo "export JFROG_USER=$ARTIFACTORY_USER" >> $BASH_ENV echo "export JFROG_PASS=$ARTIFACTORY_PASSWORD" >> $BASH_ENV - - &tag-git-version - name: Tag git commit with build version and push to github + - &post_build + name: Trigger downstream builds command: | - git config --global user.email "circleci@entur.no" - git config --global user.name "circleci" - git tag $VERSION - git push origin $VERSION - - &create-image-version - name: Create new image version and store to env var and as file in workspace - command: | - echo "export VERSION=$CIRCLE_BRANCH-v$CIRCLE_BUILD_NUM-$(echo -n $CIRCLE_SHA1 | tail -c 8)" >> $BASH_ENV - echo "$CIRCLE_BRANCH-v$CIRCLE_BUILD_NUM-$(echo -n $CIRCLE_SHA1 | tail -c 8)" > version - - &read-image-version - name: Read new image version from workspace - command: | - echo "export VERSION=$(cat ./version)" >> $BASH_ENV - - &docker-build-and-push - name: Docker build and push - command: | - IMAGE="eu.gcr.io/entur-system-1287/${CIRCLE_PROJECT_REPONAME}" - echo "Image: ${IMAGE}" - docker build -t $IMAGE . - docker tag $IMAGE "${IMAGE}":"${VERSION}" - docker login -u _json_key --password-stdin https://eu.gcr.io < ${HOME}/account-auth.json - docker push "${IMAGE}":"${VERSION}" + wget https://raw.githubusercontent.com/entur/circleci-toolbox-image-java11/master/tools/trigger_build_v2.sh -O .circleci/trigger_build_v2.sh + chmod +x .circleci/trigger_build_v2.sh + echo 'export CIRCLE_SHA1="$CIRCLE_SHA1"' >> $BASH_ENV + echo 'export CIRCLE_PROJECT_REPONAME="$CIRCLE_PROJECT_REPONAME"' >> $BASH_ENV + .circleci/trigger_build_v2.sh "entur/lamassu-deployment-config.git" "master" "$(git log -1 --pretty=%B)" - &sonar-scan name: Sonar scan command: | @@ -55,7 +28,8 @@ aliases: -Dsonar.host.url=https://sonarcloud.io \ -Dsonar.token=${ENTUR_SONAR_PASSWORD} jobs: - build: + test: + executor: machine machine: image: ubuntu-2204:2024.04.3 environment: @@ -94,36 +68,52 @@ jobs: path: ~/junit - store_artifacts: path: ~/junit - - run: *create-image-version - - run: *tag-git-version - persist_to_workspace: root: ~/project paths: - target - - Dockerfile - .circleci - - ./version - deploy-docker: - <<: *google-sdk-container-config + build: + docker: + - image: cimg/openjdk:21.0.2-node + auth: + username: $DOCKERHUB_LOGIN + password: $DOCKERHUB_PASSWORD + environment: + MAVEN_OPTS: -Xmx3G steps: - - setup_remote_docker: - version: default - docker_layer_caching: true - - attach_workspace: - at: ~/project - - run: *GCP-auth-docker - - run: *read-image-version - - run: *docker-build-and-push + - checkout + - restore_cache: + keys: + - dep-cache-v2-{{ checksum "pom.xml" }} + - dep-cache-v2- + - run: + name: Download Maven settings + command: wget https://raw.githubusercontent.com/entur/circleci-toolbox-image-java11/master/tools/m2/settings.xml -O .circleci/settings.xml + - run: *jfrog-login + - run: + name: Refresh cache + command: mvn org.apache.maven.plugins:maven-dependency-plugin:3.1.0:go-offline -s .circleci/settings.xml + - save_cache: + paths: + - ~/.m2 + key: dep-cache-v2-{{ checksum "pom.xml" }} + # Cannot use -o because of snapshot dependencies. + - run: mvn deploy -s .circleci/settings.xml -P prettierSkip -DskipTests + - run: *post_build workflows: - version: 2 - build_test_deploy: + version: 2.1 + release: jobs: - - build: + - test: + name: test-release context: global - - deploy-docker: + - build: + name: build-release context: global - requires: - - build filters: branches: - only: master + only: + - master + requires: + - test-release diff --git a/pom.xml b/pom.xml index 34d7e59c..1da5d63d 100644 --- a/pom.xml +++ b/pom.xml @@ -63,6 +63,15 @@ 0.22 write + + + + snapshots + entur2-snapshots + https://entur2.jfrog.io/entur2/libs-snapshot-local + + + osgeo From 378eb1909134ccf9c2264daa52103e558c34749d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=20Erik=20St=C3=B8wer?= Date: Tue, 14 May 2024 22:23:22 +0200 Subject: [PATCH 3/5] Fix circleci --- .circleci/config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 254283f4..1ae8ada4 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -102,7 +102,7 @@ jobs: - run: mvn deploy -s .circleci/settings.xml -P prettierSkip -DskipTests - run: *post_build workflows: - version: 2.1 + version: 2 release: jobs: - test: From 696ed903d3534149c965c957092c6828834f28e7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=20Erik=20St=C3=B8wer?= Date: Tue, 14 May 2024 22:26:21 +0200 Subject: [PATCH 4/5] Fix circleci --- .circleci/config.yml | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 1ae8ada4..22b17196 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -1,4 +1,4 @@ -version: 2 +version: 2.1 aliases: - &jfrog-login name: Rename jfrog environment variable for maven setting.xml @@ -102,18 +102,15 @@ jobs: - run: mvn deploy -s .circleci/settings.xml -P prettierSkip -DskipTests - run: *post_build workflows: - version: 2 release: jobs: - test: - name: test-release context: global - build: - name: build-release context: global filters: branches: only: - master requires: - - test-release + - test From d56168532ac058dc230ce2519edfe7467561da94 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=20Erik=20St=C3=B8wer?= Date: Tue, 14 May 2024 22:26:58 +0200 Subject: [PATCH 5/5] Fix circleci --- .circleci/config.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 22b17196..64d65c32 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -29,7 +29,6 @@ aliases: -Dsonar.token=${ENTUR_SONAR_PASSWORD} jobs: test: - executor: machine machine: image: ubuntu-2204:2024.04.3 environment: