File tree Expand file tree Collapse file tree 1 file changed +13
-6
lines changed Expand file tree Collapse file tree 1 file changed +13
-6
lines changed Original file line number Diff line number Diff line change 1
1
2
+ ifndef DOCKER_COMPOSE
3
+ DOCKER_COMPOSE := $(shell command -v docker-compose 2> /dev/null)
4
+ endif
5
+ ifndef DOCKER_COMPOSE
6
+ DOCKER_COMPOSE := docker compose
7
+ endif
8
+
2
9
build :
3
10
rm -rf tests/identity
4
11
cp -rp identity tests/
5
- docker-compose -p django-identity-external -f tests/podman-compose.yml --profile test build
12
+ $( DOCKER_COMPOSE ) -p django-identity-external -f tests/podman-compose.yml --profile test build
6
13
7
14
run :
8
- docker-compose -p django-identity-external -f tests/podman-compose.yml up &
15
+ $( DOCKER_COMPOSE ) -p django-identity-external -f tests/podman-compose.yml up &
9
16
for i in $$ ( seq 1 10 ) ; do docker logs django-identity-external_setup_1 2>&1 | grep ' ^OK /setup' && break ; sleep 5 ; done
10
17
11
18
restart-app :
12
- docker-compose -p django-identity-external -f tests/podman-compose.yml exec -T app cp /var/www/django/project/db.sqlite3.initial /var/www/django/project/db.sqlite3
19
+ $( DOCKER_COMPOSE ) -p django-identity-external -f tests/podman-compose.yml exec -T app cp /var/www/django/project/db.sqlite3.initial /var/www/django/project/db.sqlite3
13
20
14
21
test :
15
22
tests/test.pl http://www:8079/admin bob ' bobovo heslo' djadmin djnimda david ' davidovo heslo'
16
23
$(MAKE ) restart-app
17
24
tests/test.pl http://www:8080/admin bob ' bobovo heslo' djadmin djnimda david ' davidovo heslo'
18
25
19
26
test-client-container :
20
- docker-compose -p django-identity-external -f tests/podman-compose.yml --profile test run -T test-client-saml
27
+ $( DOCKER_COMPOSE ) -p django-identity-external -f tests/podman-compose.yml --profile test run -T test-client-saml
21
28
$(MAKE ) restart-app
22
- docker-compose -p django-identity-external -f tests/podman-compose.yml --profile test run -T test-client-openidc
29
+ $( DOCKER_COMPOSE ) -p django-identity-external -f tests/podman-compose.yml --profile test run -T test-client-openidc
23
30
24
31
stop :
25
- docker-compose -p django-identity-external -f tests/podman-compose.yml down -v
32
+ $( DOCKER_COMPOSE ) -p django-identity-external -f tests/podman-compose.yml down -v
26
33
27
34
.PHONY : build run restart-app test test-client-container stop
28
35
You can’t perform that action at this time.
0 commit comments