Skip to content
This repository has been archived by the owner on Nov 15, 2024. It is now read-only.

Fix schema registry upgrade #20

Open
wants to merge 228 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
228 commits
Select commit Hold shift + click to select a range
4a7917a
Add .gitlab-ci.yml
Yuvi0710 Jan 18, 2024
b1d8459
Updated .gitlab-ci.yml file
Yuvi0710 Jan 18, 2024
1205e60
Update .gitlab-ci.yml file
Yuvi0710 Jan 18, 2024
726312a
Update .gitlab-ci.yml file
Yuvi0710 Jan 18, 2024
72e38ec
Update .gitlab-ci.yml file
Yuvi0710 Jan 18, 2024
8f3e17c
Update .gitlab-ci.yml file
Yuvi0710 Jan 18, 2024
4ad5808
Update .gitlab-ci.yml file
Yuvi0710 Jan 18, 2024
bb0a029
Update .gitlab-ci.yml file
Yuvi0710 Jan 18, 2024
c024b84
Update .gitlab-ci.yml file
Yuvi0710 Jan 18, 2024
44f2004
Update .gitlab-ci.yml file
Yuvi0710 Jan 18, 2024
a68ff9e
Update .gitlab-ci.yml file
Yuvi0710 Jan 18, 2024
c4b6665
Update .gitlab-ci.yml file
Yuvi0710 Jan 18, 2024
e89d9f0
Update .gitlab-ci.yml file
Yuvi0710 Jan 18, 2024
a5b9e45
Update .gitlab-ci.yml file
Yuvi0710 Jan 18, 2024
4c2a657
Updated .gitlab-ci.yml file
Yuvi0710 Jan 23, 2024
5b092d1
Update .gitlab-ci.yml file
Yuvi0710 Jan 23, 2024
e0852fb
Update .gitlab-ci.yml file
Yuvi0710 Jan 23, 2024
78c9385
Update .gitlab-ci.yml file
Yuvi0710 Jan 23, 2024
af5ab4c
Update .gitlab-ci.yml file
Yuvi0710 Jan 24, 2024
f2d7961
Update .gitlab-ci.yml file
Yuvi0710 Jan 24, 2024
54f86b8
Updated .gitlab-ci.yml file
Yuvi0710 Jan 24, 2024
02e5e28
Update .gitlab-ci.yml file
Yuvi0710 Jan 24, 2024
ddd7b38
Update .gitlab-ci.yml file
Yuvi0710 Jan 24, 2024
c40f500
Update .gitlab-ci.yml file
Yuvi0710 Jan 24, 2024
928174c
Update .gitlab-ci.yml file
Yuvi0710 Jan 24, 2024
cfc413a
Update .gitlab-ci.yml file
Yuvi0710 Jan 24, 2024
de327d4
Update .gitlab-ci.yml file
Yuvi0710 Jan 24, 2024
acd6027
Updated
Yuvi0710 Jan 29, 2024
9f8b993
Update .gitlab-ci.yml file
Yuvi0710 Jan 29, 2024
c9b5076
Update .gitlab-ci.yml file
Yuvi0710 Jan 29, 2024
203abdc
Update .gitlab-ci.yml file
Yuvi0710 Jan 29, 2024
efe3932
Update .gitlab-ci.yml file
Yuvi0710 Jan 29, 2024
2c51475
Update .gitlab-ci.yml file
Yuvi0710 Jan 29, 2024
f3776ca
Update .gitlab-ci.yml file
Yuvi0710 Jan 29, 2024
e926e4a
Update .gitlab-ci.yml file
Yuvi0710 Jan 29, 2024
14f4bed
Update .gitlab-ci.yml file
Yuvi0710 Jan 29, 2024
b3b9c74
Update .gitlab-ci.yml file
Yuvi0710 Jan 29, 2024
e018bae
Update .gitlab-ci.yml file
Yuvi0710 Jan 29, 2024
c1a6d8a
Update .gitlab-ci.yml file
Yuvi0710 Jan 29, 2024
60fe3c6
Update .gitlab-ci.yml file
Yuvi0710 Jan 29, 2024
2750215
Update .gitlab-ci.yml file
Yuvi0710 Jan 29, 2024
e968dfe
Update .gitlab-ci.yml
Yuvi0710 Jan 29, 2024
ad4ceb8
Update .gitlab-ci.yml file
Yuvi0710 Jan 29, 2024
8473339
ADAPT-1823: Add skipValidations query parameter in PUT /v2/metadata e…
aman-minz Jan 23, 2024
6dbcfe2
Add separate enum entry for skipping default loophole with few more t…
aman-minz Jan 24, 2024
2abb208
Trim the string provided by user and format the error message
aman-minz Jan 24, 2024
a2e790b
Updated .gitlab-ci.yml
Yuvi0710 Jan 29, 2024
99373ce
Update .gitlab-ci.yml file
Yuvi0710 Jan 29, 2024
90431f0
Update .gitlab-ci.yml file
Yuvi0710 Jan 29, 2024
85754de
Update .gitlab-ci.yml file
Yuvi0710 Jan 29, 2024
5803635
Update .gitlab-ci.yml file
Yuvi0710 Jan 29, 2024
330eaa9
Update .gitlab-ci.yml file
Yuvi0710 Jan 29, 2024
179ee9c
Update .gitlab-ci.yml file
Yuvi0710 Jan 29, 2024
1ebebd8
Update .gitlab-ci.yml file
Yuvi0710 Jan 29, 2024
bf994e1
Update .gitlab-ci.yml file
Yuvi0710 Jan 29, 2024
80a80b9
Update .gitlab-ci.yml file
Yuvi0710 Jan 29, 2024
e407b2d
Update .gitlab-ci.yml file
Yuvi0710 Jan 29, 2024
23c3aac
Update .gitlab-ci.yml file
Yuvi0710 Jan 30, 2024
52c1a58
Update .gitlab-ci.yml file
Yuvi0710 Jan 30, 2024
9c61ed0
Update .gitlab-ci.yml file
Yuvi0710 Jan 30, 2024
c441a67
Update .gitlab-ci.yml file
pavan-kumarkulkarni Jan 30, 2024
6d0c01f
Update .gitlab-ci.yml file
vkunis Feb 1, 2024
87456a0
Add new file
Yuvi0710 Feb 1, 2024
57c1b1f
Update .gitlab-ci.yml file
Yuvi0710 Feb 1, 2024
9bae066
Update .gitlab-ci.yml file
Yuvi0710 Feb 2, 2024
ae7cc7a
Update pillar_overrides.yaml
Yuvi0710 Feb 2, 2024
e494f2e
Update .gitlab-ci.yml file
Yuvi0710 Feb 2, 2024
c429776
Update pillar_overrides.yaml
Yuvi0710 Feb 2, 2024
08cf0f0
chore(PDP-1009): Updated .gitlab-ci.yml file to deploy on stage and prod
Yuvi0710 Feb 13, 2024
6f737d5
chore(PDP-1009): Updated .gitlab-ci.yml to move stage variables
Yuvi0710 Feb 13, 2024
0da411c
Updated .gitlab-ci.yml file
Yuvi0710 Feb 13, 2024
7c5968f
Add new file
Yuvi0710 Feb 20, 2024
641f408
Update .gitlab-ci.yml file
Yuvi0710 Feb 20, 2024
aaabb83
Update .gitlab-ci.yml file
Yuvi0710 Feb 20, 2024
f81dc8d
Update eks-dev-values.yml
Yuvi0710 Feb 20, 2024
3fa8485
Update eks-dev-values.yml
Yuvi0710 Feb 20, 2024
c8db837
Update eks-dev-values.yml
Yuvi0710 Feb 20, 2024
fbc722e
Update eks-dev-values.yml
Yuvi0710 Feb 22, 2024
064f967
Update .gitlab-ci.yml file
Yuvi0710 Feb 22, 2024
df1cc74
Update .gitlab-ci.yml file
Yuvi0710 Feb 22, 2024
9e3be0f
Update .gitlab-ci.yml file
Yuvi0710 Feb 23, 2024
320c938
Update .gitlab-ci.yml file
Yuvi0710 Feb 23, 2024
d166e9f
Update eks-dev-values.yml
Yuvi0710 Feb 23, 2024
5a8457c
Update .gitlab-ci.yml file
Yuvi0710 Feb 23, 2024
f5cc820
Update eks-dev-values.yml
pavan-kumarkulkarni Feb 27, 2024
655b85b
Update eks-dev-values.yml
Yuvi0710 Feb 27, 2024
bc14235
Update Dockerfile.new
Yuvi0710 Feb 28, 2024
f75ed09
Update Dockerfile.new
Yuvi0710 Feb 28, 2024
cad5cf5
Update .gitlab-ci.yml file
Yuvi0710 Feb 28, 2024
a6fc397
Update eks-dev-values.yml
Yuvi0710 Feb 28, 2024
5189e2a
Update eks-dev-values.yml
Yuvi0710 Mar 4, 2024
2c0343b
Update .gitlab-ci.yml file
Yuvi0710 Mar 6, 2024
2626423
Update .gitlab-ci.yml file
Yuvi0710 Mar 6, 2024
498acff
Update .gitlab-ci.yml file
Yuvi0710 Mar 6, 2024
1e44b1c
Revert "Revert "ADAPT-1701: update schema-registry client and kafka v…
shreedhar-kc Mar 13, 2024
cf673b8
fix schema incompatible error on startup
shreedhar-kc Mar 13, 2024
9958b7a
Changed the pipeline config to ignore runner cache
Yathish-b Mar 20, 2024
4afc8ab
Corrected, Added the Environment name
Yathish-b Mar 20, 2024
f28d719
Added the notification for staging and production
Yathish-b Mar 21, 2024
2d10244
added the env specific bounded_context
Yathish-b Mar 21, 2024
4f4f133
added a retry mechanism to pipeline
Yathish-b Mar 22, 2024
d55dd6d
fixed .gitlab-ci.yml pipeline
Yathish-b Mar 22, 2024
7b925aa
chore(PDP1-859): Deploy hydra-publish on dev namespace
pavan-kumarkulkarni Mar 27, 2024
64eacb0
Add .gitlab-ci.yml
Yuvi0710 Jan 18, 2024
6434816
Updated .gitlab-ci.yml file
Yuvi0710 Jan 18, 2024
226273f
Update .gitlab-ci.yml file
Yuvi0710 Jan 18, 2024
266860e
Update .gitlab-ci.yml file
Yuvi0710 Jan 18, 2024
eee9775
Update .gitlab-ci.yml file
Yuvi0710 Jan 18, 2024
91187f0
Update .gitlab-ci.yml file
Yuvi0710 Jan 18, 2024
c204de2
Update .gitlab-ci.yml file
Yuvi0710 Jan 18, 2024
46da600
Update .gitlab-ci.yml file
Yuvi0710 Jan 18, 2024
c109228
Update .gitlab-ci.yml file
Yuvi0710 Jan 18, 2024
544704a
Update .gitlab-ci.yml file
Yuvi0710 Jan 18, 2024
e38b191
Update .gitlab-ci.yml file
Yuvi0710 Jan 18, 2024
bc5f131
Update .gitlab-ci.yml file
Yuvi0710 Jan 18, 2024
0d539c8
Update .gitlab-ci.yml file
Yuvi0710 Jan 18, 2024
9536e2b
Update .gitlab-ci.yml file
Yuvi0710 Jan 18, 2024
d071b39
Updated .gitlab-ci.yml file
Yuvi0710 Jan 23, 2024
4fcb79b
Update .gitlab-ci.yml file
Yuvi0710 Jan 23, 2024
103f150
Update .gitlab-ci.yml file
Yuvi0710 Jan 23, 2024
2b8cb9b
Update .gitlab-ci.yml file
Yuvi0710 Jan 23, 2024
7941472
Update .gitlab-ci.yml file
Yuvi0710 Jan 24, 2024
4cbbbbd
Update .gitlab-ci.yml file
Yuvi0710 Jan 24, 2024
6951ee3
Updated .gitlab-ci.yml file
Yuvi0710 Jan 24, 2024
f7115e3
Update .gitlab-ci.yml file
Yuvi0710 Jan 24, 2024
4ff4adb
Update .gitlab-ci.yml file
Yuvi0710 Jan 24, 2024
a1ca4bf
Update .gitlab-ci.yml file
Yuvi0710 Jan 24, 2024
14286f5
Update .gitlab-ci.yml file
Yuvi0710 Jan 24, 2024
7ea3cd9
Update .gitlab-ci.yml file
Yuvi0710 Jan 24, 2024
c1b1b37
Update .gitlab-ci.yml file
Yuvi0710 Jan 24, 2024
73728c8
Updated
Yuvi0710 Jan 29, 2024
389f63c
Update .gitlab-ci.yml file
Yuvi0710 Jan 29, 2024
8f9d4bc
Update .gitlab-ci.yml file
Yuvi0710 Jan 29, 2024
b3320c9
Update .gitlab-ci.yml file
Yuvi0710 Jan 29, 2024
c1519e2
Update .gitlab-ci.yml file
Yuvi0710 Jan 29, 2024
2adc019
Update .gitlab-ci.yml file
Yuvi0710 Jan 29, 2024
e84cf58
Update .gitlab-ci.yml file
Yuvi0710 Jan 29, 2024
d476f10
Update .gitlab-ci.yml file
Yuvi0710 Jan 29, 2024
0cbd70c
Update .gitlab-ci.yml file
Yuvi0710 Jan 29, 2024
33debd6
Update .gitlab-ci.yml file
Yuvi0710 Jan 29, 2024
e1c7638
Update .gitlab-ci.yml file
Yuvi0710 Jan 29, 2024
5dd372c
Update .gitlab-ci.yml file
Yuvi0710 Jan 29, 2024
fc1c7a1
Update .gitlab-ci.yml file
Yuvi0710 Jan 29, 2024
b1129f8
Update .gitlab-ci.yml file
Yuvi0710 Jan 29, 2024
904fe26
Update .gitlab-ci.yml
Yuvi0710 Jan 29, 2024
a9d0aab
Update .gitlab-ci.yml file
Yuvi0710 Jan 29, 2024
319c032
Updated .gitlab-ci.yml
Yuvi0710 Jan 29, 2024
548511d
Update .gitlab-ci.yml file
Yuvi0710 Jan 29, 2024
641ab13
Update .gitlab-ci.yml file
Yuvi0710 Jan 29, 2024
a4be257
Update .gitlab-ci.yml file
Yuvi0710 Jan 29, 2024
73c3227
Update .gitlab-ci.yml file
Yuvi0710 Jan 29, 2024
f0dd2d0
Update .gitlab-ci.yml file
Yuvi0710 Jan 29, 2024
08dba94
Update .gitlab-ci.yml file
Yuvi0710 Jan 29, 2024
98f02c1
Update .gitlab-ci.yml file
Yuvi0710 Jan 29, 2024
fac5583
Update .gitlab-ci.yml file
Yuvi0710 Jan 29, 2024
d717ad7
Update .gitlab-ci.yml file
Yuvi0710 Jan 29, 2024
19b7a09
Update .gitlab-ci.yml file
Yuvi0710 Jan 29, 2024
1af0611
Update .gitlab-ci.yml file
Yuvi0710 Jan 30, 2024
636d5b5
Update .gitlab-ci.yml file
Yuvi0710 Jan 30, 2024
3ed095d
Update .gitlab-ci.yml file
Yuvi0710 Jan 30, 2024
613c109
Update .gitlab-ci.yml file
pavan-kumarkulkarni Jan 30, 2024
9109212
Update .gitlab-ci.yml file
vkunis Feb 1, 2024
1a4d1b8
Add new file
Yuvi0710 Feb 1, 2024
04a8a60
Update .gitlab-ci.yml file
Yuvi0710 Feb 1, 2024
ecc0482
Update .gitlab-ci.yml file
Yuvi0710 Feb 2, 2024
fa7362b
Update pillar_overrides.yaml
Yuvi0710 Feb 2, 2024
b2e256b
Update .gitlab-ci.yml file
Yuvi0710 Feb 2, 2024
cd79e3d
Update pillar_overrides.yaml
Yuvi0710 Feb 2, 2024
9cafa2b
chore(PDP-1009): Updated .gitlab-ci.yml file to deploy on stage and prod
Yuvi0710 Feb 13, 2024
6677475
chore(PDP-1009): Updated .gitlab-ci.yml to move stage variables
Yuvi0710 Feb 13, 2024
ea1e43e
Updated .gitlab-ci.yml file
Yuvi0710 Feb 13, 2024
0258a99
Add new file
Yuvi0710 Feb 20, 2024
ec2b67d
Update .gitlab-ci.yml file
Yuvi0710 Feb 20, 2024
aad7a3f
Update .gitlab-ci.yml file
Yuvi0710 Feb 20, 2024
a1ef298
Update eks-dev-values.yml
Yuvi0710 Feb 20, 2024
0f17e16
Update eks-dev-values.yml
Yuvi0710 Feb 20, 2024
3759e4d
Update eks-dev-values.yml
Yuvi0710 Feb 20, 2024
9089215
Update eks-dev-values.yml
Yuvi0710 Feb 22, 2024
0c73c6d
Update .gitlab-ci.yml file
Yuvi0710 Feb 22, 2024
c74e72b
Update .gitlab-ci.yml file
Yuvi0710 Feb 22, 2024
c38d8fa
Update .gitlab-ci.yml file
Yuvi0710 Feb 23, 2024
5573a6b
Update .gitlab-ci.yml file
Yuvi0710 Feb 23, 2024
104d641
Update eks-dev-values.yml
Yuvi0710 Feb 23, 2024
9ca100d
Update .gitlab-ci.yml file
Yuvi0710 Feb 23, 2024
c1af89e
Update eks-dev-values.yml
pavan-kumarkulkarni Feb 27, 2024
bb17d0b
Update eks-dev-values.yml
Yuvi0710 Feb 27, 2024
0c59cad
Update Dockerfile.new
Yuvi0710 Feb 28, 2024
a5d4c3b
Update Dockerfile.new
Yuvi0710 Feb 28, 2024
339354d
Update .gitlab-ci.yml file
Yuvi0710 Feb 28, 2024
ad64dd0
Update eks-dev-values.yml
Yuvi0710 Feb 28, 2024
28b2d6d
Update eks-dev-values.yml
Yuvi0710 Mar 4, 2024
f3c2802
Update .gitlab-ci.yml file
Yuvi0710 Mar 6, 2024
4952b5e
Update .gitlab-ci.yml file
Yuvi0710 Mar 6, 2024
bf8432b
Update .gitlab-ci.yml file
Yuvi0710 Mar 6, 2024
e525ed3
Changed the pipeline config to ignore runner cache
Yathish-b Mar 20, 2024
9c161fd
Corrected, Added the Environment name
Yathish-b Mar 20, 2024
f69e062
Added the notification for staging and production
Yathish-b Mar 21, 2024
74c2fc7
added the env specific bounded_context
Yathish-b Mar 21, 2024
7811126
added a retry mechanism to pipeline
Yathish-b Mar 22, 2024
d8e0c84
fixed .gitlab-ci.yml pipeline
Yathish-b Mar 22, 2024
8208df1
chore(PDP1-859): Deploy hydra-publish on dev namespace
pavan-kumarkulkarni Mar 27, 2024
aedf3eb
chore(PDP1-895): Implement synk for hydra-publish
pavan-kumarkulkarni Apr 16, 2024
68fc441
chore(PDP1-895): Implement synk for hydra-publish
pavan-kumarkulkarni Apr 16, 2024
fde93c4
Merge branch 'team_city_migration' into 'PDP1-895'
Yathish-b Apr 16, 2024
a5feeca
Merge branch 'PDP1-895' into 'team_city_migration'
pavan-kumarkulkarni Apr 16, 2024
d0a6670
update build xmx to 5g
shreedhar-kc Jun 6, 2024
f1e7dce
Merge branch 'team_city_migration' into 'master'
pavan-kumarkulkarni Jun 7, 2024
654fba0
Merge branch 'master' into fix-schema-registry-upgrade
shreedhar-kc Jun 10, 2024
f600bce
add more memory to hydra dev-cluster resources
shreedhar-kc Jun 10, 2024
828b973
[Adapt1-1545] | Publish lag on consumer group internal topic as per t…
abhivermaaa Jun 10, 2024
7b92424
Merge branch 'adapt1-1545' into 'master'
abhivermaaa Jun 10, 2024
603239f
Adding deployment method as manual for DEV
pavan-kumarkulkarni Jun 10, 2024
bc5b646
update the consumer-group name
shreedhar-kc Jun 11, 2024
67a8932
update info to debug and add sasl config
shreedhar-kc Jun 11, 2024
030f8c9
add aws config
shreedhar-kc Jun 11, 2024
22ad90e
limit lag percentage decimal places
abhivermaaa Jun 11, 2024
646b699
Merge branch 'adapt1-1545-limitdecimal' into 'master'
abhivermaaa Jun 11, 2024
de33ec0
Merge branch 'team_city_migration' into 'master'
pavan-kumarkulkarni Jun 11, 2024
635b729
remove extra aws configs
shreedhar-kc Jun 11, 2024
5a9dde3
change kafka security protocol to plaintext for dev-cluster
shreedhar-kc Jun 11, 2024
1141749
re-add kafka bootstrap servers envar
shreedhar-kc Jun 11, 2024
097007e
add plaintext client config port of kafka brokers
shreedhar-kc Jun 11, 2024
d7d2934
use less heap memory
shreedhar-kc Jun 11, 2024
bb01c72
Merge branch 'master' into fix-schema-registry-upgrade
shreedhar-kc Jun 11, 2024
68cbc90
update port number
shreedhar-kc Jun 15, 2024
a375cb9
reduce hydra nodes replicas to zero
shreedhar-kc Jun 16, 2024
4c1f5fe
update replicas to 2
shreedhar-kc Jun 27, 2024
0a8877a
change log level to info
shreedhar-kc Jul 1, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -70,3 +70,8 @@ build.properties
#ensime http://ensime.github.io/
.ensime
.ensime_cache

.bsp

# ignore temp files and folders
__temp*
231 changes: 231 additions & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,231 @@
include:
- project: 'pluralsight/experience/gitlab-helpers'
file: '/salt-deploy/helper.yml'
- project: 'pluralsight/experience/gitlab-helpers'
file: '/helm-deploy/helper.yml'
- project: 'pluralsight/Technology/adapt/data-platform/gitlab-fragments/snyk'
ref: main
file: 'snyk-check.yml'

image: openjdk:8

variables:
ARTIFACT_NAME: hydra-publish
IMAGE_NAME: hydra
DOCKER_REGISTRY_URL: harbor.vnerd.com/library
DOCKER_REGISTRY_IMAGE: ${DOCKER_REGISTRY_URL}/${IMAGE_NAME}
ARTIFACTORY_REPOSITORY_URL: https://repository.vnerd.com/artifactory
ARTIFACTORY_REPOSITORY: bounded-context
ARTIFACTORY_ID: hydra/publish
ARTIFACTORY_ARTIFACT_VERSION: ${ARTIFACT_NAME}-${BUILD_VERSION}.tgz
ARTIFACTORY_PATH: ${ARTIFACTORY_ID}/${ARTIFACTORY_ARTIFACT_VERSION}
ARTIFACTORY_ARTIFACT_URL: ${ARTIFACTORY_REPOSITORY_URL}/${ARTIFACTORY_REPOSITORY}/${ARTIFACTORY_PATH}
BUILD_VERSION: 1.0.${CI_PIPELINE_IID}
BOUNDED_CONTEXT_DEV: adapt-dvs-dev
BOUNDED_CONTEXT_STAGING: adapt-dvs
BOUNDED_CONTEXT_PROD: adapt-dvs
ENV: ${CI_JOB_STAGE}
SERVICE_NAME: "dev-hydra"
SLACK_ICON_EMOJI: ":gitlab:"
SLACK_CHANNEL: '#data-platform-alerts'
SLACK_MESSAGE: |
*[[SERVICE_NAME]]* deployed to *[[ENV]]*.
Version: *[[BUILD_VERSION]]*
[[PIPELINE_LINK]]
SLACK_USERNAME: 'GITLAB'
SNYK_SLACK_CHANNEL: '#dataops-snyk-vulnerability-alerts'
SNYK_SLACK_ICON_EMOJI: ":snyk:"
SNYK_ORG_ID: "d8094638-7a37-413f-b1b4-ad840fb9e239"
SNYK_PROJECT_ID: "d243a0e6-4ced-4efe-83fc-169d03b40cc7"
SNYK_PROJECT_URL: "https://app.snyk.io/org/ps-data-services"

before_script:
- apt-get update -yqq
- apt-get install -yqq apt-transport-https apt-utils
- echo "deb https://repo.scala-sbt.org/scalasbt/debian /" | tee -a /etc/apt/sources.list.d/sbt.list
- mkdir -p /root/.gnupg
- gpg --recv-keys --no-default-keyring --keyring gnupg-ring:/etc/apt/trusted.gpg.d/scalasbt-release.gpg --keyserver hkp://keyserver.ubuntu.com:80 2EE0EA64E40A89B84B2DF73499E82A75642AC823
- chmod 644 /etc/apt/trusted.gpg.d/scalasbt-release.gpg
- apt-get update -yqq
- apt-get install -yqq sbt

stages:
- build
- code-analysis
- package
- publish
- deploy_dev
- deploy_staging
- deploy_production
- notify

build:
stage: build
cache: []
retry: 2
script:
- sbt clean compile test

package:
stage: package
cache: []
script:
- sbt universal:packageBin
- ls ingest/target/universal/*.zip | xargs -I {} unzip {} -d ps-publish
- mv ps-publish/hydra-ingest*/* ps-publish
- rm -rf ps-publish/hydra-ingest*
- cd ps-publish/bin
- ls -la
- curl -O https://download.newrelic.com/newrelic/java-agent/newrelic-agent/4.4.0/newrelic-agent-4.4.0.jar
- curl -O https://download.newrelic.com/newrelic/java-agent/newrelic-agent/4.4.0/newrelic.yml
- cd ../../
- echo $BUILD_VERSION > VERSION
- tar czf ${ARTIFACT_NAME}-${BUILD_VERSION}.tgz --exclude=*.tmp --exclude=*.tgz --exclude=*.tgz.md5 VERSION ps-publish/
- echo "##teamcity[publishArtifacts '${ARTIFACT_NAME}-${BUILD_VERSION}.tgz']"
- md5sum ${ARTIFACT_NAME}-${BUILD_VERSION}.tgz > ${ARTIFACT_NAME}-${BUILD_VERSION}.tgz.md5
- echo "${ARTIFACTORY_ARTIFACT_URL}"
- |
curl \
-H "Authorization: Bearer ${NPM_TOKEN}" \
-X PUT ${ARTIFACTORY_ARTIFACT_URL} \
-T ${ARTIFACTORY_ARTIFACT_VERSION}
artifacts:
paths:
- ${ARTIFACT_NAME}-${BUILD_VERSION}.tgz
- ${ARTIFACT_NAME}-${BUILD_VERSION}.tgz.md5
- ps-publish/

publish:
stage: publish
image: harbor.vnerd.com/proxy/library/docker:cli
tags:
- ps
- docker
needs:
- package
before_script:
- echo -n "$DOCKER_REGISTRY_PASSWORD" | docker login -u "$DOCKER_REGISTRY_USERNAME" --password-stdin "$DOCKER_REGISTRY_URL"
script:
- pwd
- ls -lh
- docker build -t ${IMAGE_NAME} -f Dockerfile.new .
- docker tag ${IMAGE_NAME} ${DOCKER_REGISTRY_IMAGE}:${BUILD_VERSION}-${CI_COMMIT_SHORT_SHA}
- docker push ${DOCKER_REGISTRY_IMAGE}:${BUILD_VERSION}-${CI_COMMIT_SHORT_SHA}
- docker tag ${IMAGE_NAME} ${DOCKER_REGISTRY_IMAGE}:latest
- docker push ${DOCKER_REGISTRY_IMAGE}:latest
- CURYEAR=$(date +%Y)
- CURMONTH=$(date +%-m)
- echo -n "${CURYEAR}.${CURMONTH}.${BUILD_VERSION}" > VERSION
variables:
DOCKER_HOST: tcp://localhost:2376
DOCKER_TLS_CERTDIR: "/certs"
DOCKER_CERT_PATH: "$DOCKER_TLS_CERTDIR/client"
DOCKER_TLS_VERIFY: 1

.notify-all:
image: harbor.vnerd.com/library/ps-helm:latest
tags:
- ps
- docker
script:
- ps-notify slack "$SLACK_MESSAGE" "$SLACK_CHANNEL" --slack-username $SLACK_USERNAME --slack-icon-emoji $SLACK_ICON_EMOJI
variables:
NODE_ENV: $ENV

deploy_dev:
stage: deploy_dev
needs: ["publish"]
extends: .helmDeploy
when: manual
environment:
name: dev
before_script:
- sed -i -e "s/%IMAGE_TAG%/1.0.${CI_PIPELINE_IID}-${CI_COMMIT_SHORT_SHA}/g" $HELM_VALUES_FILE
- cat $HELM_VALUES_FILE
- echo 1.0.${CI_PIPELINE_IID}-${CI_COMMIT_SHORT_SHA}
- kubectl config set-cluster app-${CI_ENVIRONMENT_NAME%/*} --server=${HELM_K8S_CLUSTER_URL} --embed-certs --certificate-authority="$HELM_K8S_CLUSTER_CACERT"
- kubectl config set-credentials deploy --token=`echo ${HELM_DEPLOY_TOKEN} | base64 -d`
- kubectl config set-context deploy --cluster=app-${CI_ENVIRONMENT_NAME%/*} --namespace=${HELM_TARGET_NAMESPACE} --user=deploy
- kubectl config use-context deploy
variables:
HELM_CHART_NAME: ps-service
HELM_DEPLOY_TOKEN: ${HELM_DEV_DEPLOY_TOKEN}
K8S_CLUSTER_NAME: app-eks.eplur-staging.us-west-2
HELM_K8S_CLUSTER_URL: https://6C29C0073BB19BEF220B9437E6962AF2.gr7.us-west-2.eks.amazonaws.com
HELM_TARGET_NAMESPACE: ${BOUNDED_CONTEXT_DEV}
APPLICATION_ROLE: dev-hydra
HELM_VALUES_FILE: helm/eks-dev-values.yml

slack:dev:
stage: notify
extends: .notify-all
when: on_success
needs: ['deploy_dev']
before_script:
- echo "Sending notification to slack"
variables:
ENV: "DEV Cluster"
SERVICE_NAME: "dev-hydra"


deploy_staging:
stage: deploy_staging
extends: .saltDeploy
when: manual
environment:
name: staging
before_script:
- cat $SALT_PILLAR
- sed -i "s/latest/$BUILD_VERSION/" $SALT_PILLAR
- cat $SALT_PILLAR
variables:
CI_JOB_STAGE: stage
SALT_TARGET: roles:hydra-publish-msk
SALT_PASSWORD: ${LDAP_PASS}
SALT_ARGUMENTS: systemd-app
SALT_USERNAME: tcity-data-platform
SALT_KWARGS: 'failhard=true'
SALT_PILLAR: $CI_PROJECT_DIR/pillar_overrides.yaml
SALT_URL: https://saltmaster-stage.vnerd.com:8000

slack:staging:
stage: notify
extends: .notify-all
when: on_success
needs: ['deploy_staging']
before_script:
- echo "Sending notification to slack"
variables:
ENV: "Staging Cluster"
SERVICE_NAME: "staging-hydra-publish"

deploy_production:
stage: deploy_production
extends: .saltDeploy
when: manual
environment:
name: production
before_script:
- cat $SALT_PILLAR
- sed -i "s/latest/$BUILD_VERSION/" $SALT_PILLAR
- cat $SALT_PILLAR
variables:
CI_JOB_STAGE: stage
SALT_TARGET: roles:hydra-publish-msk
SALT_PASSWORD: ${LDAP_PASS}
SALT_ARGUMENTS: systemd-app
SALT_USERNAME: tcity-data-platform
SALT_KWARGS: 'failhard=true'
SALT_PILLAR: $CI_PROJECT_DIR/pillar_overrides.yaml
SALT_URL: https://saltmaster-production.vnerd.com:8000

slack:production:
stage: notify
extends: .notify-all
when: on_success
needs: ['deploy_production']
before_script:
- echo "Sending notification to slack"
variables:
ENV: "Production Cluster"
SERVICE_NAME: "production-hydra-publish"
4 changes: 2 additions & 2 deletions Dockerfile.new
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ FROM jelastic/jetty:9.4.49-openjdk-1.8.0_352

USER root

ENV JAVA_OPTS="-Xmx2G"
ENV JAVA_OPTS="-Xmx2g"

ENV CONTAINER_HTTP_PORT="8088"

Expand All @@ -12,4 +12,4 @@ EXPOSE 8088

COPY ps-publish/ /ps-publish

ENTRYPOINT ["/ps-publish/bin/hydra-ingest"]
ENTRYPOINT ["/ps-publish/bin/hydra-ingest"]
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ object ConfluentSchemaRegistry extends LoggingAdapter {

private val cachedClients = CacheBuilder
.newBuilder()
.build(
.build[SchemaRegistryClientInfo, ConfluentSchemaRegistry](
new CacheLoader[SchemaRegistryClientInfo, ConfluentSchemaRegistry] {

def load(info: SchemaRegistryClientInfo): ConfluentSchemaRegistry = {
Expand Down
Loading
Loading