Update custom-apps.md

made document clear to insert custom app to build and  resolved error -
"url": "https://user:password@git.example.com/project/repository.git",
to "url": "https://{{ PAT }}@git.example.com/project/repository.git",
This commit is contained in:
Malay Gondalia 2024-02-29 20:46:03 +05:30 committed by GitHub
parent 955a3b0b65
commit 87895a7049
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -10,6 +10,9 @@ cd frappe_docker
`apps.json` needs to be passed in as build arg environment variable. `apps.json` needs to be passed in as build arg environment variable.
```shell ```shell
set env variable APPS_JSON using following shell command
export APPS_JSON='[ export APPS_JSON='[
{ {
"url": "https://github.com/frappe/erpnext", "url": "https://github.com/frappe/erpnext",
@ -20,10 +23,13 @@ export APPS_JSON='[
"branch": "version-15" "branch": "version-15"
}, },
{ {
"url": "https://user:password@git.example.com/project/repository.git", "url": "https://{{ PAT }}@git.example.com/project/repository.git",
"branch": "main" "branch": "main"
} }
]' ]'
set env variable APPS_JSON_BASE64 using following shell command
export APPS_JSON_BASE64=$(echo ${APPS_JSON} | base64 -w 0) export APPS_JSON_BASE64=$(echo ${APPS_JSON} | base64 -w 0)
``` ```
@ -35,7 +41,7 @@ export APPS_JSON_BASE64=$(base64 -w 0 /path/to/apps.json)
Note: Note:
- `url` needs to be http(s) git url with token/auth in case of private repo. - `url` needs to be http(s) git url with personal access tokens without username eg:- http://{{PAT}}@github.com/project/repository.git in case of private repo.
- add dependencies manually in `apps.json` e.g. add `payments` if you are installing `erpnext` - add dependencies manually in `apps.json` e.g. add `payments` if you are installing `erpnext`
- use fork repo or branch for ERPNext in case you need to use your fork or test a PR. - use fork repo or branch for ERPNext in case you need to use your fork or test a PR.