-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
45 lines (33 loc) · 1.06 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
default: test package
test:
phpunit tests/Test*
phpcs:
src/private/libraries/bin/phpcs
phpcbf:
src/private/libraries/bin/phpcbf src/private/app/
package:
rm -rf pkg
mkdir -p pkg
./buildinfo.sh > buildinfo.txt
zip -r pkg/Sicroc.zip buildinfo.txt
zip -r pkg/Sicroc.zip src/public.html
zip -r pkg/Sicroc.zip src/public.json
zip -r pkg/Sicroc.zip src/private
container-image-base:
podman rmi jamesread/sicroc-base || true
buildah bud -t localhost/sicroc/sicroc-base -f Dockerfile.base
container-image:
podman rmi jamesread/sicroc || true
buildah bud -t localhost/sicroc/sicroc -f Dockerfile.app
container-instance:
podman kill sicroc || true
podman rm sicroc || true
podman create --name sicroc -p 1350:8080 -v /etc/Sicroc/:/etc/Sicroc/ localhost/sicroc/sicroc
podman start sicroc
docker-container-image-base:
docker build -t localhost/sicroc/sicroc-base -f Dockerfile.base .
docker-container-image:
docker build -t localhost/sicroc/sicroc:latest -f Dockerfile.app .
phpstan:
./src/private/libraries/bin/phpstan analyse -c phpstan.neon
.PHONY: default test