How to start Percept

After setting up Docker on your machine and loading the Percept image into the Docker registry, you are ready to go and use Percept.

If you want to re-use projects from old Percept versions with a new Percept release, please have a look at the chapter How to migrate Percept projects.
The docker-compose file lists all services, exposed ports and mapped folders. It will start the server, frontend and the NTP-server. In Addition, the server will also start an envoy-proxy to allow the communication between the frontend and the server.
Percept will automatically start Docker containers if required, e.g. when you run multiple projects at the same time.
The NTP container is started to provide a possibility to time synchronize the devices via NTP. You may want to remove this part from the docker-compose file, if you have your own NTP server running. You will learn more on when to use time synchronization in later chapters.

Windows

  • To start Percept you have to open up the Windows Command Line Tool (You can do this by typing in cmd in the window start popup and hit enter).

Open Windows command line tool
Figure 1. How to open the Windows command line tool
  • Inside the command line tool you have to navigate to the folder you downloaded and extracted Percept using the appropriate command line tool commands (e.g. "cd download" for changing from your user home directory to the download directory, see screenshot).

Start Percept from command line tool
Figure 2. Start Percept from command line tool
  • Once you are inside the Percept directory type in and execute the following command:

    • docker-compose up

  • Windows might ask for permission to share local directories. To make sure Percept runs as intended click on "Share it".

  • Open a web-browser and follow How to access the Web Interface.

Ubuntu

  • To start Percept execute the following command inside the Percept directory

    • docker-compose up

Running an upgraded Percept version

After upgrading Percept to another version, errors might occur when you try to start Percept. This can be resolved by removing stopped containers. You can achive this by running:

docker-compose down

or in extreme cases you can use (please note that this will force prune all stopped containers)

docker container prune -f

in the Command Line Tool and start Percept again.

How to access the Web Interface

Percept start screen
Figure 3. Welcome to Percept Web Interface

How to stop Percept

Windows

Rancher Desktop

If you use Rancher Desktop, press ctrl + c this will stop the console output in the terminal window where you started Percept, but will not stop Percept (if you stop a running Project in Percept, Rancher Desktop will also stop the terminal output, then this step is not necessary).

Afterwards you can call docker-compose down to stop Percept.

Docker Desktop

If you use Docker Desktop, just press ctrl + c in the terminal window Percept is currently running.

Ubuntu

To stop Percept on Ubuntu simply press ctrl + c in the terminal window Percept is currently running.