mirror of
https://github.com/frappe/frappe_docker.git
synced 2026-06-21 15:25:09 +00:00
fix: install pkg-config for insights
This commit is contained in:
parent
a91293f606
commit
216dcde224
1 changed files with 26 additions and 21 deletions
47
pwd.yml
47
pwd.yml
|
|
@ -46,6 +46,7 @@ services:
|
||||||
|
|
||||||
create-site:
|
create-site:
|
||||||
image: frappe/erpnext:v15.78.1
|
image: frappe/erpnext:v15.78.1
|
||||||
|
user: root
|
||||||
networks:
|
networks:
|
||||||
- frappe_network
|
- frappe_network
|
||||||
deploy:
|
deploy:
|
||||||
|
|
@ -62,27 +63,31 @@ services:
|
||||||
wait-for-it -t 120 db:3306;
|
wait-for-it -t 120 db:3306;
|
||||||
wait-for-it -t 120 redis-cache:6379;
|
wait-for-it -t 120 redis-cache:6379;
|
||||||
wait-for-it -t 120 redis-queue:6379;
|
wait-for-it -t 120 redis-queue:6379;
|
||||||
export start=`date +%s`;
|
apt-get update;
|
||||||
until [[ -n `grep -hs ^ sites/common_site_config.json | jq -r ".db_host // empty"` ]] && \
|
apt-get install -y pkg-config;
|
||||||
[[ -n `grep -hs ^ sites/common_site_config.json | jq -r ".redis_cache // empty"` ]] && \
|
su frappe -c "export start=\`date +%s\`; \
|
||||||
[[ -n `grep -hs ^ sites/common_site_config.json | jq -r ".redis_queue // empty"` ]];
|
until [[ -n \`grep -hs ^ sites/common_site_config.json | jq -r \".db_host // empty\"\` ]] && \
|
||||||
do
|
[[ -n \`grep -hs ^ sites/common_site_config.json | jq -r \".redis_cache // empty\"\` ]] && \
|
||||||
echo "Waiting for sites/common_site_config.json to be created";
|
[[ -n \`grep -hs ^ sites/common_site_config.json | jq -r \".redis_queue // empty\"\` ]]; \
|
||||||
sleep 5;
|
do \
|
||||||
if (( `date +%s`-start > 120 )); then
|
echo \"Waiting for sites/common_site_config.json to be created\"; \
|
||||||
echo "could not find sites/common_site_config.json with required keys";
|
sleep 5; \
|
||||||
exit 1
|
if (( \`date +%s\`-start > 120 )); then \
|
||||||
fi
|
echo \"could not find sites/common_site_config.json with required keys\"; \
|
||||||
done;
|
exit 1; \
|
||||||
echo "sites/common_site_config.json found";
|
fi; \
|
||||||
bench get-app https://github.com/frappe/hrms;
|
done; \
|
||||||
bench get-app https://github.com/frappe/crm;
|
echo \"sites/common_site_config.json found\"; \
|
||||||
bench get-app https://github.com/frappe/helpdesk;
|
bench get-app https://github.com/frappe/hrms; \
|
||||||
bench get-app https://github.com/frappe/drive;
|
bench get-app https://github.com/frappe/crm; \
|
||||||
bench get-app https://github.com/frappe/studio;
|
bench get-app https://github.com/frappe/helpdesk; \
|
||||||
bench get-app https://github.com/frappe/wiki;
|
bench get-app https://github.com/frappe/drive; \
|
||||||
bench get-app https://github.com/frappe/insights;
|
bench get-app https://github.com/frappe/studio; \
|
||||||
bench new-site --mariadb-user-host-login-scope='%' --admin-password=admin --db-root-username=root --db-root-password=admin --install-app erpnext,hrms,crm,helpdesk,drive,studio,wiki,insights --set-default frontend;
|
bench get-app https://github.com/frappe/wiki; \
|
||||||
|
bench get-app https://github.com/frappe/insights; \
|
||||||
|
bench new-site --mariadb-user-host-login-scope='%' --admin-password=admin --db-root-username=root --db-root-password=admin --install-app erpnext,hrms,crm,helpdesk,drive,studio,wiki,insights --set-default frontend; \
|
||||||
|
";
|
||||||
|
chown -R frappe:frappe /home/frappe/frappe-bench;
|
||||||
|
|
||||||
db:
|
db:
|
||||||
image: mariadb:10.6
|
image: mariadb:10.6
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue