Skip to content

Commit 25d53a8

Browse files
authored
Merge pull request #430 from RADAR-base/release-2.3.0
Release 2.3.0
2 parents 992bcae + 8d274e4 commit 25d53a8

File tree

95 files changed

+853
-668
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

95 files changed

+853
-668
lines changed

.github/workflows/codeql-analysis.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,11 @@ jobs:
3939

4040
steps:
4141
- name: Checkout repository
42-
uses: actions/checkout@v2
42+
uses: actions/checkout@v3
4343

4444
# Initializes the CodeQL tools for scanning.
4545
- name: Initialize CodeQL
46-
uses: github/codeql-action/init@v1
46+
uses: github/codeql-action/init@v2
4747
with:
4848
languages: ${{ matrix.language }}
4949
# If you wish to specify custom queries, you can do so here or in a config file.
@@ -54,7 +54,7 @@ jobs:
5454
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
5555
# If this step fails, then you should remove it and run the build manually (see below)
5656
- name: Autobuild
57-
uses: github/codeql-action/autobuild@v1
57+
uses: github/codeql-action/autobuild@v2
5858

5959
# ℹ️ Command-line programs to run using the OS shell.
6060
# 📚 https://git.io/JvXDl
@@ -68,4 +68,4 @@ jobs:
6868
# make release
6969

7070
- name: Perform CodeQL Analysis
71-
uses: github/codeql-action/analyze@v1
71+
uses: github/codeql-action/analyze@v2

.github/workflows/main.yml

Lines changed: 12 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -20,24 +20,14 @@ jobs:
2020
# Steps represent a sequence of tasks that will be executed as part of the job
2121
steps:
2222
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
23-
- uses: actions/checkout@v2
23+
- uses: actions/checkout@v3
2424

25-
- uses: actions/setup-java@v1
25+
- uses: actions/setup-java@v3
2626
with:
27-
java-version: 11
27+
java-version: 17
28+
distribution: temurin
2829

29-
- name: Cache
30-
uses: actions/[email protected]
31-
with:
32-
# Cache gradle directories
33-
path: |
34-
~/.gradle/caches/jars-3
35-
~/.gradle/caches/modules-2/files-2.1/
36-
~/.gradle/caches/modules-2/metadata-2.96/
37-
~/.gradle/native
38-
~/.gradle/wrapper
39-
# Key for restoring and saving the cache
40-
key: ${{ runner.os }}-gradle
30+
- uses: gradle/gradle-build-action@v2
4131

4232
# Compile the code
4333
- name: Compile code
@@ -70,31 +60,31 @@ jobs:
7060
# Steps represent a sequence of tasks that will be executed as part of the job
7161
steps:
7262
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
73-
- uses: actions/checkout@v2
63+
- uses: actions/checkout@v3
7464

7565
- name: Login to Docker Hub
76-
uses: docker/login-action@v1
66+
uses: docker/login-action@v2
7767
with:
7868
username: ${{ secrets.DOCKERHUB_USERNAME }}
7969
password: ${{ secrets.DOCKERHUB_TOKEN }}
8070

8171
# Add Docker labels and tags
8272
- name: Docker meta
8373
id: docker_meta
84-
uses: crazy-max/ghaction-docker-meta@v2
74+
uses: docker/metadata-action@v4
8575
with:
8676
images: ${{ env.DOCKER_IMAGE }}
8777

8878
# Setup docker build environment
8979
- name: Set up QEMU
90-
uses: docker/setup-qemu-action@v1
80+
uses: docker/setup-qemu-action@v2
9181

9282
- name: Set up Docker Buildx
93-
uses: docker/setup-buildx-action@v1
83+
uses: docker/setup-buildx-action@v2
9484

9585
- name: Cache Docker layers
9686
id: cache-buildx
97-
uses: actions/cache@v2
87+
uses: actions/cache@v3
9888
with:
9989
path: /tmp/.buildx-cache
10090
key: ${{ runner.os }}-buildx-${{ hashFiles('Dockerfile', '**/*.gradle.kts', 'gradle.properties', 'src/main/**') }}
@@ -111,7 +101,7 @@ jobs:
111101
fi
112102
113103
- name: Build docker
114-
uses: docker/build-push-action@v2
104+
uses: docker/build-push-action@v3
115105
with:
116106
cache-from: type=local,src=/tmp/.buildx-cache
117107
cache-to: ${{ steps.cache-parameters.outputs.cache-to }}

.github/workflows/release.yml

Lines changed: 13 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -13,31 +13,21 @@ jobs:
1313
# Steps represent a sequence of tasks that will be executed as part of the job
1414
steps:
1515
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
16-
- uses: actions/checkout@v2
17-
- uses: actions/setup-java@v1
16+
- uses: actions/checkout@v3
17+
- uses: actions/setup-java@v3
1818
with:
19-
java-version: 11
19+
java-version: 17
20+
distribution: temurin
2021

21-
- name: Cache
22-
uses: actions/[email protected]
23-
with:
24-
# A list of files, directories, and wildcard patterns to cache and restore
25-
path: |
26-
~/.gradle/caches/jars-3
27-
~/.gradle/caches/modules-2/files-2.1/
28-
~/.gradle/caches/modules-2/metadata-2.96/
29-
~/.gradle/native
30-
~/.gradle/wrapper
31-
# An explicit key for restoring and saving the cache
32-
key: ${{ runner.os }}-gradle
22+
- uses: gradle/gradle-build-action@v2
3323

3424
# Compile code
3525
- name: Compile code
3626
run: ./gradlew assemble
3727

3828
# Upload it to GitHub
3929
- name: Upload to GitHub
40-
uses: AButler/[email protected]
30+
uses: AButler/[email protected].2
4131
with:
4232
files: 'build/libs/*'
4333
repo-token: ${{ secrets.GITHUB_TOKEN }}
@@ -52,32 +42,32 @@ jobs:
5242

5343
# Steps represent a sequence of tasks that will be executed as part of the job
5444
steps:
55-
- uses: actions/checkout@v2
45+
- uses: actions/checkout@v3
5646

5747
# Setup docker build environment
5848
- name: Set up QEMU
59-
uses: docker/setup-qemu-action@v1
49+
uses: docker/setup-qemu-action@v2
6050

6151
- name: Set up Docker Buildx
62-
uses: docker/setup-buildx-action@v1
52+
uses: docker/setup-buildx-action@v2
6353

6454
- name: Login to DockerHub
65-
uses: docker/login-action@v1
55+
uses: docker/login-action@v2
6656
with:
6757
username: ${{ secrets.DOCKERHUB_USERNAME }}
6858
password: ${{ secrets.DOCKERHUB_TOKEN }}
6959

7060
# Add Docker labels and tags
7161
- name: Docker meta
7262
id: docker_meta
73-
uses: crazy-max/ghaction-docker-meta@v2
63+
uses: docker/metadata-action@v4
7464
with:
7565
images: ${{ env.DOCKER_IMAGE }}
7666
tags: |
7767
type=semver,pattern={{version}}
7868
type=semver,pattern={{major}}.{{minor}}
7969
- name: Build docker
80-
uses: docker/build-push-action@v2
70+
uses: docker/build-push-action@v3
8171
with:
8272
# Allow running the image on the architectures supported by openjdk:17-jre-slim
8373
platforms: linux/amd64,linux/arm64
@@ -93,4 +83,4 @@ jobs:
9383
- name: Inspect docker image
9484
run: |
9585
docker pull ${{ env.DOCKER_IMAGE }}:${{ steps.docker_meta.outputs.version }}
96-
docker image inspect ${{ env.DOCKER_IMAGE }}:${{ steps.docker_meta.outputs.version }}
86+
docker image inspect ${{ env.DOCKER_IMAGE }}:${{ steps.docker_meta.outputs.version }}

Dockerfile

Lines changed: 12 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,35 @@
1-
FROM openjdk:11-jdk-slim AS builder
1+
FROM --platform=$BUILDPLATFORM gradle:8.0-jdk17 AS builder
22

33
RUN mkdir /code
44
WORKDIR /code
55

6-
ENV GRADLE_OPTS -Dorg.gradle.daemon=false
7-
8-
COPY ./gradle /code/gradle
9-
COPY ./gradlew /code/
10-
RUN ./gradlew --version
6+
ENV GRADLE_USER_HOME=/code/.gradlecache \
7+
GRADLE_OPTS='-Djdk.lang.Process.launchMechanism=vfork -Dorg.gradle.daemon=false -Dorg.gradle.vfs.watch=false'
118

129
COPY ./build.gradle ./settings.gradle /code/
10+
11+
RUN gradle downloadDependencies copyDependencies
12+
1313
COPY ./src /code/src
1414

15-
RUN ./gradlew unpack
15+
RUN gradle unpack
1616

17-
FROM openjdk:11-jre-slim
17+
FROM eclipse-temurin:17-jre
1818

1919
LABEL maintainer="Yatharth Ranjan <[email protected]>"
2020

2121
LABEL description="RADAR-base App server"
2222

23-
ENV JDK_JAVA_OPTIONS '-Xmx2G -Djava.security.egd=file:/dev/./urandom'
24-
ENV SPRING_PROFILES_ACTIVE prod
23+
ENV JDK_JAVA_OPTIONS='-Xmx2G -Djava.security.egd=file:/dev/./urandom' \
24+
SPRING_PROFILES_ACTIVE=prod
2525

2626
VOLUME /tmp
2727
ARG DEPENDENCY=/code/build/dependency
2828

29-
RUN apt-get update && apt-get install -y \
30-
curl \
31-
wget \
32-
&& rm -rf /var/lib/apt/lists/*
33-
34-
COPY --from=builder ${DEPENDENCY}/BOOT-INF/lib /app/lib
29+
COPY --from=builder /code/build/third-party/* /app/lib/
3530
COPY --from=builder ${DEPENDENCY}/META-INF /app/META-INF
3631
COPY --from=builder ${DEPENDENCY}/BOOT-INF/classes /app
3732

3833
EXPOSE 8080
3934

40-
ENTRYPOINT [ "java", "-cp", "app:app/lib/*", "org.radarbase.appserver.AppserverApplication"]
35+
ENTRYPOINT [ "java", "-cp", "app:app/lib/*", "org.radarbase.appserver.AppserverApplication"]

0 commit comments

Comments
 (0)