mirror of
https://github.com/frappe/frappe_docker.git
synced 2026-06-23 00:05:09 +00:00
ci: relax failure threshold
This commit is contained in:
parent
77f393fa79
commit
19c1431fb3
6 changed files with 23 additions and 6 deletions
2
.github/workflows/check.yml
vendored
2
.github/workflows/check.yml
vendored
|
|
@ -58,4 +58,4 @@ jobs:
|
|||
|
||||
- name: Run hadolint
|
||||
run: |
|
||||
find . -type f -name "Dockerfile*" -exec hadolint {} +
|
||||
find . -type f -name "Dockerfile*" -exec hadolint --failure-threshold error {} +
|
||||
|
|
|
|||
3
.github/workflows/wait-for-check.yml
vendored
3
.github/workflows/wait-for-check.yml
vendored
|
|
@ -15,6 +15,9 @@ jobs:
|
|||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Wait for Check workflow to succeed
|
||||
env:
|
||||
GH_TOKEN: ${{ secrets.GH_TOKEN }}
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
---
|
||||
extends: default
|
||||
|
||||
rules:
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
---
|
||||
x-customizable-image: &customizable_image
|
||||
# By default the image used only contains the `frappe` and `erpnext` apps.
|
||||
# See https://github.com/frappe/frappe_docker/blob/main/docs/custom-apps.md
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
---
|
||||
services:
|
||||
configurator:
|
||||
environment:
|
||||
|
|
|
|||
21
pwd.yml
21
pwd.yml
|
|
@ -1,3 +1,4 @@
|
|||
---
|
||||
version: "3"
|
||||
|
||||
services:
|
||||
|
|
@ -65,19 +66,29 @@ services:
|
|||
wait-for-it -t 120 redis-cache:6379;
|
||||
wait-for-it -t 120 redis-queue:6379;
|
||||
export start=`date +%s`;
|
||||
until [[ -n `grep -hs ^ sites/common_site_config.json | jq -r ".db_host // empty"` ]] && \
|
||||
[[ -n `grep -hs ^ sites/common_site_config.json | jq -r ".redis_cache // empty"` ]] && \
|
||||
[[ -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"` ]] && \
|
||||
[[ -n `grep -hs ^ sites/common_site_config.json | \
|
||||
jq -r ".redis_cache // empty"` ]] && \
|
||||
[[ -n `grep -hs ^ sites/common_site_config.json | \
|
||||
jq -r ".redis_queue // empty"` ]];
|
||||
do
|
||||
echo "Waiting for sites/common_site_config.json to be created";
|
||||
sleep 5;
|
||||
if (( `date +%s`-start > 120 )); then
|
||||
echo "could not find sites/common_site_config.json with required keys";
|
||||
echo "could not find sites/common_site_config.json with required keys" \
|
||||
"and the process will exit.";
|
||||
exit 1
|
||||
fi
|
||||
done;
|
||||
echo "sites/common_site_config.json found";
|
||||
bench new-site --mariadb-user-host-login-scope='%' --admin-password=admin --db-root-username=root --db-root-password=admin --install-app erpnext --set-default frontend;
|
||||
bench new-site \
|
||||
--mariadb-user-host-login-scope='%' \
|
||||
--admin-password=admin \
|
||||
--db-root-username=root \
|
||||
--db-root-password=admin \
|
||||
--install-app erpnext \
|
||||
--set-default frontend;
|
||||
|
||||
db:
|
||||
image: mariadb:10.6
|
||||
|
|
|
|||
Loading…
Reference in a new issue