-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
60 lines (44 loc) · 1.41 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
#!/usr/bin/make
all: buildout
BRANCH := $(shell git rev-parse --abbrev-ref HEAD)
#BRANCH := $(shell git for-each-ref --format='%(objectname) %(refname:short)' refs/heads | awk "/^$$(git rev-parse HEAD)/ {print \$$2}")
buildout.cfg:
ln -fs dev.cfg buildout.cfg
bin/buildout: bin/pip buildout.cfg
bin/pip install -I -r requirements.txt
buildout: bin/instance
bin/instance: bin/buildout
bin/buildout
bin/pip:
python3.10 -m venv .
bin/pip install setuptools==69.0.2
run: bin/instance
bin/instance fg
cleanall:
rm -fr develop-eggs downloads eggs parts .installed.cfg lib lib64 include bin .mr.developer.cfg local/
upgrade-steps:
bin/instance -O Plone run scripts/run_portal_upgrades.py
docker-image:
docker build --pull --no-cache -t smartweb/mutual:$(BRANCH) .
lint:
pre-commit run --all
test-image: bin/pip
echo test
#./bin/pip install pip==21.3.1
#docker-compose up --no-start postgres # create network
#docker-compose run --rm -u root solr chmod 777 -R /var/solr/data/plone
#make local-test-image
local-test-image:
python3 -m venv .
./bin/pip install -r tests/requirements.txt
./bin/pytest -s tests
docker-test-image:
docker build -f Dockerfile.test -t smartweb-test:latest .
docker run -v /var/run/docker.sock:/var/run/docker.sock smartweb-test
.PHONY: solr
solr:
sudo chmod -R 777 solr
docker compose up solr
.PHONY: solr-cluster
solr-cluster:
docker compose -f docker-compose-solr-cluster.yml up