forked from InvertedTech/docker-tor-hidden-service
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
60 lines (44 loc) · 1.82 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
.EXPORT_ALL_VARIABLES:
LAST_TOR_VERSION = $(shell bash last_tor_version.sh)
LAST_TORSOCKS_VERSION = $(shell bash last_torsocks_version.sh)
TOR_VERSION = $(shell cat current_tor_version)
TORSOCKS_VERSION = $(shell cat current_torsocks_version)
CUR_COMMIT = $(shell git rev-parse --short HEAD)
CUR_TAG = v$(TOR_VERSION)-$(CUR_COMMIT)
test:
tox
tag:
git tag $(CUR_TAG)
update_tor_version:
echo $(LAST_TOR_VERSION) > current_tor_version
echo $(LAST_TORSOCKS_VERSION) > current_torsocks_version
release: test tag
git push origin --tags
check:
pre-commit run --all-files
build:
- echo build with tor version $(TOR_VERSION) and torsocks version $(TORSOCKS_VERSION)
- echo 'Please run make update_tor_version to build the container with the last tor version'
docker-compose -f docker-compose.build.yml build
rebuild:
- echo rebuild with tor version $(TOR_VERSION) and torsocks version $(TORSOCKS_VERSION)
- echo 'Please run make update_tor_version to build the container with the last tor version'
docker-compose -f docker-compose.build.yml build --no-cache --pull
run: build
docker-compose -f docker-compose.v2.yml up --force-recreate
run-v2-socket: build
docker-compose -f docker-compose.v2.socket.yml up --force-recreate
run-v3: build
docker-compose -f docker-compose.v3.yml up --force-recreate
shell-v3: build
docker-compose -f docker-compose.v3.yml run tor--rm tor sh
run-v3-latest:
docker-compose -f docker-compose.v3.latest.yml up --force-recreate
run-vanguards: build
docker-compose -f docker-compose.vanguards.yml up --force-recreate
run-vanguards-network: build
docker-compose -f docker-compose.vanguards-network.yml up --force-recreate
publish: build
docker tag goldy/tor-hidden-service:$(CUR_TAG) goldy/tor-hidden-service:latest
docker push goldy/tor-hidden-service:$(CUR_TAG)
docker push goldy/tor-hidden-service:latest