-
Notifications
You must be signed in to change notification settings - Fork 4
/
Containerfile
29 lines (22 loc) · 1.21 KB
/
Containerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
FROM registry.access.redhat.com/ubi9/openjdk-17:latest
USER root
RUN microdnf install -y git
RUN install -d /home/default/ai-telemetry
COPY . /home/default/ai-telemetry
RUN git clone https://github.com/computate-org/computate-base.git /home/default/computate-base
RUN git clone https://github.com/computate-org/computate-search.git /home/default/computate-search
RUN git clone https://github.com/computate-org/computate-vertx.git /home/default/computate-vertx
RUN git clone https://github.com/OCP-on-NERC/ai-telemetry-static.git /home/default/ai-telemetry-static
WORKDIR /home/default/computate-base
RUN mvn clean install -DskipTests
WORKDIR /home/default/computate-search
RUN mvn clean install -DskipTests
WORKDIR /home/default/computate-vertx
RUN mvn clean install -DskipTests
WORKDIR $HOME/ai-telemetry
RUN mvn clean install -DskipTests
RUN rm -rf /home/default/computate-base /home/default/computate-search /home/default/computate-vertx
WORKDIR /home/default/ai-telemetry
RUN mvn clean install -DskipTests
RUN mvn dependency:build-classpath -Dmdep.outputFile=/home/default/ai-telemetry/cp.txt -q
CMD java -cp "$(cat /home/default/ai-telemetry/cp.txt):/home/default/ai-telemetry/classes" org.mghpcc.aitelemetry.verticle.MainVerticle