-
Notifications
You must be signed in to change notification settings - Fork 86
Development
Patrick José Pereira edited this page Aug 18, 2021
·
21 revisions
- Install docker
- Each operating system has a different way, but it's recommended to install the latest version, check the docker installation instructions.
- Make sure you follow the instructions to manage docker as a non-root-user.
- Install docker buildx
- Enable docker experimental features
- You can check that with
docker version
- For more information check docker experimental README
- You can check that with
- Create a node to for armv7 with the correct configuration
docker buildx create --use --platform=linux/arm/v7 --buildkitd-flags '--allow-insecure-entitlement network.host --allow-insecure-entitlement security.insecure' --name arm-builder
- Pull latest changes to avoid building everything from scratch
docker pull --platform linux/arm/v7 bluerobotics/companion-core:master
- Build it
- Be aware that crosscompiling the core image will take some time in a good computer.
docker buildx build --platform linux/arm/v7 . -t yourdockerhubuser/companion-core:yournewtag --push --output type=registry --progress=plain
docker build . -t yourdockerhubuser/companion-core:yournewtag
- Navigate to http://localhost:8081 and the new tag should show in VersionChooser
You can access it via: sudo docker exec -it companion-core /usr/bin/tmux
- To develop the frontend first install yarn on your system.
- Go to the frontend folder with
cd core/frontend
- Install the necessary packages with
yarn install
- Now just do your changes and try them with
yarn serve
You can also lint your code anytime with yarn lint
Is know that qemu-arm-static version 5.2.0 has DNS problems, so git clone step may fail, for more information check this builx issue.
- Check qemu-arch-extra