Update [RFC] Development & Deployment Process for Brotherton

steffeydev 2025-02-03 20:58:46 +00:00
parent 398994f616
commit 7b7d39987d

@ -13,28 +13,6 @@ Before we switch to this new process, we should backup the prod database and res
### Building custom images
Make sure version is the same for erpnext, hrms, and frappe
```sh
export APPS_JSON='[
{
"url": "https://githaven.org/Shiloh/brotherton-erpnext",
"branch": "production"
},
{
"url": "https://github.com/frappe/hrms",
"branch": "v15.15.0"
}
]'
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=v15.15.0 \
--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. If changing version, you'll need to run `bench --site <site> clear-cache`
1. Edit `build.sh` in the repo root and change the `TAG` variable
2. Run `./build.sh` (you have to login to githaven.org with docker if you haven't already before this will work)
3. Then edit the compose file to use the new tag on staging/prod and restart. If changing version, you'll need to run `bench --site <site> clear-cache`