-
Notifications
You must be signed in to change notification settings - Fork 3
/
Makefile
93 lines (93 loc) · 3.71 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
b: build
build:
mvn clean install
test:
mvn test
local: no-test
mkdir -p bin
cp concert-demos-rest-service-mvc/target/concert-demos-rest-service-mvc*.jar bin/concert-demos-rest-service-mvc.jar
cp concert-demos-rest-service-webflux/target/concert-demos-rest-service-webflux*.jar bin/concert-demos-rest-service-webflux.jar
no-test:
mvn clean install -DskipTests
docker:
docker-compose up -d --build --remove-orphans
docker-clean:
docker-compose rm -svf
docker-databases: stop local
docker build ./docker-psql/. -t postgres-image
docker run --name postgres-standalone -e POSTGRES_USER=postgres -e POSTGRES_PASSWORD=admin -e POSTGRES_MULTIPLE_DATABASES=vsa -p 5432:5432 -d postgres-image
docker-clean-build-start: docker-clean no-test docker
docker-action:
docker-compose -f docker-compose.yml up -d --build --remove-orphans
build-images:
docker build concert-demos-rest-service-mvc/. -t concert-demos-rest-service-mvc
docker build concert-demos-rest-service-webflux/. -t concert-demos-rest-service-webflux
build-docker: stop no-test dcup
stop: dcd
docker ps -a -q --filter="name=postgres" | xargs docker stop
docker ps -a -q --filter="name=postgres" | xargs docker rm
docker ps -a -q --filter="name=postgres-image" | xargs docker stop
docker ps -a -q --filter="name=postgres-image" | xargs docker rm
docker ps -a -q --filter="name=concert-demos-rest-service-webflux" | xargs docker stop
docker ps -a -q --filter="name=concert-demos-rest-service-webflux" | xargs docker rm
docker ps -a -q --filter="name=concert-demos-rest-service-mvc" | xargs docker stop
docker ps -a -q --filter="name=concert-demos-rest-service-mvc" | xargs docker rm
update-snyk:
npm i -g snyk
remove-lock-files:
find . -name "package-lock.json" | xargs -I {} rm {}; \
find . -name "yarn.lock" | xargs -I {} rm {};
update: remove-lock-files
npm install -g npm-check-updates
cd concert-demos-gui;\
npx browserslist --update-db;\
ncu -u;\
yarn
audit:
cd concert-demos-gui && npm audit fix && yarn
dcup-light:
docker-compose up -d postgres
dcup: dcd
docker-compose up -d --build --remove-orphans
make concerts-wait
dcd: dc-migration
docker-compose down
concerts-wait:
bash concerts_wait.sh
dcup-full: dcd docker-clean-build-start concerts-wait
dcup-full-action: dcd docker-clean no-test docker-action concerts-wait
log-mvc:
docker-compose logs -f mvc
log-webflux:
docker-compose logs -f webflux
log-postgres:
docker-compose logs -f postgres
cypress-open:
cd e2e && yarn && npm run cypress:open:electron
cypress-electron:
cd e2e && make cypress-electron
cypress-chrome:
cd e2e && make cypress-chrome
cypress-firefox:
cd e2e && make cypress-firefox
cypress-edge:
cd e2e && make cypress-edge
deps-update: update
revert-deps-cypress-update:
if [ -f e2e/docker-composetmp.yml ]; then rm e2e/docker-composetmp.yml; fi
if [ -f e2e/packagetmp.json ]; then rm e2e/packagetmp.json; fi
git checkout e2e/docker-compose.yml
git checkout e2e/package.json
accept-prs:
curl -sL https://raw.githubusercontent.com/jesperancinha/project-signer/master/acceptPR.sh | bash
deps-cypress-update:
curl -sL https://raw.githubusercontent.com/jesperancinha/project-signer/master/cypressUpdateOne.sh | bash
deps-plugins-update:
curl -sL https://raw.githubusercontent.com/jesperancinha/project-signer/master/pluginUpdatesOne.sh | bash -s -- $(PARAMS)
deps-java-update:
curl -sL https://raw.githubusercontent.com/jesperancinha/project-signer/master/javaUpdatesOne.sh | bash
deps-node-update:
curl -sL https://raw.githubusercontent.com/jesperancinha/project-signer/master/nodeUpdatesOne.sh | bash
deps-quick-update: deps-cypress-update deps-plugins-update deps-java-update deps-node-update
dc-migration:
curl -sL https://raw.githubusercontent.com/jesperancinha/project-signer/master/setupDockerCompose.sh | bash