-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
21 changed files
with
747 additions
and
509 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,14 @@ | ||
FROM gradle:7.0.2-jdk11 AS build | ||
COPY --chown=gradle:gradle . /home/gradle/src | ||
WORKDIR /home/gradle/src | ||
RUN gradle build --no-daemon | ||
FROM gradle:8-jdk17-alpine AS build | ||
|
||
FROM openjdk:11-jre-slim | ||
COPY . /app | ||
WORKDIR /app | ||
|
||
RUN mkdir /app | ||
RUN --mount=type=cache,id=gradle-cache,target=/root/.gradle gradle build | ||
|
||
COPY --from=build /home/gradle/src/build/libs/ /app/ | ||
FROM eclipse-temurin:17-alpine | ||
|
||
ENTRYPOINT ["java","-jar","/app/socket-io-redis-emitter-example-backend-1.0.jar"] | ||
WORKDIR /app | ||
|
||
COPY --from=build /app/build/libs/ /app/ | ||
|
||
ENTRYPOINT ["java", "-jar", "example-backend-1.0.0-SNAPSHOT.jar"] |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
import org.jetbrains.kotlin.gradle.dsl.JvmTarget | ||
|
||
plugins { | ||
application | ||
kotlin("jvm") version "2.0.20" | ||
} | ||
|
||
group = "de.smartsquare" | ||
version = "1.0.0-SNAPSHOT" | ||
description = "Socket.io emitter example" | ||
|
||
repositories { | ||
mavenCentral() | ||
} | ||
|
||
dependencies { | ||
implementation("de.smartsquare:socket-io-redis-emitter:0.14.2") | ||
implementation("redis.clients:jedis:5.1.5") | ||
implementation("org.slf4j:slf4j-simple:2.0.16") | ||
} | ||
|
||
java { | ||
sourceCompatibility = JavaVersion.VERSION_17 | ||
targetCompatibility = JavaVersion.VERSION_17 | ||
} | ||
|
||
kotlin { | ||
compilerOptions { | ||
jvmTarget = JvmTarget.JVM_17 | ||
} | ||
} | ||
|
||
application { | ||
mainClass = "de.smartsquare.ApplicationKt" | ||
} | ||
|
||
tasks.withType<Jar> { | ||
manifest { | ||
attributes("Main-Class" to "de.smartsquare.ApplicationKt") | ||
} | ||
|
||
duplicatesStrategy = DuplicatesStrategy.EXCLUDE | ||
|
||
from(configurations.runtimeClasspath.get().map { if (it.isDirectory) it else zipTree(it) }) | ||
} |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
distributionBase=GRADLE_USER_HOME | ||
distributionPath=wrapper/dists | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-7.0.2-bin.zip | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.10-bin.zip | ||
networkTimeout=10000 | ||
validateDistributionUrl=true | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists |
Oops, something went wrong.