From 764a5b776cd021e36f73d1cfaa35945e9bba9536 Mon Sep 17 00:00:00 2001 From: LenaGmbh Date: Tue, 16 Dec 2025 15:33:04 +0100 Subject: [PATCH] URL-1 and URL-2 Creating microservice and project structure and setting up gradle basics --- .gitignore | 25 ++ .gradle/7.5.1/checksums/checksums.lock | Bin 0 -> 17 bytes .gradle/7.5.1/checksums/md5-checksums.bin | Bin 0 -> 19147 bytes .gradle/7.5.1/checksums/sha1-checksums.bin | Bin 0 -> 20117 bytes .../dependencies-accessors.lock | Bin 0 -> 17 bytes .../dependencies-accessors/gc.properties | 0 .../executionHistory/executionHistory.bin | Bin 0 -> 21054 bytes .../executionHistory/executionHistory.lock | Bin 0 -> 17 bytes .gradle/7.5.1/fileChanges/last-build.bin | Bin 0 -> 1 bytes .gradle/7.5.1/fileHashes/fileHashes.bin | Bin 0 -> 18797 bytes .gradle/7.5.1/fileHashes/fileHashes.lock | Bin 0 -> 17 bytes .gradle/7.5.1/gc.properties | 0 .../buildOutputCleanup.lock | Bin 0 -> 17 bytes .gradle/buildOutputCleanup/cache.properties | 2 + .gradle/buildOutputCleanup/outputFiles.bin | Bin 0 -> 18749 bytes .gradle/file-system.probe | Bin 0 -> 8 bytes .gradle/vcs-1/gc.properties | 0 README.md | 0 build.gradle | 19 ++ build/tmp/jar/MANIFEST.MF | 2 + ci/gitlab-ci.yml | 0 ci/templates/build.yml | 0 ci/templates/deploy.yml | 0 ci/templates/scan.yml | 0 ci/templates/test.yml | 0 ci/trivy/config.yaml | 0 docs/architecture/api-flow.md | 0 docs/architecture/components.md | 0 docs/gnatt/project-timeline.mmd | 0 gradle/wrapper/gradle-wrapper.properties | 5 + gradlew | 240 ++++++++++++++++++ gradlew.bat | 91 +++++++ k8s/base/hpa/redirect-hpa.yaml | 0 k8s/base/ingress/ingress.yaml | 0 k8s/base/namespace.yaml | 0 k8s/base/postgres/values.yaml | 0 services/auth-service/Dockerfile | 0 settings.gradle | 2 + 38 files changed, 386 insertions(+) create mode 100644 .gitignore create mode 100644 .gradle/7.5.1/checksums/checksums.lock create mode 100644 .gradle/7.5.1/checksums/md5-checksums.bin create mode 100644 .gradle/7.5.1/checksums/sha1-checksums.bin create mode 100644 .gradle/7.5.1/dependencies-accessors/dependencies-accessors.lock create mode 100644 .gradle/7.5.1/dependencies-accessors/gc.properties create mode 100644 .gradle/7.5.1/executionHistory/executionHistory.bin create mode 100644 .gradle/7.5.1/executionHistory/executionHistory.lock create mode 100644 .gradle/7.5.1/fileChanges/last-build.bin create mode 100644 .gradle/7.5.1/fileHashes/fileHashes.bin create mode 100644 .gradle/7.5.1/fileHashes/fileHashes.lock create mode 100644 .gradle/7.5.1/gc.properties create mode 100644 .gradle/buildOutputCleanup/buildOutputCleanup.lock create mode 100644 .gradle/buildOutputCleanup/cache.properties create mode 100644 .gradle/buildOutputCleanup/outputFiles.bin create mode 100644 .gradle/file-system.probe create mode 100644 .gradle/vcs-1/gc.properties create mode 100644 README.md create mode 100644 build.gradle create mode 100644 build/tmp/jar/MANIFEST.MF create mode 100644 ci/gitlab-ci.yml create mode 100644 ci/templates/build.yml create mode 100644 ci/templates/deploy.yml create mode 100644 ci/templates/scan.yml create mode 100644 ci/templates/test.yml create mode 100644 ci/trivy/config.yaml create mode 100644 docs/architecture/api-flow.md create mode 100644 docs/architecture/components.md create mode 100644 docs/gnatt/project-timeline.mmd create mode 100644 gradle/wrapper/gradle-wrapper.properties create mode 100644 gradlew create mode 100644 gradlew.bat create mode 100644 k8s/base/hpa/redirect-hpa.yaml create mode 100644 k8s/base/ingress/ingress.yaml create mode 100644 k8s/base/namespace.yaml create mode 100644 k8s/base/postgres/values.yaml create mode 100644 services/auth-service/Dockerfile create mode 100644 settings.gradle diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..e1b88e3 --- /dev/null +++ b/.gitignore @@ -0,0 +1,25 @@ +# ---> Java +# Compiled class file +*.class + +# Log file +*.log + +# BlueJ files +*.ctxt + +# Mobile Tools for Java (J2ME) +.mtj.tmp/ + +# Package Files # +*.jar +*.war +*.nar +*.ear +*.zip +*.tar.gz +*.rar + +# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml +hs_err_pid* +replay_pid* \ No newline at end of file diff --git a/.gradle/7.5.1/checksums/checksums.lock b/.gradle/7.5.1/checksums/checksums.lock new file mode 100644 index 0000000000000000000000000000000000000000..fa6ad450904c7144971ac154a14b0b6ea246bccd GIT binary patch literal 17 UcmZQ}+3TPAyi2wiq literal 0 HcmV?d00001 diff --git a/.gradle/7.5.1/checksums/md5-checksums.bin b/.gradle/7.5.1/checksums/md5-checksums.bin new file mode 100644 index 0000000000000000000000000000000000000000..b01a23fe3b628f14519acf4d8363d6f6cee48f20 GIT binary patch literal 19147 zcmeI(TSyd900!XEGErC5)-83RFv=9f3uTDf#V)#Pt`|z_L5r+J%M~oxjLKZJvP@7( zZ1b{N7O|0S)PrfzO(euzNjKBg+>D4I5Hm$0?TqIfB&X*d;vbj`|D1nz=40M=&Q3w_ za-U<1u&^i=4siql2tWV=5P$##AOHafKmY;|fB*y_009U<00Izz!2cq!mpq6weHgDm zd-1?cD+nPna^QNkwJ~QV`)MLQ9UsR3Kd4n3OHBHJ0-DD;@w{$qNEjK&k6`1odEVkY z+IMIC(*(<}@w_{2<>|Vk-6z;}dU^i7y(cSI>1d$2>K)GqSMBn1`H)(|uCs*a!?uKi z+0UaYHolqX)5DHA55Kj3r+Hi>&y~j9w9KCeZ?N&ldG5ExF1;xG$7VJ@lIN;@lTKPi zXA8^oc&^RVy|npj_OR?{WR6rmeTq4M$ePToPjnV)YA(S|Zm z+Ssqp$U2)*7+jJ*arn!451E@V-&jiH3+*dv+j#gJS-`4dSRO?n)SmP0GxIU0J&Kugy z{#tXoeW#@{#y8A`HQH&zL!98T=*d(1t~53Lidr-ItngCJso-$h2qk-Qkrk26qDKFe z`hYcMq+V@mpDyp;L|z6_H&ioU5Il9##%iCt^+#epR%|?$kx*{v@L&x#??U#MMw3y9 b?Q(Xw7->3}-yK{2l{Lioi7fI4vI+VP)>us2 literal 0 HcmV?d00001 diff --git a/.gradle/7.5.1/checksums/sha1-checksums.bin b/.gradle/7.5.1/checksums/sha1-checksums.bin new file mode 100644 index 0000000000000000000000000000000000000000..89f5ce3ff7d4fa20ae925f9f670ae18b32fa8cd3 GIT binary patch literal 20117 zcmeI3drVVT9DrM%3RPqUc_|<$FoxRlEKWoNA}@6~5ec(PeW7!$P|$+9p;V|k-+}{C zP}~GmbT*(kABb~R)L;-r4GI-4E{F(Loy^zH<(w0>y&Lt7w0&H5bi+v2)c& zehlSqN&LxYUL=pkJaPx+?q#uayG{%nNO&#fo@VWj%i3I|m`C|h&MOL6R8;2C_obWi zaSx>)Ny}0e;q#|`OLxlTIe^pV9fxR0NMJrsZfPyh-* z0Vn_kpa2wr0#E=7KmjNK1)u;FfC5ke3P1rU00p1`6o3Ly017|>C;$bZ02F`%Pyh-* z0Vn_kpa2wr0#M-7E8v4}iTMZeQOu8(y=%t>vm1v7IhP!pxHy{kC@#c#H;ctCFxoYC zB))f!7(IIb*E)akW$D94=_G|sEW4*UR?7}Q(?zU2Y+1k4x0XfU?KbvrX?4#%zi>#; zo9PY5cu$Dcge?azee3_tx-4(r8t5smxMLpAEwnln!x1Fj#r+=A~R4-=ZbR zl9zSV@4~Z;nH2~9vzS>~eOr~Pr4h$>`=_sRI`OZWgQ?jDzG)^H~m?|c4&_dzjUrXChl#)fLG}`+*i_W zVx7j8C9_OLr-nL#mlnm7o2rD?^1rSf+4AUct}(Xw0&Hd!Q{Rewe=tiK^{Y~@77Sf(v@yU`{T!{AVcumvS<%7yh^6{@W9N(6 zUxl#m>SJZct{j<<3^bz(-AGKJH{$6Lr7A^@UiE-IN*Fb4(>RS8?eHQmx>~-_>XBG3+ zw?nT>9W3@K1uU_(s=0BkC$jQ3?B#3mEc>1PwwPDAsc&n6plWkf^*YPbDhNo|}slM#l zdUxG{87rqX+9)SXG1_9PCYD35WpGoeZwZ!&6yk=U!CeB&^$j&mIk9(k#uMvQuf=xb z>RbEo2m2QPlA%0zOYn_QGC14SZlVZVewKJv(_4LO(#?eNE;F0+0xCMzyIyHXt}1Cq zD~FgGe$4xXHs@z(r&B|nwjy5^cG!Dfp}F>o`_WBx8+<*8MZT4G9s1TDMSFUDW`I@s z>TzX`Cbrcs+)DJjmYL;`zGrANFh#4ybZ50I-UTfiGcqtESvy5BCcSjGsKkg^c&!fm I(eI4)FT7YJ%>V!Z literal 0 HcmV?d00001 diff --git a/.gradle/7.5.1/dependencies-accessors/dependencies-accessors.lock b/.gradle/7.5.1/dependencies-accessors/dependencies-accessors.lock new file mode 100644 index 0000000000000000000000000000000000000000..269fbdac3dd8efd36d15a40a5c9b7193d2f4ce60 GIT binary patch literal 17 TcmZRMikUYn#t+fa)=0)q$7fmwv5{&2Gd)k~fx%YDJ zNoxn&7;K&5J9ZJRFGGq>IyRND4;!r0O+-Q1rm#)%%MiqE-9Y@{U~W4%X_~~Sv?%*9 zo(nfQJkL4LbN;{Q+$R?j6ogv$KNFWwy5^RKFaiQV00;m9AOHk_01yBIKmZ5;0U!Vb zfB+Bx0zd!=00AHX1pY4s;#|ngf|%Op9robyenDt>j1L?Q>VlUYvko69xL5j%{~rW? zda+~Qm)F-8?2%m2Ui{{Ef58WzKmZ5;0U!VbfB+Bx0zd!=00AHX1b_e#00KY&2mk>f z00e*l5C8%|00;m9AOHk_01yBIKmZ5;0U!VbfB+Bx0zd!=00AHX1c1PQNx&xvt_Z(_ z_C2gD>NSy~sf>2_r!mudH)y0MwSlp0VNc?i@QFdYrEZF}G?tJ_B!;YBOX{b{G%=Od z7QT}~tQr(CthsNG>X(pBrj+0%EfSmO^yLdkeEv?jT-qb*d7WlwN!n*da=5sO(n z?N3USEF*^gFmhD{yi3AddBSK4$&F3XY(}V978@{e&1X~694yzF1AvHB&xSa6TO(Of@& ze6aS=wsl*DTjc2Hr>>10^X2BbHufMICTT356Q>tAF;U%#Jf7myz~c$-T^DA57(q|& zbK|EQ*F|>x_}iGB?&2k=znW?fU(Y@|-kt!A`6*IuI~2CdHP0*lJGPe><-dGjzw2O~Ft&;*W)byE8~9 zUD#p)L+59Y1yYDwm^laIv9PCkM+P&bA%-f=yY0;UDZzF%VkEI8KCbfl~?vcHtE&jQ~E55k$XZ_KeOKZg~ zW$uTOqAG*?($&*L-~YO#<>&Wq%$xrx+bZnc?f%Z_ q%8rZ6-w+|f|Kkj?iVfX17BmV+c3;7oS literal 0 HcmV?d00001 diff --git a/.gradle/7.5.1/executionHistory/executionHistory.lock b/.gradle/7.5.1/executionHistory/executionHistory.lock new file mode 100644 index 0000000000000000000000000000000000000000..80e6c2ea6c558872a30e1e2fa662f9159c3a87f8 GIT binary patch literal 17 TcmZP$j1Mr9zIP*?0Rp%ID7OQ7 literal 0 HcmV?d00001 diff --git a/.gradle/7.5.1/fileChanges/last-build.bin b/.gradle/7.5.1/fileChanges/last-build.bin new file mode 100644 index 0000000000000000000000000000000000000000..f76dd238ade08917e6712764a16a22005a50573d GIT binary patch literal 1 IcmZPo000310RR91 literal 0 HcmV?d00001 diff --git a/.gradle/7.5.1/fileHashes/fileHashes.bin b/.gradle/7.5.1/fileHashes/fileHashes.bin new file mode 100644 index 0000000000000000000000000000000000000000..7be4b64eec042f07a14c81858405957514aeadeb GIT binary patch literal 18797 zcmeI(%PT}-7{~E=bG(ojqYMN%vzaxY0K3mYu$NV$|tiHJ!GOO!-J z7GgnZT&GCJijeD>-g83pALx7PJ@0d#_x*KxKikvE6~buvQZMmy1^tv%2q1s}0tg_0 z00IagfB*srAbo9> z?fZeLYQ3fMa3xpv3p2F7`JsKkX{pXj-QTYDv!6TH!fzkm)crnMzd8Q;Mt9{or0ze~ z`fahZdi%CDUF}=7zBViUNx8-y0R#|0009ILKmY**5I_I{1Q0*~0R#|0009ILKmY** z5I_I{1Q0*~0R#|0009ILKmY**5I_I{1bz#cm4`TGM7V~**_ECg;_NX_^;P$Zmu8y~ zx-rj@ON&hS1uJvX-^9RC;9OB{*tnrFI<>l}|3oIv?`6VS=AJ0t&9pcw60=G|A5)Jz zdV1BwolJ;5_r&6;X>-}^{4h^Aa-vR6>oRdMEED1H?uqHqd5bk@EPvJhnrwT_G`bRD mw%sfB9U<I053=b!2kdN literal 0 HcmV?d00001 diff --git a/.gradle/buildOutputCleanup/cache.properties b/.gradle/buildOutputCleanup/cache.properties new file mode 100644 index 0000000..99373cb --- /dev/null +++ b/.gradle/buildOutputCleanup/cache.properties @@ -0,0 +1,2 @@ +#Tue Dec 09 20:32:30 CET 2025 +gradle.version=7.5.1 diff --git a/.gradle/buildOutputCleanup/outputFiles.bin b/.gradle/buildOutputCleanup/outputFiles.bin new file mode 100644 index 0000000000000000000000000000000000000000..eabec0f7ff1bef68ca5c21f96cf40c818e90a7aa GIT binary patch literal 18749 zcmeI&Pbh<79Ki8+i!f|bYLjwMnxWJbDX|)HlpM4cCM$mqOe_cPJ4te)l#8a;a#9X< zbFtFoh{HxZp=5DmZ}0PKNlN0P?_2NtK7HTkecztX^?kjXX0Livn^xFr3PVN+AbRL@8+uT59SqH{~CN2J#! zQ}Jl1JE;1w^ag)o)^~C2HTqzQbZ6sLdsoh%Rox-o{jit}9tMilb7Io_BcnS$^L?3` z-z#Str~fc-(s%t}{ZR7ZkIK*9_4%&vlrL8C4nEMw1poj5 literal 0 HcmV?d00001 diff --git a/.gradle/file-system.probe b/.gradle/file-system.probe new file mode 100644 index 0000000000000000000000000000000000000000..39a28a52f7f1ea18dd9d7a9e186c2282b97e848f GIT binary patch literal 8 PcmZQzV4N+x^5ioB2mAvP literal 0 HcmV?d00001 diff --git a/.gradle/vcs-1/gc.properties b/.gradle/vcs-1/gc.properties new file mode 100644 index 0000000..e69de29 diff --git a/README.md b/README.md new file mode 100644 index 0000000..e69de29 diff --git a/build.gradle b/build.gradle new file mode 100644 index 0000000..ffdfc98 --- /dev/null +++ b/build.gradle @@ -0,0 +1,19 @@ +plugins { + id 'java' +} + +group 'me.lenajenichen' +version '1.0-SNAPSHOT' + +repositories { + mavenCentral() +} + +dependencies { + testImplementation 'org.junit.jupiter:junit-jupiter-api:5.8.1' + testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.8.1' +} + +test { + useJUnitPlatform() +} \ No newline at end of file diff --git a/build/tmp/jar/MANIFEST.MF b/build/tmp/jar/MANIFEST.MF new file mode 100644 index 0000000..59499bc --- /dev/null +++ b/build/tmp/jar/MANIFEST.MF @@ -0,0 +1,2 @@ +Manifest-Version: 1.0 + diff --git a/ci/gitlab-ci.yml b/ci/gitlab-ci.yml new file mode 100644 index 0000000..e69de29 diff --git a/ci/templates/build.yml b/ci/templates/build.yml new file mode 100644 index 0000000..e69de29 diff --git a/ci/templates/deploy.yml b/ci/templates/deploy.yml new file mode 100644 index 0000000..e69de29 diff --git a/ci/templates/scan.yml b/ci/templates/scan.yml new file mode 100644 index 0000000..e69de29 diff --git a/ci/templates/test.yml b/ci/templates/test.yml new file mode 100644 index 0000000..e69de29 diff --git a/ci/trivy/config.yaml b/ci/trivy/config.yaml new file mode 100644 index 0000000..e69de29 diff --git a/docs/architecture/api-flow.md b/docs/architecture/api-flow.md new file mode 100644 index 0000000..e69de29 diff --git a/docs/architecture/components.md b/docs/architecture/components.md new file mode 100644 index 0000000..e69de29 diff --git a/docs/gnatt/project-timeline.mmd b/docs/gnatt/project-timeline.mmd new file mode 100644 index 0000000..e69de29 diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties new file mode 100644 index 0000000..ae04661 --- /dev/null +++ b/gradle/wrapper/gradle-wrapper.properties @@ -0,0 +1,5 @@ +distributionBase=GRADLE_USER_HOME +distributionPath=wrapper/dists +distributionUrl=https\://services.gradle.org/distributions/gradle-7.5.1-bin.zip +zipStoreBase=GRADLE_USER_HOME +zipStorePath=wrapper/dists diff --git a/gradlew b/gradlew new file mode 100644 index 0000000..a69d9cb --- /dev/null +++ b/gradlew @@ -0,0 +1,240 @@ +#!/bin/sh + +# +# Copyright © 2015-2021 the original authors. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + +############################################################################## +# +# Gradle start up script for POSIX generated by Gradle. +# +# Important for running: +# +# (1) You need a POSIX-compliant shell to run this script. If your /bin/sh is +# noncompliant, but you have some other compliant shell such as ksh or +# bash, then to run this script, type that shell name before the whole +# command line, like: +# +# ksh Gradle +# +# Busybox and similar reduced shells will NOT work, because this script +# requires all of these POSIX shell features: +# * functions; +# * expansions «$var», «${var}», «${var:-default}», «${var+SET}», +# «${var#prefix}», «${var%suffix}», and «$( cmd )»; +# * compound commands having a testable exit status, especially «case»; +# * various built-in commands including «command», «set», and «ulimit». +# +# Important for patching: +# +# (2) This script targets any POSIX shell, so it avoids extensions provided +# by Bash, Ksh, etc; in particular arrays are avoided. +# +# The "traditional" practice of packing multiple parameters into a +# space-separated string is a well documented source of bugs and security +# problems, so this is (mostly) avoided, by progressively accumulating +# options in "$@", and eventually passing that to Java. +# +# Where the inherited environment variables (DEFAULT_JVM_OPTS, JAVA_OPTS, +# and GRADLE_OPTS) rely on word-splitting, this is performed explicitly; +# see the in-line comments for details. +# +# There are tweaks for specific operating systems such as AIX, CygWin, +# Darwin, MinGW, and NonStop. +# +# (3) This script is generated from the Groovy template +# https://github.com/gradle/gradle/blob/master/subprojects/plugins/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt +# within the Gradle project. +# +# You can find Gradle at https://github.com/gradle/gradle/. +# +############################################################################## + +# Attempt to set APP_HOME + +# Resolve links: $0 may be a link +app_path=$0 + +# Need this for daisy-chained symlinks. +while + APP_HOME=${app_path%"${app_path##*/}"} # leaves a trailing /; empty if no leading path + [ -h "$app_path" ] +do + ls=$( ls -ld "$app_path" ) + link=${ls#*' -> '} + case $link in #( + /*) app_path=$link ;; #( + *) app_path=$APP_HOME$link ;; + esac +done + +APP_HOME=$( cd "${APP_HOME:-./}" && pwd -P ) || exit + +APP_NAME="Gradle" +APP_BASE_NAME=${0##*/} + +# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. +DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"' + +# Use the maximum available, or set MAX_FD != -1 to use that value. +MAX_FD=maximum + +warn () { + echo "$*" +} >&2 + +die () { + echo + echo "$*" + echo + exit 1 +} >&2 + +# OS specific support (must be 'true' or 'false'). +cygwin=false +msys=false +darwin=false +nonstop=false +case "$( uname )" in #( + CYGWIN* ) cygwin=true ;; #( + Darwin* ) darwin=true ;; #( + MSYS* | MINGW* ) msys=true ;; #( + NONSTOP* ) nonstop=true ;; +esac + +CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar + + +# Determine the Java command to use to start the JVM. +if [ -n "$JAVA_HOME" ] ; then + if [ -x "$JAVA_HOME/jre/sh/java" ] ; then + # IBM's JDK on AIX uses strange locations for the executables + JAVACMD=$JAVA_HOME/jre/sh/java + else + JAVACMD=$JAVA_HOME/bin/java + fi + if [ ! -x "$JAVACMD" ] ; then + die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME + +Please set the JAVA_HOME variable in your environment to match the +location of your Java installation." + fi +else + JAVACMD=java + which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. + +Please set the JAVA_HOME variable in your environment to match the +location of your Java installation." +fi + +# Increase the maximum file descriptors if we can. +if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then + case $MAX_FD in #( + max*) + MAX_FD=$( ulimit -H -n ) || + warn "Could not query maximum file descriptor limit" + esac + case $MAX_FD in #( + '' | soft) :;; #( + *) + ulimit -n "$MAX_FD" || + warn "Could not set maximum file descriptor limit to $MAX_FD" + esac +fi + +# Collect all arguments for the java command, stacking in reverse order: +# * args from the command line +# * the main class name +# * -classpath +# * -D...appname settings +# * --module-path (only if needed) +# * DEFAULT_JVM_OPTS, JAVA_OPTS, and GRADLE_OPTS environment variables. + +# For Cygwin or MSYS, switch paths to Windows format before running java +if "$cygwin" || "$msys" ; then + APP_HOME=$( cygpath --path --mixed "$APP_HOME" ) + CLASSPATH=$( cygpath --path --mixed "$CLASSPATH" ) + + JAVACMD=$( cygpath --unix "$JAVACMD" ) + + # Now convert the arguments - kludge to limit ourselves to /bin/sh + for arg do + if + case $arg in #( + -*) false ;; # don't mess with options #( + /?*) t=${arg#/} t=/${t%%/*} # looks like a POSIX filepath + [ -e "$t" ] ;; #( + *) false ;; + esac + then + arg=$( cygpath --path --ignore --mixed "$arg" ) + fi + # Roll the args list around exactly as many times as the number of + # args, so each arg winds up back in the position where it started, but + # possibly modified. + # + # NB: a `for` loop captures its iteration list before it begins, so + # changing the positional parameters here affects neither the number of + # iterations, nor the values presented in `arg`. + shift # remove old arg + set -- "$@" "$arg" # push replacement arg + done +fi + +# Collect all arguments for the java command; +# * $DEFAULT_JVM_OPTS, $JAVA_OPTS, and $GRADLE_OPTS can contain fragments of +# shell script including quotes and variable substitutions, so put them in +# double quotes to make sure that they get re-expanded; and +# * put everything else in single quotes, so that it's not re-expanded. + +set -- \ + "-Dorg.gradle.appname=$APP_BASE_NAME" \ + -classpath "$CLASSPATH" \ + org.gradle.wrapper.GradleWrapperMain \ + "$@" + +# Stop when "xargs" is not available. +if ! command -v xargs >/dev/null 2>&1 +then + die "xargs is not available" +fi + +# Use "xargs" to parse quoted args. +# +# With -n1 it outputs one arg per line, with the quotes and backslashes removed. +# +# In Bash we could simply go: +# +# readarray ARGS < <( xargs -n1 <<<"$var" ) && +# set -- "${ARGS[@]}" "$@" +# +# but POSIX shell has neither arrays nor command substitution, so instead we +# post-process each arg (as a line of input to sed) to backslash-escape any +# character that might be a shell metacharacter, then use eval to reverse +# that process (while maintaining the separation between arguments), and wrap +# the whole thing up as a single "set" statement. +# +# This will of course break if any of these variables contains a newline or +# an unmatched quote. +# + +eval "set -- $( + printf '%s\n' "$DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS" | + xargs -n1 | + sed ' s~[^-[:alnum:]+,./:=@_]~\\&~g; ' | + tr '\n' ' ' + )" '"$@"' + +exec "$JAVACMD" "$@" diff --git a/gradlew.bat b/gradlew.bat new file mode 100644 index 0000000..f127cfd --- /dev/null +++ b/gradlew.bat @@ -0,0 +1,91 @@ +@rem +@rem Copyright 2015 the original author or authors. +@rem +@rem Licensed under the Apache License, Version 2.0 (the "License"); +@rem you may not use this file except in compliance with the License. +@rem You may obtain a copy of the License at +@rem +@rem https://www.apache.org/licenses/LICENSE-2.0 +@rem +@rem Unless required by applicable law or agreed to in writing, software +@rem distributed under the License is distributed on an "AS IS" BASIS, +@rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +@rem See the License for the specific language governing permissions and +@rem limitations under the License. +@rem + +@if "%DEBUG%"=="" @echo off +@rem ########################################################################## +@rem +@rem Gradle startup script for Windows +@rem +@rem ########################################################################## + +@rem Set local scope for the variables with windows NT shell +if "%OS%"=="Windows_NT" setlocal + +set DIRNAME=%~dp0 +if "%DIRNAME%"=="" set DIRNAME=. +set APP_BASE_NAME=%~n0 +set APP_HOME=%DIRNAME% + +@rem Resolve any "." and ".." in APP_HOME to make it shorter. +for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi + +@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. +set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m" + +@rem Find java.exe +if defined JAVA_HOME goto findJavaFromJavaHome + +set JAVA_EXE=java.exe +%JAVA_EXE% -version >NUL 2>&1 +if %ERRORLEVEL% equ 0 goto execute + +echo. +echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. +echo. +echo Please set the JAVA_HOME variable in your environment to match the +echo location of your Java installation. + +goto fail + +:findJavaFromJavaHome +set JAVA_HOME=%JAVA_HOME:"=% +set JAVA_EXE=%JAVA_HOME%/bin/java.exe + +if exist "%JAVA_EXE%" goto execute + +echo. +echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% +echo. +echo Please set the JAVA_HOME variable in your environment to match the +echo location of your Java installation. + +goto fail + +:execute +@rem Setup the command line + +set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar + + +@rem Execute Gradle +"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %* + +:end +@rem End local scope for the variables with windows NT shell +if %ERRORLEVEL% equ 0 goto mainEnd + +:fail +rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of +rem the _cmd.exe /c_ return code! +set EXIT_CODE=%ERRORLEVEL% +if %EXIT_CODE% equ 0 set EXIT_CODE=1 +if not ""=="%GRADLE_EXIT_CONSOLE%" exit %EXIT_CODE% +exit /b %EXIT_CODE% + +:mainEnd +if "%OS%"=="Windows_NT" endlocal + +:omega diff --git a/k8s/base/hpa/redirect-hpa.yaml b/k8s/base/hpa/redirect-hpa.yaml new file mode 100644 index 0000000..e69de29 diff --git a/k8s/base/ingress/ingress.yaml b/k8s/base/ingress/ingress.yaml new file mode 100644 index 0000000..e69de29 diff --git a/k8s/base/namespace.yaml b/k8s/base/namespace.yaml new file mode 100644 index 0000000..e69de29 diff --git a/k8s/base/postgres/values.yaml b/k8s/base/postgres/values.yaml new file mode 100644 index 0000000..e69de29 diff --git a/services/auth-service/Dockerfile b/services/auth-service/Dockerfile new file mode 100644 index 0000000..e69de29 diff --git a/settings.gradle b/settings.gradle new file mode 100644 index 0000000..527ed80 --- /dev/null +++ b/settings.gradle @@ -0,0 +1,2 @@ +rootProject.name = 'URLShortener' +