Skip to content
Permalink
Browse files
fabric8 configuration
  • Loading branch information
chickenlj committed Sep 29, 2017
1 parent 6f6d8b2 commit 9e50b4b061bc21f84daeb8e4d9a5d25e0bc8d11a
Show file tree
Hide file tree
Showing 34 changed files with 351 additions and 381 deletions.
37 pom.xml
@@ -25,7 +25,7 @@
<tomcat.version>7.0.59</tomcat.version>
<docker.assemblyDescriptorRef>artifact</docker.assemblyDescriptorRef>
<docker.from>docker.io/fabric8/java-jboss-openjdk8-jdk:1.0.10</docker.from>
<docker.image>weipeng2k/${project.artifactId}:${project.version}</docker.image>
<docker.image>dubboteam/${project.artifactId}:${project.version}</docker.image>
<docker.port.container.http>8080</docker.port.container.http>
<docker.port.container.jolokia>8778</docker.port.container.jolokia>
<fabric8.iconRef>icons/spring-boot</fabric8.iconRef>
@@ -54,7 +54,7 @@
<dependency>
<groupId>com.alibaba</groupId>
<artifactId>dubbo</artifactId>
<version>2.5.5</version>
<version>2.5.6-SNAPSHOT</version>
<exclusions>
<exclusion>
<groupId>org.javassist</groupId>
@@ -82,9 +82,42 @@
<artifactId>tomcat-juli</artifactId>
<version>${tomcat.version}</version>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.12</version>
</dependency>

</dependencies>

<profiles>
<profile>
<id>f8-build</id>
<build>
<defaultGoal>clean install docker:build fabric8:json</defaultGoal>
</build>
</profile>
<profile>
<id>f8-deploy</id>
<build>
<defaultGoal>clean install docker:build docker:push fabric8:json fabric8:apply</defaultGoal>
</build>
<properties>
<fabric8.recreate>true</fabric8.recreate>
<fabric8.imagePullPolicySnapshot>Always</fabric8.imagePullPolicySnapshot>
</properties>
</profile>
<profile>
<id>f8-local-deploy</id>
<build>
<defaultGoal>clean install docker:build fabric8:json fabric8:apply</defaultGoal>
</build>
<properties>
<fabric8.recreate>true</fabric8.recreate>
</properties>
</profile>
</profiles>

<build>
<plugins>
<plugin>

This file was deleted.

@@ -7,7 +7,6 @@


@SpringBootApplication
@ComponentScan(basePackages = {"com.alibaba.dubbo.test"}, includeFilters = {@ComponentScan.Filter(type = FilterType.ANNOTATION, classes = {com.alibaba.dubbo.config.annotation.Service.class, com.alibaba.dubbo.config.annotation.Reference.class})})
public class DubboFeatureTestApplication {

public static void main(String[] args) throws InterruptedException {
@@ -9,7 +9,7 @@
* Created by ken.lj on 2017/9/10.
*/
@Configuration
@ImportResource(locations = "classpath:dubbo-${spring.profiles.active}.xml")
@ImportResource(locations = {"classpath:dubbo-common.xml", "classpath:dubbo-${spring.profiles.active}.xml"})
public class DubboConfiguration {

}

0 comments on commit 9e50b4b

Please sign in to comment.