IDB Versioning#
After a new IDB Version has been released it should be added to stixcore. All available IDB versions to stixcore are managed in the file stixcore/data/idb/idbVersionHistory.json
Follow the instructions to publish a new IDB 2.26.36 version
Download the released new idb version as zip file from:
https://github.com/i4Ds/STIX-IDB/tags(i4Ds/STIX-IDB)unzip locally and create following folder structure:
> v2.26.36
> STIX-IDB-2.26.36
idb
README.md
...
remove the
*.mdbfile (possible licensing conflicts)zip the folder structure into
v2.26.36.raw.zipupload
v2.26.36.raw.ziptohttps://pub099.cs.technik.fhnw.ch/data/idb/(/var/www/data/idb/v2.26.36.raw.zip)compile the raw IDB into a sqlite file (this will also inject some raw 2 engineering parameters)
from stixcore.idb.manager import IDBManager
IDBManager.instance.compile_version("2.26.36")
zip the
stixcore/data/idb/v2.26.36folder intov2.26.36.zip>>zip -r v2.26.37.zip v2.26.37upload
v2.26.36.ziptohttps://pub099.cs.technik.fhnw.ch/data/idb/(/var/www/data/idb/v2.26.36.zip)- add a new entry to
stixcore/data/idb/idbVersionHistory.json
- add a new entry to
[...
{
"version":"2.26.36",
"aswVersion":???,
"validityPeriodUTC":["2020-05-18T09:12:54.151", "2021-06-23T14:38:41.609"],
"validityPeriodOBT":[{"coarse":643108360, "fine":0}, {"coarse":677774250, "fine":0}]
},
...]
push the latest updates of the
idbVersionHistory.jsonafter pull stixcore and run the published version
2.26.36will be automatically downloaded and installed.