first commit
This commit is contained in:
15
cmii-uav-watchdog-agent/java-run/Dockerfile
Normal file
15
cmii-uav-watchdog-agent/java-run/Dockerfile
Normal file
@@ -0,0 +1,15 @@
|
||||
FROM alpine:3.18
|
||||
|
||||
RUN apk add --no-cache openjdk17
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY wdd-springboot-test-0.0.1-SNAPSHOT.jar /app/jarfile.jar
|
||||
|
||||
COPY cmii-watchdog_linux_amd64 /app/cmii-watchdog
|
||||
|
||||
CMD ["chmod", "+x", "/app/cmii-watchdog"]
|
||||
|
||||
EXPOSE 8080
|
||||
|
||||
ENTRYPOINT ["/app/cmii-watchdog", "-business-program-type", "java", "-business-program-path", "/app/jarfile.jar"]
|
||||
16
cmii-uav-watchdog-agent/java-run/build_cmii_watchdog.sh
Normal file
16
cmii-uav-watchdog-agent/java-run/build_cmii_watchdog.sh
Normal file
@@ -0,0 +1,16 @@
|
||||
#!/bin/bash
|
||||
|
||||
cd /root/wdd/cmii-watchdog
|
||||
|
||||
pwd
|
||||
|
||||
current_date=$(date +"%Y-%m-%d-%H-%M-%S")
|
||||
|
||||
|
||||
docker build -t cmii-watchdog-java:${current_date} .
|
||||
|
||||
|
||||
docker run -d -p 9000:8080 --name=cmii-watchdog-java-${current_date} cmii-watchdog-java:${current_date}
|
||||
|
||||
|
||||
#docker run -d -p 9000:8080 cmii-watchdog-java:2025-02-25
|
||||
Binary file not shown.
Reference in New Issue
Block a user