Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified .DS_Store
Binary file not shown.
7 changes: 7 additions & 0 deletions .env-local
Original file line number Diff line number Diff line change
Expand Up @@ -58,5 +58,12 @@ BUGZILLA_ADMIN_EMAIL=---
EXPECTED_RESPONSE_TIME=PT1H
EXPECTED_RESOLUTION_TIME=P1D

TRUDESK_EMAIL=example@gmail.com
TRUDESK_USERNAME=admin
TRUDESK_PASSWORD=password
SELECTED_ISSUE_CRM=TRUDESK
TRUDESK_BASE_URI=http://trudesk-dev-service:8118

ENV_TYPE=testing
ENV=development

4 changes: 4 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,7 @@
path = biap-bugzilla-service
url = https://github.com/ONDC-Official/biap-bugzilla-service
branch = main
[submodule "biap-trudesk-service"]
path = biap-trudesk-service
url = https://github.com/ONDC-Official/buyer-trudesk-service
branch = master
54 changes: 52 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,56 @@ copy the url to the clipboard and paste it into ``` BAP_URL ``` and ```PROTOCOL_
```BAP_ID=``` This will be the ```HOSTED_DOMAIN ```that you are sharing in the payload as the value of subscriber_id.



## Adding CRM Bugzilla or Trudesk




### For Bugzilla

For Bugzilla you are required to add new service in docker-compose and env as mentioned below

```

BUGZILLA_API_KEY=---
BUGZILLA_BASE_URI=http://bugzilla-dev-service:80/bugzilla
VOLUME_IMAGES_BASE_URL=http://localhost:6969/uploads/
BUGZILLA_SERVICE_URI=http://bugzilla-node-backend:8001
BUGZILLA_ADMIN_EMAIL=---
SELECTED_ISSUE_CRM=BUGZILLA

```



```
bugzilla-dev-service:
build:
context: ./biap-bugzilla-service/bugzilla-main
dockerfile: Dockerfile
environment:
BUGZILLA_WWW: /var/www/html/bugzilla/
BUGZILLA_ADMIN_EMAIL: ${BUGZILLA_ADMIN_EMAIL}

container_name: bugzilla-dev-service
image: shameerkc/bugzilla-dev-sqlite
ports:
- "90:80"
- "5989:5900"
```

### For Trudesk

```
TRUDESK_EMAIL=example@gmail.com
TRUDESK_USERNAME=admin
TRUDESK_PASSWORD=password
SELECTED_ISSUE_CRM=TRUDESK
TRUDESK_BASE_URI=http://trudesk-dev-service:8118

```

## Payload Submission To ONDC Staging Registry

Visit this [Google Form](https://docs.google.com/forms/d/e/1FAIpQLSdz5-LLGX4m_pOQNFstoZQd5zhb68md_9zoX-dC8N8j2DABbA/viewform) and fill it out carefully.
Expand All @@ -219,7 +269,7 @@ In return you will get payload with additional data which will include ukId.

## To run all the services

```bash
Run docker-compose -f docker-compose-for-local.yaml --env-file .env-local up -d.```
```bash
docker-compose -f docker-compose-for-local.yaml --env-file .env-local up -d```


1 change: 1 addition & 0 deletions biap-trudesk-service
Submodule biap-trudesk-service added at a09666
60 changes: 39 additions & 21 deletions docker-compose-for-local.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
version: "2"

services:
mongo:
image: mongo
Expand All @@ -8,7 +8,7 @@ services:
- 27017:27017
volumes:
- "./data:/data/db"

mmi-client:
image: navdeep710/ondc-ancillary-services:v3
container_name: map-client
Expand All @@ -25,11 +25,11 @@ services:
- 8000:8000
expose:
- 8000

nginx:
build:
context: biap-app-ui-front
dockerfile: Dockerfile
dockerfile: DockerfileWithoutSSL
args:
REACT_APP_BASE_URL: ${REACT_APP_BASE_URL}
REACT_APP_MMI_BASE_URL: ${REACT_APP_MMI_BASE_URL}
Expand Down Expand Up @@ -61,15 +61,15 @@ services:
volumes:
- ./data/certbot/conf:/etc/letsencrypt
- ./data/certbot/www:/var/www/certbot

certbot:
image: certbot/certbot
restart: "always"
volumes:
- ./data/certbot/conf:/etc/letsencrypt
- ./data/certbot/www:/var/www/certbot
entrypoint: "/bin/sh -c 'trap exit TERM; while :; do certbot renew; sleep 12h & wait $${!}; done;'"

biap-client-node-js:
restart: "always"
build:
Expand Down Expand Up @@ -106,7 +106,7 @@ services:
- 3000
depends_on:
- mongo

biap-igm-node-js:
build:
context: biap-igm-node-js
Expand All @@ -120,6 +120,8 @@ services:
EXPECTED_RESPONSE_TIME: ${EXPECTED_RESPONSE_TIME}
EXPECTED_RESOLUTION_TIME: ${EXPECTED_RESOLUTION_TIME}
BUGZILLA_API_KEY: ${BUGZILLA_API_KEY}
SELECTED_ISSUE_CRM: ${SELECTED_ISSUE_CRM}
TRUDESK_BASE_URI: ${TRUDESK_BASE_URI}
BUGZILLA_SERVICE_URI: ${BUGZILLA_SERVICE_URI}
BAP_URL: ${BAP_URL}
VOLUME_IMAGES_BASE_URL: ${VOLUME_IMAGES_BASE_URL}
Expand All @@ -133,9 +135,11 @@ services:
volumes:
- "./images:/app/images"
restart: always

py-ondc-protocol:
image: navdeep710/ondc-protocol-layer-server:pr-sse-v7.8
build:
context: py-ondc-protocol/webserver/
dockerfile: Dockerfile
container_name: py-ondc-protocol
environment:
ENV: ${PROTOCOL_ENV}
Expand All @@ -154,7 +158,7 @@ services:
- 5555
depends_on:
- mongo

bugzilla-node-backend:
container_name: bugzilla-node-dev
build:
Expand All @@ -163,23 +167,37 @@ services:
environment:
ENV: prod
BUGZILLA_API_KEY: ${BUGZILLA_API_KEY}
SELECTED_ISSUE_CRM: ${SELECTED_ISSUE_CRM}
TRUDESK_BASE_URI: ${TRUDESK_BASE_URI}
BUGZILLA_BASE_URI: ${BUGZILLA_BASE_URI}
BUGZILLA_ADMIN_EMAIL: ${BUGZILLA_ADMIN_EMAIL}
TRUDESK_USERNAME: ${TRUDESK_USERNAME}
TRUDESK_PASSWORD: ${TRUDESK_PASSWORD}
ports:
- "8001:8001"
expose:
- 8001
restart: always

bugzilla-dev-service:
build:
context: ./biap-bugzilla-service/bugzilla-main

trudesk-dev-service:
container_name: trudesk-dev-service
build:
context: biap-trudesk-service/
dockerfile: Dockerfile
environment:
BUGZILLA_WWW: /var/www/html/bugzilla/
BUGZILLA_ADMIN_EMAIL: ${BUGZILLA_ADMIN_EMAIL}
container_name: bugzilla-dev-service
image: shameerkc/bugzilla-dev-sqlite
restart: always
ports:
- "90:80"
- "5989:5900"
- "8118:8118"
dns:
- "1.1.1.1"
- "8.8.8.8"
environment:
TRUDESK_DOCKER: "true"
TD_MONGODB_SERVER: mongo
TD_MONGODB_DATABASE: trudesk
USE_XFORWARDIP: "true"
REACT_APP_BASE_URL: ${REACT_APP_BASE_URL}
TRUDESK_EMAIL: ${TRUDESK_EMAIL}
TRUDESK_USERNAME: ${TRUDESK_USERNAME}
TRUDESK_PASSWORD: ${TRUDESK_PASSWORD}