Skip to content

Commit 7ba04af

Browse files
Vincenzo CartelliVincenzo Cartelli
authored andcommitted
final-pre-evaluation
1 parent 30abdd3 commit 7ba04af

File tree

69 files changed

+1576
-1548
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

69 files changed

+1576
-1548
lines changed

README.adoc

Lines changed: 6 additions & 0 deletions

db-dump.sh

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,15 @@
11
#!/usr/bin/env bash
2-
mongodump --db cpd --gzip
2+
PILOT=$1
3+
if ! [[ "$PILOT" =~ ^(trento|galicia|sheffield|all)$ ]]
4+
then
5+
echo "please provide a pilot ID (trento|galicia|sheffield)"
6+
exit 1
7+
fi
8+
mongodump --out "dump/$PILOT" --db cpd --gzip
9+
SRC=$2
10+
if [ $PILOT == "all" ] && [ $SRC == "src" ]
11+
then
12+
mongoexport --db cpd --collection schema --jsonArray --pretty --out src/main/deploy-bundle/data/db/schema.json
13+
mongoexport --db cpd --collection model --jsonArray --pretty --out src/main/deploy-bundle/data/db/model.json
14+
mongoexport --db cpd --collection diagram --jsonArray --pretty --out src/main/deploy-bundle/data/db/diagram.json
15+
fi

db-restore.sh

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,8 @@
11
#!/usr/bin/env bash
2-
mongorestore --nsInclude 'cpd.*' --drop --gzip
2+
PILOT=$1
3+
if ! [[ "$PILOT" =~ ^(trento|galicia|sheffield|all)$ ]]
4+
then
5+
echo "please provide a pilot ID (trento|galicia|sheffield)"
6+
exit 1
7+
fi
8+
mongorestore --dir "dump/$PILOT" --nsInclude 'cpd.*' --drop --gzip

dump/cpd/diagram.bson.gz

-1.16 KB
Binary file not shown.

dump/cpd/diagram.elements.bson.gz

-1.22 KB
Binary file not shown.
-165 Bytes
Binary file not shown.

dump/cpd/diagrams.bson.gz

-1.39 KB
Binary file not shown.

dump/cpd/diagrams.metadata.json.gz

-100 Bytes
Binary file not shown.

dump/cpd/model.bson.gz

-8.44 KB
Binary file not shown.

dump/cpd/schema.bson.gz

-2.9 KB
Binary file not shown.

0 commit comments

Comments
 (0)