Please follow the steps below to setup your environment
- Please Raise a IDM request via the Bosch IDM Portal to access the repo – for role -
BDC_Artifactory_01_perm400_user
- Once the request is done, go to https://artifactory.boschdevcloud.com/ and click the Button "SAML SSO" on the bottom
- Go to the artifacts (menu on the left side)
- Filter for
sdv-bgsw-conan-virtual
- Click on the Button "Set me up" in the top right corner
- In the configure-tab click on "Generate Token & Create Instructions"
- Copy the token
- In the repository's root folder create a file called
.credentials
with following content:CONAN_REMOTE_USER=<nt-user-id> CONAN_REMOTE_TOKEN=<your-token>
- Reopen the folder in a container
After performing the above steps, the basic setup is now done.
If you want to, you can customize your setup to fully fit your needs.
The project configuration file .velocitas.json
contains soft references to repositories on Github.com via the packages
object:
{
"packages": {
"devenv-runtimes": "v4.0.5",
"devenv-github-workflows": "v6.0.4",
"devenv-github-templates": "v1.0.5",
"devenv-devcontainer-setup": "v2.4.6"
},
<...>
}
Unless the key of the package contains a fully qualified URL, the key will resolve to https://github.com/eclipse-velocitas/<key>.git
.
In case you have set-up your own mirrors of the packages, you can reference those mirrors by providing fully qualified URLs:
e.g.
{
"packages": {
"https://github.com/SoftwareDefinedVehicle/devenv-runtimes.git": "v4.0.5",
"https://github.com/SoftwareDefinedVehicle/devenv-github-workflows.git": "v6.0.4",
"https://github.com/SoftwareDefinedVehicle/devenv-github-templates.git": "v1.0.5",
"https://github.com/SoftwareDefinedVehicle/devenv-devcontainer-setup.git": "v2.4.6"
},
<...>
}
There are also several project variables which can be set in the .velocitas.json
. Here are some examples:
Variable | Purpose | Example |
---|---|---|
gitLocation |
Base Git location to be used instead of https://github.com/eclipse-velocitas for ALL git references which are not configurable elsewhere. |
https://github.com/SoftwareDefinedVehicle |
mqttBrokerImage |
URL of a custom MQTT Broker Docker Container | registry.hub.docker.com/library/eclipse-mosquitto:2.0.14 |
vehicleDatabrokerImage |
URL of a custom Databroker Docker Container | ghcr.io/eclipse-kuksa/kuksa-databroker:0.4.4 |
mockServiceImage |
URL of a custom Mockservice Docker Container | ghcr.io/eclipse-kuksa/kuksa-mock-provider/mock-provider:0.4.0 , |
sdkGitRepo |
Git-URL of a custom Vehicle SDK which shall be used instead of https://github.com/eclipse-velocitas/vehicle-app-cpp-sdk.git |
https://github.com/SoftwareDefinedVehicle/vehicle-app-cpp-sdk.git |
An exhaustive list of all possible project variables can be obtained by executing velocitas package
in a terminal or by looking at the manifest files of the used Velocitas packages.
This project contains a convenience script which can be executed to configure needed variables.
-
Reconfigure template URLs
- Open the
reconfigure_template_urls.sh
script. - Adapt all the variables in the marked area (
GIT_FORK_LOCATION
,PIP_MIRROR
,BASE_IMAGE_URL
,VSS_PATH
,MQTT_IMAGE
,DATABROKER_IMAGE
,MOCKSERVICE_IMAGE
). - Execute the script from a Linux host (tested under Ubuntu). This host may be a VM or DevContainer.
./reconfigure_template_urls.sh
- Open the
A customized mock.py
is already part of this repository, feel free to adapt it to the needs of your app.
It uses a Python based DSL to describe the mocking behavior. Refer to the KUKSA mock provider documentation for details.