Usage:
git clone git@github.com:PhonePe/drove-orchestrator.git
git submodule init
git submodule update
cd compose
docker-compose up
This will start zookeeper,drove controller, executor and nginx/drove-gateway. The following ports are used:
- Zookeeper - 2181
- Executor - 3000
- Controller - 4000
- nignx - 7000
Drove credentials would be admin/admin
and guest/guest
for read-write and read-only permissions respectively.
Add the following lines to /etc/hosts
127.0.0.1 drove.local
127.0.0.1 testapp.local
You should be able to access the UI at http://drove.local:7000
Install the CLI for drove
pip install drove-cli
drove -e http://drove.local:7000 apps create sample/test_app.json
drove -e http://drove.local:7000 apps scale TEST_APP-1 1 -w
This would expose the app as testapp.local
. Endpoint would be: http://testapp.local:7000.
You can test the app by running the following commands:
curl http://testapp.local:7000/
curl http://testapp.local:7000/files/drove.txt
drove -e http://drove.local:7000 apps scale TEST_APP-1 0 -w
drove -e http://drove.local:7000 apps destroy TEST_APP-1
Please select below preferences in the Rancher desktop
Hardware | Volumes | Emulation |
---|---|---|
Memory (GB): 4GB | virtiofs | Virtual Machine Type: VZ |
# CPUs : 4 | VZ Option: Enable Rosetta support |
Add below line to /etc/hosts
127.0.0.1 lima-rancher-desktop