double.huang 4 éve
szülő
commit
d0675ee957
5 módosított fájl, 3 hozzáadás és 8 törlés
  1. 1 1
      .drone.yml
  2. 1 1
      Dockerfile
  3. 0 2
      entrypoint.sh
  4. 1 1
      etc/transform.yaml
  5. 0 3
      hosts

+ 1 - 1
.drone.yml

@@ -8,7 +8,7 @@ build:
     - go env -w GOPROXY=https://goproxy.cn,direct
     - go mod tidy
     - CGO_ENABLED=0 go build -a -ldflags '-s'
-    - tar zcf i2-bill-erp.tar.gz etc hosts entrypoint.sh i2-bill-erp
+    - tar zcf i2-bill-erp.tar.gz etc i2-bill-erp
 publish:
   docker:
     registry: docker.qianqiusoft.com

+ 1 - 1
Dockerfile

@@ -4,4 +4,4 @@ ADD i2-bill-erp.tar.gz /app/
 VOLUME [ "/app/etc" ]
 EXPOSE 8888
 WORKDIR /app
-ENTRYPOINT ["sh", "/app/entrypoint.sh"]
+CMD ["/app/i2-bill-api", "-f", "/app/etc/transform.yaml"]

+ 0 - 2
entrypoint.sh

@@ -1,2 +0,0 @@
-cat /app/hosts >> /etc/hosts
-/app/i2-bill-erp -f /app/etc/transform.yaml

+ 1 - 1
etc/transform.yaml

@@ -1,5 +1,5 @@
 Name: transform.rpc
-ListenOn: i2-bill-erp:8080
+ListenOn: 0.0.0.0:8080
 Etcd:
   Hosts:
   - 47.103.219.158:30019

+ 0 - 3
hosts

@@ -1,3 +0,0 @@
-127.0.0.1 localhost
-# skip service check
-127.0.0.1 i2-bill-erp