Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

1.1.1 With docker setup script

Note

If you want to use Docker to setup a development enviroment on your own PC (instead of a Raspberry Pi to use for pib), it is strongly recommeded to install Docker yourself as described in Step 1.1.2 to avoid unwanted changes to your system settings.

The setup script in the pib-backend repository contains a setup/pib-docker-setup.sh script which will automatically install the docker engine on Ubuntu, clones clone the necessary GitHub repositories and starts the containers, start the containers and apply the various system settings to the operating system that happen during the local installation (adjusting power mode, screen resolution on a Rasbperry Pi and more).

It can be executed using:

Code Block
# Using the stable version
$ bash setup-pib-docker-setup.sh

# Using a specific nightly build
$ bash setup-pib-docker-setup.sh -b=<pib_backend_branch> -f=<cerebra_branch>

...

Code Block
languagebash
TRYB_URL_PREFIX=<base_url_tryb>
PUBLIC_API_TOKEN=<tryb_public_api_token>

1.3 Common docker commands

If not done yet, the docker containers can now be started. Start all pib-backend containers using:

Code Block
languagebash
$ docker compose --profile camera --profile motors --profile voice_assistantall up -d

Start Cerebra using:

Code Block
languagebash
docker compose up -d

Note: The -d flag is optional.

...