- Install docker-compose
- Run
docker-compose up db
- Install dependencies:
yarn install
- Run database migration once to initialize:
yarn --cwd=packages/deployment-server run prisma migrate deploy
- Generate DB Typings:
yarn --cwd=packages/deployment-server run prisma generate
- Seed DB:
yarn --cwd=packages/deployment-server run prisma db seed
- Start the server:
yarn --cwd=packages/deployment-server run dev
- Set env variables
GOOGLE_CLOUD_PROJECT
GOOGLE_CLOUD_BUCKET
-
Add a
.gcs_key.json
inpackages/deployment-server
-
Run the deployment server
- Set deployment-server URI in .docker/device-connector/env
- Run the device-connector:
docker-compose up devcon
- Build the docker-image beforehand if necessary
docker-compose build
- Build the docker-image beforehand if necessary
Note: Due to docker not supporting privileged mode on Windows, this does only work on unix systems.
- Download the latest supported arduino-cli version (currently v0.20.0) from arduino-cli releases
- Start the arduino-cli daemon:
arduino-cli daemon --port 50051 --daemonize --verbose
- Install dependencies:
yarn install
- Set deployment-server URI in packages/device-connector/.env
- Start the device connector:
yarn --cwd=packages/device-connector run start
STM32 Board-Core
arduino-cli config add board_manager.additional_urls https://github.com/stm32duino/BoardManagerFiles/raw/main/package_stmicroelectronics_index.json
arduino-cli core update-index
arduino-cli core install STMicroelectronics:stm32
Arduino:sam Board-Core
arduino-cli core update-index
arduino-cli core install arduino:sam
To configure the deployment server, set:
DEPLOYMENT_SERVER_HOST=localhost:3001 DEPLOYMENT_SERVER_SECURE=false