Master Repository
This sample will guide you how to run an Eclipse Dirigible instance with a pre-defined content. This content is bundled in a Zip file with a specific Repository structure. You can easily get one by exporting the Repository from an existing instance via the Snapshot view (in the Repository perspective).
A sample content file with a single project with a single service you can find at: repository-snapshot-20180820034353.zip.
Steps
- Copy the above zip file in a directory e.g. /home/dirigible/master_sample
- Download (or build and copy) to the same directory the standalone executable dirigible-desktop-all-XXX.jar
-
Set the environment variables:
export DIRIGIBLE_MASTER_REPOSITORY_PROVIDER=zip
export DIRIGIBLE_MASTER_REPOSITORY_ZIP_LOCATION=/home/dirigible/master_sample/repository-snapshot-20180820034353.zip
-
Run with:
java -jar dirigible-desktop-all-XXX.jar
-
Enter with the nickname: dirigible
- You should have already available project "my_project" in your workspace, with a service "hello.js"
-
The service is even published already, so you can directly execute it by accessing the location:
http://localhost:8080/services/v4/js/my_project/hello.js
Note: This is the simplest way (from the life-cycle management PoV) to run an Eclipse Dirigible application.
For the master repository you can use a Zip file (as it is shown above), File System based Repository located by a Path to its root folder or a Jar file built into or accessible by the default class loader.