-
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.
If applied, this commit will add update libs references.
- Loading branch information
1 parent
153bcf3
commit d2e155f
Showing
3 changed files
with
33 additions
and
12 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,16 +1,33 @@ | ||
FROM vegardit/graalvm-maven:latest-java17 AS build | ||
FROM ubuntu:bionic as builder | ||
LABEL maintainder="UDamasceno <udamasceno@ecomp.uefs.br>" | ||
|
||
WORKDIR /opt | ||
COPY . . | ||
RUN mvn -Pnative -DskipTests package && ls | ||
|
||
FROM ubuntu:23.04 | ||
|
||
RUN apt-get update -y && apt-get upgrade -y && apt-get autoremove -y\ | ||
&& apt-get install net-tools -y\ | ||
&& apt-get install iproute2 -y\ | ||
&& apt-get install iputils-ping -y\ | ||
&& apt-get autoremove -y\ | ||
&& apt-get install wget -y\ | ||
&& wget https://github.com/UellingtonDamasceno/virtual-fot-device/archive/refs/tags/latest.zip\ | ||
&& apt-get install unzip -y\ | ||
&& unzip latest.zip\ | ||
&& rm latest.zip\ | ||
&& mv virtual-fot-device-latest vfd\ | ||
&& cd vfd\ | ||
&& apt-get install openjdk-11-jdk maven -y\ | ||
&& mvn clean install\ | ||
&& apt-get purge maven -y\ | ||
&& apt-get autoremove -y\ | ||
&& apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* | ||
|
||
FROM adoptopenjdk/openjdk11:jre-11.0.18_10-alpine as vfd-run | ||
WORKDIR /opt | ||
RUN apk add --update --no-cache \ | ||
bash \ | ||
tcpdump \ | ||
iperf \ | ||
busybox-extras \ | ||
iproute2 \ | ||
iputils | ||
|
||
LABEL maintainder="UDamasceno <udamasceno@ecomp.uefs.br>" | ||
COPY --from=build /opt/target/virtual-fot-device virtual-fot-device | ||
ENTRYPOINT ["./virtual-fot-device"] | ||
COPY --from=builder /opt/vfd/target/virtual-fot-device-1.0-SNAPSHOT-jar-with-dependencies.jar /opt/device.jar | ||
ENTRYPOINT ["java", "-jar", "device.jar"] | ||
|
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