mirror of
https://github.com/frappe/frappe_docker.git
synced 2026-06-22 15:55:09 +00:00
forgot about branches
This commit is contained in:
parent
177ca58af6
commit
b610caba7e
3 changed files with 7 additions and 3 deletions
|
|
@ -2,6 +2,7 @@
|
||||||
|
|
||||||
APP_NAME=${1}
|
APP_NAME=${1}
|
||||||
APP_REPO=${2}
|
APP_REPO=${2}
|
||||||
|
APP_BRANCH=${3}
|
||||||
|
|
||||||
cd /home/frappe/frappe-bench/
|
cd /home/frappe/frappe-bench/
|
||||||
|
|
||||||
|
|
@ -9,5 +10,8 @@ cd /home/frappe/frappe-bench/
|
||||||
|
|
||||||
cd apps
|
cd apps
|
||||||
|
|
||||||
git clone --depth 1 -o upstream ${APP_REPO}
|
[ "${APP_BRANCH}" ] && \
|
||||||
|
BRANCH="-b ${APP_BRANCH}"
|
||||||
|
|
||||||
|
git clone --depth 1 -o upstream ${APP_REPO} ${BRANCH}
|
||||||
pip3 install --no-cache-dir -e /home/frappe/frappe-bench/apps/APP_NAME
|
pip3 install --no-cache-dir -e /home/frappe/frappe-bench/apps/APP_NAME
|
||||||
|
|
@ -1,3 +1,3 @@
|
||||||
FROM frappe/frappe-worker:v11
|
FROM frappe/frappe-worker:v11
|
||||||
|
|
||||||
RUN install_app erpnext https://github.com/frappe/erpnext
|
RUN install_app erpnext https://github.com/frappe/erpnext version-11
|
||||||
|
|
@ -1,3 +1,3 @@
|
||||||
FROM frappe/frappe-worker:v12
|
FROM frappe/frappe-worker:v12
|
||||||
|
|
||||||
RUN install_app erpnext https://github.com/frappe/erpnext
|
RUN install_app erpnext https://github.com/frappe/erpnext version-12
|
||||||
Loading…
Reference in a new issue