From d5a662e0e07e1250442f65af5e232c631ec7a9bd Mon Sep 17 00:00:00 2001 From: Mykyta Prykhodko Date: Tue, 20 May 2025 00:08:46 +0200 Subject: [PATCH 1/3] .gitlab-ci.yml removed --- .gitlab-ci.yml | 28 ---------------------------- 1 file changed, 28 deletions(-) delete mode 100644 .gitlab-ci.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml deleted file mode 100644 index aa2fdb4..0000000 --- a/.gitlab-ci.yml +++ /dev/null @@ -1,28 +0,0 @@ -stages: - - build -variables: - CONTAINER_REGISTRY: "https://prykhodkofsatfstateregistry.azurecr.io" - DOCKER_REPOSITORY: "prykhodkofsatfstateregistry.azurecr.io" - IMAGE_NAME: "fsa-backend" - DOCKER_DRIVER: overlay2 - DOCKER_HOST: tcp://127.0.0.1:2375 - DOCKER_TLS_VERIFY: "" - DOCKER_TLS_CERTDIR: "" -build_image: - stage: build - tags: - - fsa-prykhodko - image: docker:dind - services: - - docker:latest - before_script: - - until docker info &>/dev/null ; do sleep 2 && echo "Testujem pripojenie na Docker deamon (dind)" ; done - - export IMAGE_VERSION="${CI_JOB_ID}-${CI_COMMIT_SHORT_SHA}" - script: - - echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin "$CONTAINER_REGISTRY" - - docker build -t "$DOCKER_REPOSITORY/$IMAGE_NAME:$IMAGE_VERSION" -t "$DOCKER_REPOSITORY/$IMAGE_NAME:latest" . - - docker push "$DOCKER_REPOSITORY/$IMAGE_NAME:$IMAGE_VERSION" - - docker push "$DOCKER_REPOSITORY/$IMAGE_NAME:latest" - only: -# do not forget about branch name - - main \ No newline at end of file From 0db69b5f5b9c435f9d9ffeabe02d81cc74cc65d8 Mon Sep 17 00:00:00 2001 From: Mykyta Prykhodko Date: Tue, 20 May 2025 00:20:06 +0200 Subject: [PATCH 2/3] Set application.yaml variables to dev mode --- .../src/main/resources/application.yaml | 24 +++++++++---------- 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/springboot/src/main/resources/application.yaml b/springboot/src/main/resources/application.yaml index 97a2dcf..48bf34e 100644 --- a/springboot/src/main/resources/application.yaml +++ b/springboot/src/main/resources/application.yaml @@ -1,16 +1,16 @@ spring: -# security: -# oauth2: -# resourceserver: -# jwt: -# issuer-uri: http://localhost:8082/realms/FSA -# jwk-set-uri: http://localhost:8082/realms/FSA/protocol/openid-connect/certs -# datasource: -# url: jdbc:postgresql://localhost:6969/windat_db -# username: admin -# password: admin -# driver-class-name: org.postgresql.Driver -# name: windat_db + security: + oauth2: + resourceserver: + jwt: + issuer-uri: http://localhost:8082/realms/FSA + jwk-set-uri: http://localhost:8082/realms/FSA/protocol/openid-connect/certs + datasource: + url: jdbc:postgresql://localhost:6969/windat_db + username: admin + password: admin + driver-class-name: org.postgresql.Driver + name: windat_db jpa: show-sql: false hibernate: From e39b8499608c11e874a4760770b33a24f9b48567 Mon Sep 17 00:00:00 2001 From: Mykyta Prykhodko Date: Fri, 23 May 2025 14:37:05 +0200 Subject: [PATCH 3/3] Changed realm identifier --- springboot/src/main/resources/application.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/springboot/src/main/resources/application.yaml b/springboot/src/main/resources/application.yaml index 48bf34e..e1322d8 100644 --- a/springboot/src/main/resources/application.yaml +++ b/springboot/src/main/resources/application.yaml @@ -3,8 +3,8 @@ spring: oauth2: resourceserver: jwt: - issuer-uri: http://localhost:8082/realms/FSA - jwk-set-uri: http://localhost:8082/realms/FSA/protocol/openid-connect/certs + issuer-uri: http://localhost:8082/realms/WinDat + jwk-set-uri: http://localhost:8082/realms/WinDat/protocol/openid-connect/certs datasource: url: jdbc:postgresql://localhost:6969/windat_db username: admin