Development of Petals Cockpit is now stopped, you can still download released versions or fork the repository.
Running demo (mock) https://linagora.gitlab.io/petals-cockpit
- Username: admin
- Password: admin
- Download the latest compiled petals-cockpit:
- Unpack it and go into the directory
- Run Petals Cockpit:
$ ./petals-cockpit.sh
from root folder
Build:
docker build -t petals-cockpit .
Run:
docker run -p 3600:8484 -it petals-cockpit
For the first run, remember to take a look at the terminal, where you should find an URL with a user setup token.
Otherwise, just go to http://localhost:3600.
In order to create an executable product, simply build the frontend, the backend and then the product that will embed both of them:
- 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 will be in cockpit/target/dist
.
Don't forget to first initialise the database (see below).
Execute Petals Cockpit:
$ java -jar cockpit/target/petals-cockpit-*-capsule.jar server cockpit/default.yml
The database can be initialised or migrated to the latest version with:
$ java -jar cockpit/target/petals-cockpit-*-capsule.jar db migrate cockpit/default.yml
An admin can be added with:
$ java -jar cockpit/target/petals-cockpit-*-capsule.jar add-user -u username -n Name -p password -a cockpit/default.yml
Or a normal user:
$ java -jar cockpit/target/petals-cockpit-*-capsule.jar add-user -u username -n Name -p password cockpit/default.yml
A workspace can also be generated with:
$ java -jar cockpit/target/petals-cockpit-*-capsule.jar add-user -u username -n Name -p password -w myWorkspace -a cockpit/default.yml
To execute backend commands, you can use:
$ cd backend/
$ mvn -s ../ci/settings.xml compile exec:java@cli -Dexec.args="db migrate default.yml"
The following command will simply execute the backend:
$ cd backend/
$ mvn -s ../ci/settings.xml compile dependency:properties exec:exec@server
To work on the frontend without mock (i.e., with the backend previously started):
$ cd frontend/
$ yarn run proxy
Documentation about ressources served by the backend are available here : https://linagora.gitlab.io/petals-cockpit/apidocs/
Petals Cockpit is made by Linagora under the AGPLv3 license, see LICENSE.md.