Skip to content

Commit a2064a2

Browse files
authored
Merge pull request #1514 from GRIDAPPSD/releases/2021.03.0
Release of version 2021.03.0
2 parents 8c6691f + 4fce7d9 commit a2064a2

21 files changed

+102
-67
lines changed

.travis/build-docker.sh

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,19 @@ GITHASH=`git log -1 --pretty=format:"%h"`
1111
BUILD_VERSION="${TIMESTAMP}_${GITHASH}${TRAVIS_BRANCH:+:$TRAVIS_BRANCH}"
1212
echo "BUILD_VERSION $BUILD_VERSION"
1313

14+
if [ -n "$DOCKER_USERNAME" -a -n "$DOCKER_PASSWORD" ]; then
15+
16+
echo " "
17+
echo "Connecting to docker"
18+
19+
echo $DOCKER_PASSWORD | docker login -u $DOCKER_USERNAME --password-stdin
20+
status=$?
21+
if [ $status -ne 0 ]; then
22+
echo "Error: status $status"
23+
exit 1
24+
fi
25+
fi
26+
1427
# Pass gridappsd tag to docker-compose
1528
docker build --build-arg TIMESTAMP="${BUILD_VERSION}" -t ${IMAGE}:${TIMESTAMP}_${GITHASH} .
1629
status=$?

Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ ARG TIMESTAMP
77
RUN cd ${TEMP_DIR} \
88
&& git clone https://github.com/GRIDAPPSD/gridappsd-python -b develop \
99
&& cd gridappsd-python \
10+
&& pip3 install -r requirements.txt \
1011
&& pip3 install . \
1112
&& rm -rf /root/.cache/pip/wheels
1213

cnf/ext/repositories.bnd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
-plugin: \
22
aQute.bnd.deployer.repository.FixedIndexedRepo;name=GOSS Core;locations=https://raw.githubusercontent.com/GridOptics/GOSS/master/cnf/releaserepo/index.xml,\
33
aQute.bnd.deployer.repository.FixedIndexedRepo; name=GOSS Dependencies; locations=https://github.com/GridOptics/GOSS-Repository/raw/master/dependencies/index.xml.gz,\
4-
aQute.bnd.deployer.repository.FixedIndexedRepo;name=CIM to GLM;locations=https://raw.githubusercontent.com/GRIDAPPSD/Powergrid-Models/develop/cnf/release/index.xml,\
4+
aQute.bnd.deployer.repository.FixedIndexedRepo;name=CIMHub;locations=https://raw.githubusercontent.com/GRIDAPPSD/CIMHub/master/cnf/release/index.xml,\
55
aQute.bnd.deployer.repository.LocalIndexedRepo;name=Local;local=${workspace}/cnf/Local;pretty=true,\
66
aQute.bnd.deployer.repository.FixedIndexedRepo;name=BND Hub;locations=https://raw.githubusercontent.com/bndtools/bundle-hub/master/index.xml.gz,\
77
aQute.lib.deployer.FileRepo;name=Build;location=${workspace}/cnf/buildrepo;latest=false

gov.pnnl.goss.gridappsd/bnd.bnd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
osgi.enroute.base.api,\
3030
org.mockito.mockito-all,\
3131
httpcore,\
32-
blazegraph.cim2glm;version=19.1.1,\
32+
cimhub.lib;version=0.2.4,\
3333
httpclient,\
3434
com.bigdata.rdf,\
3535
proven-client;version=0.3,\

gov.pnnl.goss.gridappsd/conf/pnnl.goss.gridappsd.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ fncs.bridge.path = ./scripts/goss_fncs_bridge.py
55
applications.path = /gridappsd/applications
66
services.path = /gridappsd/services
77
# Requires no /
8-
blazegraph.ns.path = http://localhost:8889/bigdata/sparql
8+
blazegraph.ns.path = http://localhost:8889/bigdata/namespace/kb/sparql
99

1010
# Uses docker composed blazegraph host here. Note this is not the
1111
# external address, but from inside one of the containers on the

gov.pnnl.goss.gridappsd/run.bnd.bndrun

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@
7676
httpcore,\
7777
httpclient,\
7878
xml-apis,\
79-
blazegraph.cim2glm;version=19.1.1,\
79+
cimhub.lib;version=0.2.4,\
8080
org.eclipse.jetty.aggregate.jetty-all-server;version=7.6.9,\
8181
com.bigdata.rdf,\
8282
proven-message;version=0.4,\

gov.pnnl.goss.gridappsd/src/gov/pnnl/goss/gridappsd/configuration/CIMDictionaryConfigurationHandler.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,9 @@
5252

5353
import com.google.gson.Gson;
5454

55-
import gov.pnnl.goss.cim2glm.CIMImporter;
56-
import gov.pnnl.goss.cim2glm.dto.ModelState;
57-
import gov.pnnl.goss.cim2glm.queryhandler.QueryHandler;
55+
import gov.pnnl.gridappsd.cimhub.CIMImporter;
56+
import gov.pnnl.gridappsd.cimhub.dto.ModelState;
57+
import gov.pnnl.gridappsd.cimhub.queryhandler.QueryHandler;
5858
import gov.pnnl.goss.gridappsd.api.ConfigurationHandler;
5959
import gov.pnnl.goss.gridappsd.api.ConfigurationManager;
6060
import gov.pnnl.goss.gridappsd.api.DataManager;

gov.pnnl.goss.gridappsd/src/gov/pnnl/goss/gridappsd/configuration/CIMFeederIndexConfigurationHandler.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@
5050
import org.slf4j.Logger;
5151
import org.slf4j.LoggerFactory;
5252

53-
import gov.pnnl.goss.cim2glm.CIMImporter;
54-
import gov.pnnl.goss.cim2glm.queryhandler.QueryHandler;
53+
import gov.pnnl.gridappsd.cimhub.CIMImporter;
54+
import gov.pnnl.gridappsd.cimhub.queryhandler.QueryHandler;
5555
import gov.pnnl.goss.gridappsd.api.ConfigurationHandler;
5656
import gov.pnnl.goss.gridappsd.api.ConfigurationManager;
5757
import gov.pnnl.goss.gridappsd.api.DataManager;

gov.pnnl.goss.gridappsd/src/gov/pnnl/goss/gridappsd/configuration/CIMSymbolsConfigurationHandler.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@
5050
import org.slf4j.Logger;
5151
import org.slf4j.LoggerFactory;
5252

53-
import gov.pnnl.goss.cim2glm.CIMImporter;
54-
import gov.pnnl.goss.cim2glm.queryhandler.QueryHandler;
53+
import gov.pnnl.gridappsd.cimhub.CIMImporter;
54+
import gov.pnnl.gridappsd.cimhub.queryhandler.QueryHandler;
5555
import gov.pnnl.goss.gridappsd.api.ConfigurationHandler;
5656
import gov.pnnl.goss.gridappsd.api.ConfigurationManager;
5757
import gov.pnnl.goss.gridappsd.api.DataManager;

gov.pnnl.goss.gridappsd/src/gov/pnnl/goss/gridappsd/configuration/DSSAllConfigurationHandler.java

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,10 @@
3939
******************************************************************************/
4040
package gov.pnnl.goss.gridappsd.configuration;
4141

42-
import gov.pnnl.goss.cim2glm.CIMImporter;
43-
import gov.pnnl.goss.cim2glm.dto.ModelState;
44-
import gov.pnnl.goss.cim2glm.queryhandler.QueryHandler;
42+
import gov.pnnl.gridappsd.cimhub.CIMImporter;
43+
import gov.pnnl.gridappsd.cimhub.CIMQuerySetter;
44+
import gov.pnnl.gridappsd.cimhub.dto.ModelState;
45+
import gov.pnnl.gridappsd.cimhub.queryhandler.QueryHandler;
4546
import gov.pnnl.goss.gridappsd.api.ConfigurationHandler;
4647
import gov.pnnl.goss.gridappsd.api.ConfigurationManager;
4748
import gov.pnnl.goss.gridappsd.api.DataManager;
@@ -227,9 +228,10 @@ public void generateConfig(Properties parameters, PrintWriter out, String proces
227228

228229
//TODO add climate
229230

230-
//CIM2GLM utility uses
231+
//cimhub utility uses
231232
CIMImporter cimImporter = new CIMImporter();
232-
cimImporter.start(queryHandler, CONFIGTARGET, fRoot, scheduleName, loadScale, bWantSched, bWantZip, bWantRandomFractions, useHouses, zFraction, iFraction, pFraction, bHaveEventGen, modelState, false);
233+
CIMQuerySetter qs = new CIMQuerySetter();
234+
cimImporter.start(queryHandler, qs, CONFIGTARGET, fRoot, scheduleName, loadScale, bWantSched, bWantZip, bWantRandomFractions, useHouses, zFraction, iFraction, pFraction, bHaveEventGen, modelState, false);
233235

234236
logManager.info(ProcessStatus.RUNNING, processId, "Finished generating all DSS configuration files.");
235237

0 commit comments

Comments
 (0)