-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
25 changed files
with
45,847 additions
and
9 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,3 +1,12 @@ | ||
# | ||
# https://help.github.com/articles/dealing-with-line-endings/ | ||
# | ||
# Linux start script should use lf | ||
/gradlew text eol=lf | ||
|
||
# These are Windows script files and should use crlf | ||
*.bat text eol=crlf | ||
|
||
workers/python/protos/*pb2.py* linguist-generated=true | ||
loadgen/kitchensink/kitchen_sink.pb.go linguist-generated=true | ||
loadgen/kitchensink/temporal/** linguist-generated=true |
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
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
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
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
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
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 @@ | ||
# Build in a full featured container | ||
FROM eclipse-temurin:11 as build | ||
|
||
RUN apt-get update \ | ||
&& DEBIAN_FRONTEND=noninteractive \ | ||
apt-get install --no-install-recommends --assume-yes \ | ||
protobuf-compiler=3.12.4* git=1:2.34.1-1ubuntu1 | ||
|
||
# Get go compiler | ||
ARG PLATFORM=amd64 | ||
RUN wget -q https://go.dev/dl/go1.20.4.linux-${PLATFORM}.tar.gz \ | ||
&& tar -C /usr/local -xzf go1.20.4.linux-${PLATFORM}.tar.gz | ||
|
||
WORKDIR /app | ||
|
||
# Copy CLI build dependencies | ||
COPY cmd ./cmd | ||
COPY loadgen ./loadgen | ||
COPY scenarios ./scenarios | ||
COPY workers ./workers | ||
COPY go.mod go.sum ./ | ||
|
||
# Build the CLI | ||
RUN CGO_ENABLED=0 /usr/local/go/bin/go build -o temporal-omes ./cmd | ||
|
||
ARG SDK_VERSION | ||
|
||
# Optional SDK dir to copy, defaults to unimportant file | ||
ARG SDK_DIR=.gitignore | ||
COPY ${SDK_DIR} ./repo | ||
|
||
# Build the worker | ||
ENV GRADLE_USER_HOME="/gradle" | ||
RUN CGO_ENABLED=0 ./temporal-omes prepare-worker --language java --dir-name prepared --version "$SDK_VERSION" | ||
|
||
# Copy the CLI and prepared feature to a "run" container. Distroless isn't used here since we run | ||
# through Gradle and it's more annoying than it's worth to get its deps to line up | ||
FROM eclipse-temurin:11 | ||
ENV GRADLE_USER_HOME="/gradle" | ||
|
||
COPY --from=build /app/temporal-omes /app/temporal-omes | ||
COPY --from=build /app/workers/java /app/workers/java | ||
|
||
# Use entrypoint instead of command to "bake" the default command options | ||
ENTRYPOINT ["/app/temporal-omes", "run-worker", "--language", "java", "--dir-name", "prepared"] |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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,49 @@ | ||
plugins { | ||
id 'java' | ||
id 'com.diffplug.spotless' version '6.18.0' | ||
} | ||
|
||
group 'io.temporal' | ||
version '0.1.0' | ||
|
||
java { | ||
sourceCompatibility = JavaVersion.VERSION_1_10 | ||
targetCompatibility = JavaVersion.VERSION_1_10 | ||
} | ||
|
||
repositories { | ||
mavenCentral() | ||
} | ||
|
||
spotless { | ||
java { | ||
googleJavaFormat('1.16.0') | ||
} | ||
} | ||
|
||
dependencies { | ||
implementation 'ch.qos.logback:logback-classic:1.2.9' | ||
implementation 'com.google.guava:guava:31.0.1-jre' | ||
implementation 'com.google.code.gson:gson:2.8.9' | ||
implementation 'com.jayway.jsonpath:json-path:2.6.0' | ||
implementation 'info.picocli:picocli:4.6.2' | ||
implementation 'io.temporal:temporal-sdk:1.22.3' | ||
implementation 'org.junit.jupiter:junit-jupiter-api:5.8.1' | ||
implementation 'org.reflections:reflections:0.10.2' | ||
implementation 'net.logstash.logback:logstash-logback-encoder:7.4' | ||
implementation "io.micrometer:micrometer-registry-prometheus" | ||
|
||
implementation(platform("com.fasterxml.jackson:jackson-bom:2.15.2")) | ||
implementation "com.fasterxml.jackson.core:jackson-databind" | ||
implementation "com.fasterxml.jackson.core:jackson-core" | ||
implementation 'com.google.protobuf:protobuf-java:3.25.0' | ||
|
||
} | ||
|
||
sourceSets { | ||
main { | ||
java { | ||
srcDirs = ['./'] | ||
} | ||
} | ||
} |
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
distributionBase=GRADLE_USER_HOME | ||
distributionPath=wrapper/dists | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.2.1-bin.zip | ||
networkTimeout=10000 | ||
validateDistributionUrl=true | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists |
Oops, something went wrong.