Commit f1c04ef3 by amir

fix no redis connection and complete docker test

parent 4df8d985
FROM 172.16.1.132:5000/ipgallery/base-microservice-java
RUN mkdir -p /opt/mcx/config/LocationService
#RUN mkdir -p /opt/mcx/config
#RUN mkdir -p /logs/conf
COPY build/libs/LocationService-*.jar /usr/
......
......@@ -11,15 +11,12 @@ repositories {
maven { url "http://mandubian-mvn.googlecode.com/svn/trunk/mandubian-mvn/repository" }
maven { url "http://172.16.1.132:8081/repository/internal" }
}
configurations.all {
// Check for updates every build
resolutionStrategy.cacheChangingModulesFor 0, 'seconds'
}
dependencies {
// compile 'com.ipgallery:jinfra-utils:1.1.1'
// compile 'com.ipgallery:jinfra-rabbitmq:1.0.0'
// compile 'com.ipgallery:jinfra-grs:1.0.0'
compile group:'com.ipgallery', name:'jinfra-microservice', version:'1.3.0', changing: true
compile group:'com.ipgallery', name:'jinfra-microservice', version:'1.3.1'
compile 'com.ipgallery:jinfra-itc:1.0.0'
compile 'io.swagger:swagger-annotations:1.5.7'
......
#ds.IpAddress=172.16.1.97:8080
log4j.prop.file.path=/logs/conf/log4j.xml
#mcz.files.location=/opt/mcx/config
......
#!/bin/sh
docker run -e IPG_ENV_PARAMS=-Dds.IpAddress=172.16.1.97:8080#-Dredis.host=172.16.1.244 -e USE_DEBUG=yes -p 8000:8000 -p 32015:32015 172.16.1.132:5000/ipgallery/location-service
......@@ -31,13 +31,14 @@ public class LocationServiceHandler extends BaseHandler {
// public static final Pattern regExCsvParamSeperatorPattern = Pattern.compile(",");
public LocationServiceHandler(ILogger logger) {
this.rcc = new RedisCacheClient();
}
@Override
public void init() {
this.locationServiceManager = new LocationServiceManager(logger);
this.rcc = new RedisCacheClient(this.getConfigValueAsString("redis.host","localhost"));
}
@Override
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment