Skip to content

Commit 84eb619

Browse files
author
dennismeister93
authored
Adapt examples (#65)
* Fix versions and scripts --------- Signed-off-by: Dennis Meister <[email protected]>
1 parent 9393bf3 commit 84eb619

File tree

17 files changed

+47
-47
lines changed

17 files changed

+47
-47
lines changed

.github/workflows/release.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
- name: Initialize python
3131
uses: actions/setup-python@v4
3232
with:
33-
python-version: 3.9
33+
python-version: 3.10
3434

3535
- name: Install Dependencies
3636
run: |

.vscode/scripts/run-vehicledatabroker-cli.sh

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -14,35 +14,36 @@
1414
# SPDX-License-Identifier: Apache-2.0
1515

1616
echo "#######################################################"
17-
echo "### Running VehicleDataBroke CLI ###"
17+
echo "### Running VehicleDataBroker CLI ###"
1818
echo "#######################################################"
1919

2020
ROOT_DIRECTORY=$( realpath "$( cd -- "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P )/../.." )
21+
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
2122
source $ROOT_DIRECTORY/.vscode/scripts/exec-check.sh "$@" $(basename $BASH_SOURCE .sh)
2223
DATABROKER_VERSION=$(cat $ROOT_DIRECTORY/prerequisite_settings.json | jq .databroker.version | tr -d '"')
2324

2425
sudo chown $(whoami) $HOME
25-
DATABROKER_ASSET_FOLDER="$ROOT_DIRECTORY/.vscode/scripts/assets/databroker/$DATABROKER_VERSION"
26-
DOWNLOAD_URL=https://github.com/boschglobal/kuksa.val/releases/download
27-
26+
# Needed because of how the databroker release is tagged
27+
DATABROKER_ASSET_FOLDER="$SCRIPT_DIR/assets/databroker/$DATABROKER_VERSION"
2828
#Detect host environment (distinguish for Mac M1 processor)
2929
if [[ `uname -m` == 'aarch64' || `uname -m` == 'arm64' ]]; then
3030
echo "Detected ARM architecture"
3131
PROCESSOR="aarch64"
32-
DATABROKER_BINARY_NAME="databroker_aarch64.tar.gz"
33-
DATABROKER_EXEC_PATH="$DATABROKER_ASSET_FOLDER/$PROCESSOR/target/aarch64-unknown-linux-gnu/release"
32+
DATABROKER_BINARY_NAME="databroker-cli-arm64.tar.gz"
3433
else
3534
echo "Detected x86_64 architecture"
3635
PROCESSOR="x86_64"
37-
DATABROKER_BINARY_NAME='databroker_x86_64.tar.gz'
38-
DATABROKER_EXEC_PATH="$DATABROKER_ASSET_FOLDER/$PROCESSOR/target/release"
36+
DATABROKER_BINARY_NAME='databroker-cli-amd64.tar.gz'
3937
fi
4038

41-
if [[ ! -f "$DATABROKER_EXEC_PATH/databroker" ]]
39+
DATABROKER_EXEC_PATH="$DATABROKER_ASSET_FOLDER/$PROCESSOR/databroker-cli"
40+
41+
if [[ ! -f "$DATABROKER_EXEC_PATH/databroker-cli" ]]
4242
then
43-
echo "Downloading databroker:$DATABROKER_VERSION"
44-
curl -o $DATABROKER_ASSET_FOLDER/$PROCESSOR/$DATABROKER_BINARY_NAME --create-dirs -L -H "Accept: application/octet-stream" "$DOWNLOAD_URL/$DATABROKER_VERSION/$DATABROKER_BINARY_NAME"
45-
tar -xf $DATABROKER_ASSET_FOLDER/$PROCESSOR/$DATABROKER_BINARY_NAME -C $DATABROKER_ASSET_FOLDER/$PROCESSOR
43+
DOWNLOAD_URL=https://github.com/eclipse/kuksa.val/releases/download
44+
echo "Downloading databroker:$DATABROKER_VERSION"
45+
curl -o $DATABROKER_ASSET_FOLDER/$PROCESSOR/$DATABROKER_BINARY_NAME --create-dirs -L -H "Accept: application/octet-stream" "$DOWNLOAD_URL/$DATABROKER_VERSION/$DATABROKER_BINARY_NAME"
46+
tar -xf $DATABROKER_ASSET_FOLDER/$PROCESSOR/$DATABROKER_BINARY_NAME -C $DATABROKER_ASSET_FOLDER/$PROCESSOR
4647
fi
4748

4849
$DATABROKER_EXEC_PATH/databroker-cli

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ This includes the following packages:
2424
2525
## Prerequisites
2626

27-
- Python 3.9 or later is required to use this package.
27+
- Python 3.10 or later is required to use this package.
2828

2929
## Install the package
3030

examples/array-datatype/AppManifest.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,14 @@
2525
}
2626
],
2727
"python": {
28-
"version": "3.9"
28+
"version": "3.10"
2929
},
3030
"dapr": {
3131
"cli": {
32-
"version": "1.9.1"
32+
"version": "1.10.0"
3333
},
3434
"runtime": {
35-
"version": "1.8.1"
35+
"version": "1.10.2"
3636
}
3737
}
3838
}

examples/atomic-set/AppManifest.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,14 @@
3232
}
3333
],
3434
"python": {
35-
"version": "3.9"
35+
"version": "3.10"
3636
},
3737
"dapr": {
3838
"cli": {
39-
"version": "1.9.1"
39+
"version": "1.10.0"
4040
},
4141
"runtime": {
42-
"version": "1.8.1"
42+
"version": "1.10.2"
4343
}
4444
}
4545
}

examples/datapoint-set/AppManifest.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,14 +33,14 @@
3333
}
3434
],
3535
"python": {
36-
"version": "3.9"
36+
"version": "3.10"
3737
},
3838
"dapr": {
3939
"cli": {
40-
"version": "1.9.1"
40+
"version": "1.10.0"
4141
},
4242
"runtime": {
43-
"version": "1.8.1"
43+
"version": "1.10.2"
4444
}
4545
}
4646
}

examples/dog-mode/AppManifest.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,14 @@
3232
}
3333
],
3434
"python": {
35-
"version": "3.9"
35+
"version": "3.10"
3636
},
3737
"dapr": {
3838
"cli": {
39-
"version": "1.9.1"
39+
"version": "1.10.0"
4040
},
4141
"runtime": {
42-
"version": "1.8.1"
42+
"version": "1.10.2"
4343
}
4444
}
4545
}

examples/dynamic-rule/AppManifest.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,14 @@
2525
}
2626
],
2727
"python": {
28-
"version": "3.9"
28+
"version": "3.10"
2929
},
3030
"dapr": {
3131
"cli": {
32-
"version": "1.9.1"
32+
"version": "1.10.0"
3333
},
3434
"runtime": {
35-
"version": "1.8.1"
35+
"version": "1.10.2"
3636
}
3737
}
3838
}

examples/seat-adjuster/AppManifest.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,14 +33,14 @@
3333
}
3434
],
3535
"python": {
36-
"version": "3.9"
36+
"version": "3.10"
3737
},
3838
"dapr": {
3939
"cli": {
40-
"version": "1.9.1"
40+
"version": "1.10.0"
4141
},
4242
"runtime": {
43-
"version": "1.8.1"
43+
"version": "1.10.2"
4444
}
4545
}
4646
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
git+https://github.com/eclipse-velocitas/[email protected].0
1+
git+https://github.com/eclipse-velocitas/[email protected].2
22
git+https://github.com/eclipse-velocitas/[email protected]

0 commit comments

Comments
 (0)