Skip to content

Commit

Permalink
feat: add more steps
Browse files Browse the repository at this point in the history
  • Loading branch information
timrbula committed Jan 11, 2024
1 parent bf7dbc4 commit cab4484
Showing 1 changed file with 19 additions and 5 deletions.
24 changes: 19 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,19 @@ This project was bootstrapped with [Vite](https://github.com/vitejs/vite).
9. `mongorestore --uri mongodb://boomerang:gxRIMQonNu@localhost:27018/boomerang --drop --nsInclude 'boomerang.*' db-backups/flowabl-dev-dump-20230111/boomerang`
10. `kubectl create secret docker-registry boomerang.registrykey -n workflows --docker-server='https://index.docker.io/v1/' --docker-username='tlawrie' --docker-password='dckr_pat_jqoiQexTUY5mtnuSP5hVjnghBNc' --docker-email='[email protected]'`

### Set up Database
### Connect to Database

Connect to database using client with credentials

username: boomerang
database: boomerang
password:

1. `oc get secrets -n workflows mongodb -o yaml`
2. copy data:mongodb-password value
3. `echo {password} | base64 -d | pbcopy`

### Setup Database

1. Create `flowabl_users` collection
2. Create user
Expand Down Expand Up @@ -57,15 +69,17 @@ POST `http://<workflow-service>/api/v2/token`

```json
{
"type": "user",
"name": "test-token-user",
"principal": "<user-id>"
"type": "user",
"name": "test-token-user",
"principal": "<user-id>"
}
```

### Port Forwarding

1. `kubectl port-forward svc/flowabl-services-workflow 8081:80 -n workflows`
1. Port forward to service to avoid CORS errors
`kubectl port-forward svc/flowabl-services-workflow 8081:80 -n workflows`

2. Export token

export AUTH_JWT=<user_token>
Expand Down

0 comments on commit cab4484

Please sign in to comment.