This commit is contained in:
Lev 2021-11-23 17:27:32 +03:00
parent 76f62eb0a1
commit b36ddf0c47

View file

@ -7,6 +7,16 @@ source tests/functions.sh
project_name="test_frappe"
SITE_NAME="test_frappe.localhost"
docker_compose_with_args() {
# shellcheck disable=SC2068
docker-compose \
-p $project_name \
-f installation/docker-compose-common.yml \
-f installation/docker-compose-frappe.yml \
-f installation/frappe-publish.yml \
$@
}
echo ::group::Setup env
cp env-example .env
sed -i -e "s/edge/test/g" .env
@ -15,12 +25,7 @@ export $(cat .env)
cat .env
print_group Start services
docker-compose \
-p $project_name \
-f installation/docker-compose-common.yml \
-f installation/docker-compose-frappe.yml \
-f installation/frappe-publish.yml \
up -d
docker_compose_with_args up -d
print_group Create site
docker run \
@ -31,5 +36,5 @@ docker run \
frappe/frappe-worker:test new
ping_site
docker-compose down
docker_compose_with_args down
rm .env