Explorar el Código

修改到docker外运行环境

tags/v1.0.0^2
林万龙 hace 3 años
padre
commit
8ae5e6ede6
Se han modificado 3 ficheros con 7 adiciones y 35 borrados
  1. +1
    -1
      setup_test.sh
  2. +1
    -1
      src/main/java/com/telpo/dipperposition/entity/mongo/ProvinceInfoEntity.java
  3. +5
    -33
      src/main/resources/csv/provinceLonAlt.csv

+ 1
- 1
setup_test.sh Ver fichero

@@ -22,6 +22,6 @@ docker rmi -f $(docker images | grep none | awk '{print $3}')
# 查看镜像列表
docker images
# 启动容器
docker run -v /home/data/dipperposition/log:/var/log/dipperposition -d -e active=test --network host --restart=always -p 9011:9011 --name dipperposition_service 139.224.254.18:5000/dipperposition_service:$image_version
docker run -v /home/data/dipperposition/log:/var/log/dipperposition -d -e active=test --network host --restart=always -p 9012:9012 --name dipperposition_service 139.224.254.18:5000/dipperposition_service:$image_version
# 查看日志
# docker logs dipperposition_service

+ 1
- 1
src/main/java/com/telpo/dipperposition/entity/mongo/ProvinceInfoEntity.java Ver fichero

@@ -20,7 +20,7 @@ public class ProvinceInfoEntity extends BaseMongoDbEntity {
private String province;
/** lon */
private String lon;
/** lon */
/** alt */
private String alt;
/** centerAddress */
private String centerAddress;


+ 5
- 33
src/main/resources/csv/provinceLonAlt.csv Ver fichero

@@ -1,35 +1,7 @@
城市,经度,纬度,省份
沈阳市,123.429092,41.796768,辽宁省
长春市,125.324501,43.886841,吉林省
哈尔滨市,126.642464,45.756966,黑龙江省
北京市,116.405289,39.904987,北京市
天津市,117.190186,39.125595,天津市
呼和浩特市,111.75199,40.84149,内蒙古自治区
银川市,106.23248,38.48644,宁夏回族自治区
太原市,112.549248,37.857014,山西省
石家庄市,114.502464,38.045475,河北省
济南市,117.000923,36.675808,山东省
郑州市,113.665413,34.757977,河南省
西安市,108.948021,34.263161,陕西省
武汉市,114.298569,30.584354,湖北省
南京市,118.76741,32.041546,江苏省
合肥市,117.283043,31.861191,安徽省
上海市,121.472641,31.231707,上海市
长沙市,112.982277,28.19409,湖南省
南昌市,115.892151,28.676493,江西省
杭州市,120.15358,30.287458,浙江省
福州市,119.306236,26.075302,福建省
广州市,113.28064,23.125177,广东省
台北市,121.520076,25.030724,台湾省
海口市,110.19989,20.04422,海南省
南宁市,108.320007,22.82402,广西壮族自治区
重庆市,106.504959,29.533155,重庆市
昆明市,102.71225,25.040609,云南省
贵阳市,106.713478,26.578342,贵州省
成都市,104.065735,30.659462,四川省
兰州市,103.83417,36.06138,甘肃省
西宁市,101.77782,36.61729,青海省
拉萨市,91.1145,29.64415,西藏自治区
乌鲁木齐市,87.61688,43.82663,新疆维吾尔自治区
香港,114.16546,22.27534,香港特别行政区
澳门,113.54913,22.19875,澳门特别行政区

"centerAddress" : "太原市",
"lon" : "112.549248",
"alt" : "37.857014",
"province" : "山西省"

Cargando…
Cancelar
Guardar