File tree Expand file tree Collapse file tree 4 files changed +21
-56
lines changed
examples/devices/lighty-network-topology-device Expand file tree Collapse file tree 4 files changed +21
-56
lines changed Original file line number Diff line number Diff line change 5151 DOCKER_IMAGE_NAME_GHCR=$(echo ghcr.io/pantheontech/${{ env.IMAGE_NAME }})
5252 DOCKER_IMAGE_NAME_GHCR_TAG=$(echo $DOCKER_IMAGE_NAME_GHCR:${{ inputs.version }})
5353
54- echo "cd examples/devices/lighty-network-topology-device"
55- cd examples/devices/lighty-network-topology-device
56- mvn docker:build
54+ echo "docker build -t $DOCKER_IMAGE_NAME ."
55+ docker build -t $DOCKER_IMAGE_NAME .
5756
5857 echo "Docker image tag:" $DOCKER_IMAGE_NAME_GHCR $DOCKER_IMAGE_NAME_GHCR_TAG
5958 docker tag $DOCKER_IMAGE_NAME $DOCKER_IMAGE_NAME_TAG
Original file line number Diff line number Diff line change 1+ ARG VERSION="22.0.0-SNAPSHOT"
2+
3+ FROM maven:3.9-eclipse-temurin-21-alpine as build
4+
5+ ARG VERSION
6+
7+ WORKDIR /lighty-netconf-simulator
8+
9+ COPY . ./
10+
11+ RUN mvn install -DskipTests
12+
13+ WORKDIR /lighty-netconf-simulator/examples/devices/lighty-network-topology-device
14+
15+ RUN cp target/lighty-network-topology-device-$VERSION.jar target/lighty-network-topology-device.jar
16+
17+ EXPOSE 17380
18+
19+ ENTRYPOINT ["java" , "-jar" , "target/lighty-network-topology-device.jar" ]
Original file line number Diff line number Diff line change 6060 <scope >test</scope >
6161 </dependency >
6262 </dependencies >
63- <build >
64- <plugins >
65- <plugin >
66- <groupId >io.fabric8</groupId >
67- <artifactId >docker-maven-plugin</artifactId >
68- <version >0.45.1</version >
69- <configuration >
70- <images >
71- <image >
72- <name >${image.name} </name >
73- <build >
74- <contextDir >${project.basedir} </contextDir >
75- <dockerFile >src/main/docker/Dockerfile</dockerFile >
76- <assembly >
77- <inline >
78- <fileSets >
79- <fileSet >
80- <directory >${project.build.directory} </directory >
81- <includes >
82- <include >*.jar</include >
83- </includes >
84- <outputDirectory >/</outputDirectory >
85- </fileSet >
86- <fileSet >
87- <directory >${project.build.directory} </directory >
88- <includes >
89- <include >*.zip</include >
90- </includes >
91- <outputDirectory >/</outputDirectory >
92- </fileSet >
93- </fileSets >
94- </inline >
95- </assembly >
96- <cleanup >try</cleanup >
97- </build >
98- </image >
99- </images >
100- </configuration >
101- </plugin >
102- </plugins >
103- </build >
10463</project >
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments