From a192a33bfa53a1c9118f6fe919d0bc17db5653c0 Mon Sep 17 00:00:00 2001 From: Nikola Levakov Date: Sat, 16 May 2026 23:13:52 +0200 Subject: [PATCH 01/10] Dockerfile + compose --- Dockerfile | 12 ++++++++++++ docker-compose.yml | 8 ++++++++ 2 files changed, 20 insertions(+) create mode 100644 Dockerfile create mode 100644 docker-compose.yml diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 00000000..ba552e74 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,12 @@ +FROM maven:3.8.5-openjdk-8-slim AS build +WORKDIR /app +COPY pom.xml . +RUN mvn dependency:go-offline -q +COPY src ./src +RUN mvn package -DskipTests -q + + +FROM eclipse-temurin:8-jre-alpine +WORKDIR /app +COPY --from=build /app/target/praksa2022-0.0.1-SNAPSHOT.jar app.jar +ENTRYPOINT ["java", "-jar", "app.jar"] diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 00000000..84cf8cbd --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,8 @@ + +services: + api: + build: . + ports: + - "8080:8080" + environment: + PORT: 8080 From 5c4772104a147c059b07aa77b6b8fbb10ab5adbe Mon Sep 17 00:00:00 2001 From: Nikola Levakov Date: Sun, 17 May 2026 00:53:35 +0200 Subject: [PATCH 02/10] 1st workflow --- .github/workflows/pr.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 .github/workflows/pr.yml diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml new file mode 100644 index 00000000..69d27221 --- /dev/null +++ b/.github/workflows/pr.yml @@ -0,0 +1,17 @@ +name: Pull Request Workflow +on: + pull_request: + types: [opened, synchronize, reopened] + branches: [master] +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: Setup Java + uses: actions/setup-java@v3 + with: + java-version: '8' + distribution: 'temurin' + - name: Run Tests + run: mvn test \ No newline at end of file From 5ad41d4165199ad4b8b47d2dd2c8d90d28de6353 Mon Sep 17 00:00:00 2001 From: Nikola Levakov Date: Sun, 17 May 2026 00:54:33 +0200 Subject: [PATCH 03/10] test --- test.txt | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 test.txt diff --git a/test.txt b/test.txt new file mode 100644 index 00000000..17024d10 --- /dev/null +++ b/test.txt @@ -0,0 +1,3 @@ +dasdasdas + + From 09b528d795483af9373e6392b034658ef158a9e0 Mon Sep 17 00:00:00 2001 From: Nikola Levakov Date: Sun, 17 May 2026 00:55:01 +0200 Subject: [PATCH 04/10] test --- src/main/java/intens/api/praksa2022/Praksa2022Application.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/java/intens/api/praksa2022/Praksa2022Application.java b/src/main/java/intens/api/praksa2022/Praksa2022Application.java index a2ee87b1..3dcf9843 100644 --- a/src/main/java/intens/api/praksa2022/Praksa2022Application.java +++ b/src/main/java/intens/api/praksa2022/Praksa2022Application.java @@ -10,4 +10,7 @@ public static void main(String[] args) { SpringApplication.run(Praksa2022Application.class, args); } + + + } From 63e82df84b11c2f134ff27da61cbaff7b453438e Mon Sep 17 00:00:00 2001 From: Nikola Levakov Date: Sun, 17 May 2026 00:56:44 +0200 Subject: [PATCH 05/10] test --- .github/workflows/master.yml | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 .github/workflows/master.yml diff --git a/.github/workflows/master.yml b/.github/workflows/master.yml new file mode 100644 index 00000000..b67835a7 --- /dev/null +++ b/.github/workflows/master.yml @@ -0,0 +1,2 @@ +name: +on: \ No newline at end of file From 7c98f58b38390504910f40169f1f31ecc601f17f Mon Sep 17 00:00:00 2001 From: Nikola Levakov Date: Sun, 17 May 2026 01:05:56 +0200 Subject: [PATCH 06/10] test --- .github/workflows/master.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/master.yml b/.github/workflows/master.yml index b67835a7..e69de29b 100644 --- a/.github/workflows/master.yml +++ b/.github/workflows/master.yml @@ -1,2 +0,0 @@ -name: -on: \ No newline at end of file From 07bba5a5c18c1d9747eccb2e6e2fde05400509c8 Mon Sep 17 00:00:00 2001 From: Nikola Levakov Date: Sun, 17 May 2026 01:06:59 +0200 Subject: [PATCH 07/10] test --- .env | 1 + .github/workflows/master.yml | 0 2 files changed, 1 insertion(+) create mode 100644 .env delete mode 100644 .github/workflows/master.yml diff --git a/.env b/.env new file mode 100644 index 00000000..d3e4ac46 --- /dev/null +++ b/.env @@ -0,0 +1 @@ +PORT = 8080 \ No newline at end of file diff --git a/.github/workflows/master.yml b/.github/workflows/master.yml deleted file mode 100644 index e69de29b..00000000 From 58fb496f61b2d073ceaa15154892c364524e0195 Mon Sep 17 00:00:00 2001 From: Nikola Levakov Date: Sun, 17 May 2026 01:07:18 +0200 Subject: [PATCH 08/10] test --- .env | 1 - 1 file changed, 1 deletion(-) delete mode 100644 .env diff --git a/.env b/.env deleted file mode 100644 index d3e4ac46..00000000 --- a/.env +++ /dev/null @@ -1 +0,0 @@ -PORT = 8080 \ No newline at end of file From 9c2dc2a3471953431bc5d1dca4c3e585b763b5ce Mon Sep 17 00:00:00 2001 From: Nikola Levakov Date: Sun, 17 May 2026 01:12:05 +0200 Subject: [PATCH 09/10] test --- test.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/test.txt b/test.txt index 17024d10..ff606124 100644 --- a/test.txt +++ b/test.txt @@ -1,3 +1,4 @@ dasdasdas +dddd \ No newline at end of file From f6965ba4debf20bb9830a868a69736b22fc00b36 Mon Sep 17 00:00:00 2001 From: Nikola Levakov Date: Sun, 17 May 2026 01:17:13 +0200 Subject: [PATCH 10/10] test --- src/main/resources/application.properties | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/resources/application.properties b/src/main/resources/application.properties index 1960fa73..7d0b6429 100644 --- a/src/main/resources/application.properties +++ b/src/main/resources/application.properties @@ -1 +1 @@ -server.port=${PORT} \ No newline at end of file +server.port=${PORT:8080} \ No newline at end of file