-
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added tests at the end of build process, updated containers and comma…
…nd line program (#481) * Added tests at the end of build process * Reduced execution time simplifying project compilation * Update to run test outside the containing folder * Compilation will happen only using latest unpublished version of JNetReflector * Report fails without application crash * Offset reset shall be dependent from the run kind, without parallel cannot be latest otherwise never exit from the consume loop * Update the way KNet container starts * Command issued can be written in any form, the code look-up always in lower case format * Use the first argument if ClassToRun is not set and there are residual command line arguments
- Loading branch information
1 parent
280e9f7
commit aa2ef03
Showing
27 changed files
with
929 additions
and
142 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,2 +1,5 @@ | ||
*.psd1 diff | ||
*.psm1 diff | ||
*.psm1 diff | ||
|
||
*.sh text eol=lf | ||
*.yaml text eol=auto |
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
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,43 @@ | ||
FROM --platform=$BUILDPLATFORM mcr.microsoft.com/dotnet/sdk:8.0-jammy AS build-env | ||
ARG TARGETARCH | ||
WORKDIR /app | ||
|
||
# Copy everything | ||
COPY ./src/net ./ | ||
ENV KNET_DOCKER_BUILD_ACTIONS=true | ||
# Restore as distinct layers | ||
RUN dotnet restore KNetDocker.sln -a $TARGETARCH | ||
# Build and publish a release | ||
RUN dotnet publish ./KNetCLI/KNetCLI.csproj --framework net8.0 -c Release -o out -a $TARGETARCH | ||
|
||
# Build runtime image | ||
FROM --platform=$BUILDPLATFORM mcr.microsoft.com/dotnet/runtime:8.0-jammy | ||
|
||
LABEL org.opencontainers.image.authors='https://github.com/masesgroup', \ | ||
org.opencontainers.image.url='https://knet.masesgroup.com' \ | ||
org.opencontainers.image.documentation='https://knet.masesgroup.com' \ | ||
org.opencontainers.image.source='https://github.com/masesgroup/KNet' \ | ||
org.opencontainers.image.vendor='MASES Group' \ | ||
org.opencontainers.image.licenses='Apache-2.0' \ | ||
org.opencontainers.image.description="KNet Test container" | ||
|
||
# Add JRE | ||
RUN apt-get update && apt-get install -y --no-install-recommends openjdk-17-jre-headless && rm -rf /var/lib/apt/lists/* | ||
|
||
ADD ./jars /app/jars | ||
ADD ./src/config /app/config | ||
ADD ./src/container/KNetTestRun.sh /app | ||
ADD ./src/container/zookeeper.properties /app | ||
ADD ./src/container/server.properties /app | ||
ADD ./src/container/log4j.properties /app | ||
|
||
ENV JCOBRIDGE_JVMPath=/usr/lib/jvm/java-17-openjdk-amd64/lib/server/libjvm.so | ||
ENV JCOBRIDGE_LicensePath= | ||
|
||
EXPOSE 2181 | ||
EXPOSE 9092 | ||
|
||
WORKDIR /app | ||
COPY --from=build-env /app/out . | ||
RUN chmod +x /app/KNetTestRun.sh | ||
CMD /app/KNetTestRun.sh |
Oops, something went wrong.