Installing Petals Cockpit
Requirements
Petals Cockpit needs Java SE Runtime Environment 8 to run the backend. The H2 Database used by the backend is automatically handled, there is no other usable DB for now, but it is foreseen.
The supported browsers are Chrome and chromium variants. While not officially supported, the frontend is highly compatible with Firefox.
Installing from .zip file
- Get latest compiled version from Petals Cockpit project page
- Unpack it and go into the directory
- Run Petals Cockpit script and follow instructions :
$ ./petals-cockpit.sh
Building and running from docker
A pre-built Petals Cockpit docker image is hosted on its docker hub public repository.
Docker must be properly installed on your system for these commands to function.
- Download the image:
$ docker pull petals/petals-cockpit:latest
- Start in detached mode
$ docker run -d -p 8080:8080 --name petals-cockpit petals/petals-cockpit:latest
For exhaustive information about building and running a docker image of Petals Cockpit, see the Github docker-petals-cockpit project page.
Building and running from sources
- Build the frontend
$ cd frontend && yarn run build:product && cd ..
- Build Petals Cockpit (it will also build the backend)
$ mvn -s ci/settings.xml clean verify antrun:run@build-product-dist
- The final distribution directory (as found in the .zip version) will be in cockpit/target/dist. From there, run the script:
$ ./petals-cockpit.sh
For exhaustive information about building and running Petals Cockpit from its sources, see the Gitlab Petals Cockpit project page.