This is an automated email from the ASF dual-hosted git repository.

jinrongtong pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/rocketmq-exporter.git


The following commit(s) were added to refs/heads/master by this push:
     new a643d3e  [ISSUE #154] make building docker images successful
a643d3e is described below

commit a643d3ee4afcfbbabef94480a339308a9a996196
Author: caigy <csgyt...@163.com>
AuthorDate: Mon Jan 22 10:06:35 2024 +0800

    [ISSUE #154] make building docker images successful
    
    Co-authored-by: gaoyang.cgy <gaoyang....@alibaba-inc.com>
---
 pom.xml                    | 6 +++++-
 src/main/docker/Dockerfile | 4 ++--
 2 files changed, 7 insertions(+), 3 deletions(-)

diff --git a/pom.xml b/pom.xml
index 7084b57..bdfbce9 100644
--- a/pom.xml
+++ b/pom.xml
@@ -126,12 +126,16 @@
                 </dependencies>
                 <configuration>
                     
<imageName>${docker.image.prefix}/${project.artifactId}</imageName>
+                    <imageTags>
+                        <imageTag>${project.version}</imageTag>
+                        <imageTag>latest</imageTag>
+                    </imageTags>
                     <dockerDirectory>src/main/docker</dockerDirectory>
                     <resources>
                         <resource>
                             <targetPath>/</targetPath>
                             <directory>${project.build.directory}</directory>
-                            <include>${project.build.finalName}.jar</include>
+                            
<include>${project.build.finalName}-exec.jar</include>
                         </resource>
                     </resources>
                 </configuration>
diff --git a/src/main/docker/Dockerfile b/src/main/docker/Dockerfile
index 4953093..792939a 100644
--- a/src/main/docker/Dockerfile
+++ b/src/main/docker/Dockerfile
@@ -17,6 +17,6 @@
 
 FROM java:8
 MAINTAINER breeze
-ADD rocketmq-exporter-0.0.2-SNAPSHOT-exec.jar quickstart.jar
+ADD rocketmq-exporter-0.0.2-SNAPSHOT-exec.jar rocketmq-exporter.jar
 EXPOSE 5557
-ENTRYPOINT ["java","-jar","quickstart.jar"]
+ENTRYPOINT ["java","-jar","rocketmq-exporter.jar"]

Reply via email to