3f75c54bee
The static methods in the new class `eu.nebulouscloud.optimiser.kubevela.KubevelaAnalyzer` are used by multiple components in the NebulOuS Solver. Create a library `nebulous-requirements-extractor` that houses this class. Adapt the container build job to run at project root, not inside the `nebulous-controller` subdirectory. Add jobs for library build and repository upload. Change-Id: Ic61c7064d216201031659bc362e3ed218f9c2b67
15 lines
499 B
Docker
15 lines
499 B
Docker
#
|
|
# Build stage
|
|
#
|
|
FROM docker.io/library/gradle:8-jdk17-alpine AS build
|
|
COPY . /home/optimiser-controller
|
|
WORKDIR /home/optimiser-controller
|
|
RUN gradle --no-daemon -Dorg.gradle.logging.level=info clean build
|
|
|
|
#
|
|
# Package stage
|
|
#
|
|
FROM docker.io/library/eclipse-temurin:17-jre
|
|
COPY --from=build /home/optimiser-controller/optimiser-controller/dist/optimiser-controller-all.jar /usr/local/lib/optimiser-controller-all.jar
|
|
ENTRYPOINT ["java","-jar","/usr/local/lib/optimiser-controller-all.jar", "-vv"]
|