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
|
- name: Run hadolint
|
||||||
run: |
|
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
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
- name: Checkout repository
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Wait for Check workflow to succeed
|
- name: Wait for Check workflow to succeed
|
||||||
env:
|
env:
|
||||||
GH_TOKEN: ${{ secrets.GH_TOKEN }}
|
GH_TOKEN: ${{ secrets.GH_TOKEN }}
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,4 @@
|
||||||
|
---
|
||||||
extends: default
|
extends: default
|
||||||
|
|
||||||
rules:
|
rules:
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,4 @@
|
||||||
|
---
|
||||||
x-customizable-image: &customizable_image
|
x-customizable-image: &customizable_image
|
||||||
# By default the image used only contains the `frappe` and `erpnext` apps.
|
# 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
|
# See https://github.com/frappe/frappe_docker/blob/main/docs/custom-apps.md
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,4 @@
|
||||||
|
---
|
||||||
services:
|
services:
|
||||||
configurator:
|
configurator:
|
||||||
environment:
|
environment:
|
||||||
|
|
|
||||||
21
pwd.yml
21
pwd.yml
|
|
@ -1,3 +1,4 @@
|
||||||
|
---
|
||||||
version: "3"
|
version: "3"
|
||||||
|
|
||||||
services:
|
services:
|
||||||
|
|
@ -65,19 +66,29 @@ services:
|
||||||
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`;
|
export start=`date +%s`;
|
||||||
until [[ -n `grep -hs ^ sites/common_site_config.json | jq -r ".db_host // empty"` ]] && \
|
until [[ -n `grep -hs ^ sites/common_site_config.json | \
|
||||||
[[ -n `grep -hs ^ sites/common_site_config.json | jq -r ".redis_cache // empty"` ]] && \
|
jq -r ".db_host // empty"` ]] && \
|
||||||
[[ -n `grep -hs ^ sites/common_site_config.json | jq -r ".redis_queue // 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
|
do
|
||||||
echo "Waiting for sites/common_site_config.json to be created";
|
echo "Waiting for sites/common_site_config.json to be created";
|
||||||
sleep 5;
|
sleep 5;
|
||||||
if (( `date +%s`-start > 120 )); then
|
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
|
exit 1
|
||||||
fi
|
fi
|
||||||
done;
|
done;
|
||||||
echo "sites/common_site_config.json found";
|
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:
|
db:
|
||||||
image: mariadb:10.6
|
image: mariadb:10.6
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue