Update [RFC] Development & Deployment Process for Brotherton
parent
1bcbfd754d
commit
dd97cf13de
@ -9,4 +9,31 @@ Sometimes, client-specific changes will need to be made in the source code if th
|
|||||||
|
|
||||||
Each developer should have their own accounts in staging and prod, so that changes can be tracked back to the developer for accountability. All changes made by "Administrator" can be assumed to have been done by Landry. Going forward, the Administrator account should only be used for provisioning other accounts.
|
Each developer should have their own accounts in staging and prod, so that changes can be tracked back to the developer for accountability. All changes made by "Administrator" can be assumed to have been done by Landry. Going forward, the Administrator account should only be used for provisioning other accounts.
|
||||||
|
|
||||||
Before we switch to this new process, we should backup the prod database and apply it to staging, so that they start in the same place. Then, as long as we make custom changes to staging first, staging should always be equal to or ahead of prod.
|
Before we switch to this new process, we should backup the prod database and apply it to staging, so that they start in the same place. Then, as long as we make custom changes to staging first, staging should always be equal to or ahead of prod.
|
||||||
|
|
||||||
|
|
||||||
|
#### Building custom images
|
||||||
|
```sh
|
||||||
|
export APPS_JSON='[
|
||||||
|
{
|
||||||
|
"url": "https://githaven.org/Shiloh/brotherton-erpnext",
|
||||||
|
"branch": "production"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"url": "https://github.com/frappe/hrms",
|
||||||
|
"branch": "version-15"
|
||||||
|
}
|
||||||
|
]'
|
||||||
|
export APPS_JSON_BASE64=$(echo ${APPS_JSON} | base64 -w 0)
|
||||||
|
export TAG=1.0.0 # Change this
|
||||||
|
docker build --platform=linux/amd64 \
|
||||||
|
--build-arg=FRAPPE_PATH=https://github.com/frappe/frappe \
|
||||||
|
--build-arg=FRAPPE_BRANCH=version-15 \
|
||||||
|
--build-arg=PYTHON_VERSION=3.11.6 \
|
||||||
|
--build-arg=NODE_VERSION=18.18.2 \
|
||||||
|
--build-arg=APPS_JSON_BASE64=$APPS_JSON_BASE64 \
|
||||||
|
--tag=githaven.org/shiloh/frappe_docker:$TAG \
|
||||||
|
--file=images/custom/Containerfile .
|
||||||
|
docker push githaven.org/shiloh/frappe_docker:$TAG
|
||||||
|
```
|
||||||
|
Then edit the compose file on staging/prod and restart
|
Loading…
x
Reference in New Issue
Block a user