切换docker hub

main
wangqing 11 months ago
parent bbfa604396
commit 7e7acc7c23

@ -47,17 +47,30 @@
</dependency> </dependency>
</dependencies> </dependencies>
<build> <build>
<finalName>app</finalName>
<plugins> <plugins>
<plugin> <plugin>
<groupId>org.springframework.boot</groupId> <groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId> <artifactId>spring-boot-maven-plugin</artifactId>
<executions> </plugin>
<execution> <!-- docker的maven插件官网 https://github.com/spotify/docker-maven-plugin -->
<goals> <plugin>
<goal>repackage</goal> <groupId>com.spotify</groupId>
</goals> <artifactId>docker-maven-plugin</artifactId>
</execution> <version>0.4.13</version>
</executions> <configuration>
<imageName>116.62.145.60:5000/${project.artifactId}:${project.version}</imageName>
<baseImage>jdk1.8</baseImage>
<entryPoint>["java", "-jar","/${project.build.finalName}.jar"]</entryPoint>
<resources>
<resource>
<targetPath>/</targetPath>
<directory>${project.build.directory}</directory>
<include>${project.build.finalName}.jar</include>
</resource>
</resources>
<dockerHost>http://116.62.145.60:2375</dockerHost>
</configuration>
</plugin> </plugin>
</plugins> </plugins>
</build> </build>

@ -4,4 +4,5 @@ spring:
name: comment name: comment
profile: dev profile: dev
label: master label: master
uri: http://127.0.0.1:12000 uri: http://116.62.145.60:12000
# uri: http://127.0.0.1:12000

@ -42,7 +42,7 @@
<artifactId>docker-maven-plugin</artifactId> <artifactId>docker-maven-plugin</artifactId>
<version>0.4.13</version> <version>0.4.13</version>
<configuration> <configuration>
<imageName>39.103.180.196:5000/${project.artifactId}:${project.version}</imageName> <imageName>116.62.145.60:5000/${project.artifactId}:${project.version}</imageName>
<baseImage>jdk1.8</baseImage> <baseImage>jdk1.8</baseImage>
<entryPoint>["java", "-jar","/${project.build.finalName}.jar"]</entryPoint> <entryPoint>["java", "-jar","/${project.build.finalName}.jar"]</entryPoint>
<resources> <resources>
@ -52,7 +52,7 @@
<include>${project.build.finalName}.jar</include> <include>${project.build.finalName}.jar</include>
</resource> </resource>
</resources> </resources>
<dockerHost>http://39.103.180.196:2375</dockerHost> <dockerHost>http://116.62.145.60:2375</dockerHost>
</configuration> </configuration>
</plugin> </plugin>
</plugins> </plugins>

@ -53,7 +53,7 @@
<artifactId>docker-maven-plugin</artifactId> <artifactId>docker-maven-plugin</artifactId>
<version>0.4.13</version> <version>0.4.13</version>
<configuration> <configuration>
<imageName>39.103.180.196:5000/${project.artifactId}:${project.version}</imageName> <imageName>116.62.145.60:5000/${project.artifactId}:${project.version}</imageName>
<baseImage>jdk1.8</baseImage> <baseImage>jdk1.8</baseImage>
<entryPoint>["java", "-jar","/${project.build.finalName}.jar"]</entryPoint> <entryPoint>["java", "-jar","/${project.build.finalName}.jar"]</entryPoint>
<resources> <resources>
@ -63,7 +63,7 @@
<include>${project.build.finalName}.jar</include> <include>${project.build.finalName}.jar</include>
</resource> </resource>
</resources> </resources>
<dockerHost>http://39.103.180.196:2375</dockerHost> <dockerHost>http://116.62.145.60:2375</dockerHost>
</configuration> </configuration>
</plugin> </plugin>
</plugins> </plugins>

@ -57,4 +57,32 @@
<artifactId>spring-boot-starter-actuator</artifactId> <artifactId>spring-boot-starter-actuator</artifactId>
</dependency> </dependency>
</dependencies> </dependencies>
<build>
<finalName>app</finalName>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
</plugin>
<!-- docker的maven插件官网 https://github.com/spotify/docker-maven-plugin -->
<plugin>
<groupId>com.spotify</groupId>
<artifactId>docker-maven-plugin</artifactId>
<version>0.4.13</version>
<configuration>
<imageName>116.62.145.60:5000/${project.artifactId}:${project.version}</imageName>
<baseImage>jdk1.8</baseImage>
<entryPoint>["java", "-jar","/${project.build.finalName}.jar"]</entryPoint>
<resources>
<resource>
<targetPath>/</targetPath>
<directory>${project.build.directory}</directory>
<include>${project.build.finalName}.jar</include>
</resource>
</resources>
<dockerHost>http://116.62.145.60:2375</dockerHost>
</configuration>
</plugin>
</plugins>
</build>
</project> </project>

@ -4,4 +4,5 @@ spring:
name: friend name: friend
profile: dev profile: dev
label: master label: master
uri: http://127.0.0.1:12000 uri: http://116.62.145.60:12000
# uri: http://127.0.0.1:12000

@ -48,4 +48,32 @@
<version>1.0-SNAPSHOT</version> <version>1.0-SNAPSHOT</version>
</dependency> </dependency>
</dependencies> </dependencies>
<build>
<finalName>app</finalName>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
</plugin>
<!-- docker的maven插件官网 https://github.com/spotify/docker-maven-plugin -->
<plugin>
<groupId>com.spotify</groupId>
<artifactId>docker-maven-plugin</artifactId>
<version>0.4.13</version>
<configuration>
<imageName>116.62.145.60:5000/${project.artifactId}:${project.version}</imageName>
<baseImage>jdk1.8</baseImage>
<entryPoint>["java", "-jar","/${project.build.finalName}.jar"]</entryPoint>
<resources>
<resource>
<targetPath>/</targetPath>
<directory>${project.build.directory}</directory>
<include>${project.build.finalName}.jar</include>
</resource>
</resources>
<dockerHost>http://116.62.145.60:2375</dockerHost>
</configuration>
</plugin>
</plugins>
</build>
</project> </project>

@ -4,4 +4,5 @@ spring:
name: manage name: manage
profile: dev profile: dev
label: master label: master
uri: http://127.0.0.1:12000 uri: http://116.62.145.60:12000
# uri: http://127.0.0.1:12000

@ -50,17 +50,30 @@
</dependency> </dependency>
</dependencies> </dependencies>
<build> <build>
<finalName>app</finalName>
<plugins> <plugins>
<plugin> <plugin>
<groupId>org.springframework.boot</groupId> <groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId> <artifactId>spring-boot-maven-plugin</artifactId>
<executions> </plugin>
<execution> <!-- docker的maven插件官网 https://github.com/spotify/docker-maven-plugin -->
<goals> <plugin>
<goal>repackage</goal> <groupId>com.spotify</groupId>
</goals> <artifactId>docker-maven-plugin</artifactId>
</execution> <version>0.4.13</version>
</executions> <configuration>
<imageName>116.62.145.60:5000/${project.artifactId}:${project.version}</imageName>
<baseImage>jdk1.8</baseImage>
<entryPoint>["java", "-jar","/${project.build.finalName}.jar"]</entryPoint>
<resources>
<resource>
<targetPath>/</targetPath>
<directory>${project.build.directory}</directory>
<include>${project.build.finalName}.jar</include>
</resource>
</resources>
<dockerHost>http://116.62.145.60:2375</dockerHost>
</configuration>
</plugin> </plugin>
</plugins> </plugins>
</build> </build>

@ -4,4 +4,5 @@ spring:
name: music name: music
profile: dev profile: dev
label: master label: master
uri: http://127.0.0.1:12000 uri: http://116.62.145.60:12000
# uri: http://127.0.0.1:12000

@ -49,4 +49,33 @@
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties> </properties>
<build>
<finalName>app</finalName>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
</plugin>
<!-- docker的maven插件官网 https://github.com/spotify/docker-maven-plugin -->
<plugin>
<groupId>com.spotify</groupId>
<artifactId>docker-maven-plugin</artifactId>
<version>0.4.13</version>
<configuration>
<imageName>116.62.145.60:5000/${project.artifactId}:${project.version}</imageName>
<baseImage>jdk1.8</baseImage>
<entryPoint>["java", "-jar","/${project.build.finalName}.jar"]</entryPoint>
<resources>
<resource>
<targetPath>/</targetPath>
<directory>${project.build.directory}</directory>
<include>${project.build.finalName}.jar</include>
</resource>
</resources>
<dockerHost>http://116.62.145.60:2375</dockerHost>
</configuration>
</plugin>
</plugins>
</build>
</project> </project>

@ -4,4 +4,5 @@ spring:
name: sms name: sms
profile: dev profile: dev
label: master label: master
uri: http://127.0.0.1:12000 uri: http://116.62.145.60:12000
# uri: http://127.0.0.1:12000

@ -58,17 +58,30 @@
</dependency> </dependency>
</dependencies> </dependencies>
<build> <build>
<finalName>app</finalName>
<plugins> <plugins>
<plugin> <plugin>
<groupId>org.springframework.boot</groupId> <groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId> <artifactId>spring-boot-maven-plugin</artifactId>
<executions> </plugin>
<execution> <!-- docker的maven插件官网 https://github.com/spotify/docker-maven-plugin -->
<goals> <plugin>
<goal>repackage</goal> <groupId>com.spotify</groupId>
</goals> <artifactId>docker-maven-plugin</artifactId>
</execution> <version>0.4.13</version>
</executions> <configuration>
<imageName>116.62.145.60:5000/${project.artifactId}:${project.version}</imageName>
<baseImage>jdk1.8</baseImage>
<entryPoint>["java", "-jar","/${project.build.finalName}.jar"]</entryPoint>
<resources>
<resource>
<targetPath>/</targetPath>
<directory>${project.build.directory}</directory>
<include>${project.build.finalName}.jar</include>
</resource>
</resources>
<dockerHost>http://116.62.145.60:2375</dockerHost>
</configuration>
</plugin> </plugin>
</plugins> </plugins>
</build> </build>

@ -4,4 +4,5 @@ spring:
name: web name: web
profile: dev profile: dev
label: master label: master
uri: http://127.0.0.1:12000 uri: http://116.62.145.60:12000
# uri: http://127.0.0.1:12000

@ -105,4 +105,33 @@
</snapshots> </snapshots>
</pluginRepository> </pluginRepository>
</pluginRepositories> </pluginRepositories>
<build>
<finalName>app</finalName>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
</plugin>
<!-- docker的maven插件官网 https://github.com/spotify/docker-maven-plugin -->
<plugin>
<groupId>com.spotify</groupId>
<artifactId>docker-maven-plugin</artifactId>
<version>0.4.13</version>
<configuration>
<imageName>116.62.145.60:5000/${project.artifactId}:${project.version}</imageName>
<baseImage>jdk1.8</baseImage>
<entryPoint>["java", "-jar","/${project.build.finalName}.jar"]</entryPoint>
<resources>
<resource>
<targetPath>/</targetPath>
<directory>${project.build.directory}</directory>
<include>${project.build.finalName}.jar</include>
</resource>
</resources>
<dockerHost>http://116.62.145.60:2375</dockerHost>
</configuration>
</plugin>
</plugins>
</build>
</project> </project>

Loading…
Cancel
Save