lianshufeng 1 an în urmă
părinte
comite
1bc9ae9961

+ 2 - 2
angel/buildHelper/pom.xml

@@ -4,9 +4,9 @@
     <modelVersion>4.0.0</modelVersion>
     <parent>
         <groupId>com.github.microservice</groupId>
-        <artifactId>PParent</artifactId>
+        <artifactId>MSRunnable</artifactId>
         <version>1.0.0-SNAPSHOT</version>
-        <relativePath>../../super/PParent</relativePath>
+        <relativePath>../../super/MSRunnable</relativePath>
     </parent>
 
     <groupId>com.github.microservice</groupId>

+ 5 - 0
angel/docker/standalone/middleware/.env

@@ -0,0 +1,5 @@
+Broker_User=admin
+Broker_Password=admin
+Broker_Role=admins
+
+consul_version=1.15

+ 29 - 0
angel/docker/standalone/middleware/docker-compose.yml

@@ -0,0 +1,29 @@
+
+services:
+
+  #注册发现服务 - 集群
+  consul_node:
+    image: consul:${consul_version}
+    ports:
+      - "8500:8500"
+      - "8600:8600/udp"
+    container_name: consul
+    volumes:
+      - "./data/consul:/data"
+    restart: always
+
+
+  springboot:
+    image: lianshufeng/springboot:jdk17
+    ports:
+      - "8080:8080"
+    volumes:
+      - "./:/opt/jar"
+    working_dir: /opt/jar
+    container_name: app
+    restart: always
+    environment:
+      - UpdateResources=http://192.168.0.28:8080/BuildHelper-0.0.1-SNAPSHOT.jar
+    command: nohup java -Dfile.encoding=UTF-8 -Xmx500m -Xms300m -Duser.timezone=GMT+8 -Dspring.profiles.active=dev -jar app.jar
+    depends_on:
+      - consul_node

+ 11 - 0
angel/docker/standalone/middleware/setup.sh

@@ -0,0 +1,11 @@
+#!/bin/bash
+
+
+#  (consul)
+mkdir -p ./data/consul
+chmod -R 777 ./data/consul
+
+
+
+# restart
+docker-compose down ; docker-compose up -d

+ 1 - 0
pom.xml

@@ -35,6 +35,7 @@
 
 
 
+
     </modules>
 
 

+ 1 - 0
super/PCore/src/main/java/com/github/microservice/core/mvc/MVCConfiguration.java

@@ -7,5 +7,6 @@ import org.springframework.context.annotation.Import;
 @Import({MVCRequestConfiguration.class, MVCResponseConfiguration.class})
 public class MVCConfiguration {
 
+    public final static String StaticResources = "resources";
 
 }