diff --git a/%5BRFC%5D-Development-%26-Deployment-Process-for-Brotherton.md b/%5BRFC%5D-Development-%26-Deployment-Process-for-Brotherton.md index edf12a1..4962844 100644 --- a/%5BRFC%5D-Development-%26-Deployment-Process-for-Brotherton.md +++ b/%5BRFC%5D-Development-%26-Deployment-Process-for-Brotherton.md @@ -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 clear-cache` \ No newline at end of file +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 clear-cache` \ No newline at end of file