mirror of
https://github.com/cmehay/docker-tor-hidden-service.git
synced 2025-04-22 06:49:10 +00:00
Add tor and torsock version in plain files
Now: - `make build` will build the container with tor version set in `current_tor_version` and `current_torsock_version` - `make update_tor_version` will update theses files
This commit is contained in:
parent
3a65c8dc48
commit
0501f0b8c9
4 changed files with 15 additions and 4 deletions
14
Makefile
14
Makefile
|
@ -1,7 +1,9 @@
|
|||
.EXPORT_ALL_VARIABLES:
|
||||
|
||||
TOR_VERSION = $(shell bash last_tor_version.sh)
|
||||
TORSOCKS_VERSION = $(shell bash last_torsocks_version.sh)
|
||||
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_torsock_version)
|
||||
CUR_COMMIT = $(shell git rev-parse --short HEAD)
|
||||
CUR_TAG = v$(TOR_VERSION)-$(CUR_COMMIT)
|
||||
|
||||
|
@ -11,6 +13,10 @@ test:
|
|||
tag:
|
||||
git tag $(CUR_TAG)
|
||||
|
||||
update_tor_version:
|
||||
echo $(LAST_TOR_VERSION) > current_tor_version
|
||||
echo $(LAST_TORSOCKS_VERSION) > current_torsock_version
|
||||
|
||||
release: test tag
|
||||
git push origin --tags
|
||||
|
||||
|
@ -19,11 +25,13 @@ check:
|
|||
|
||||
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)
|
||||
docker-compose -f docker-compose.build.yml build --no-cache
|
||||
- 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.v1.yml up --force-recreate
|
||||
|
|
1
current_tor_version
Normal file
1
current_tor_version
Normal file
|
@ -0,0 +1 @@
|
|||
0.4.4.7
|
1
current_torsock_version
Normal file
1
current_torsock_version
Normal file
|
@ -0,0 +1 @@
|
|||
v2.3.0
|
|
@ -198,7 +198,8 @@ class Setup(object):
|
|||
for reg, call in match_map:
|
||||
for key, val in os.environ.items():
|
||||
m = match(reg, key)
|
||||
# Ignore GPG_KEY env variable to avoid warning (this is a deprecated setup)
|
||||
# Ignore GPG_KEY env variable to avoid warning
|
||||
# (this is a deprecated setup)
|
||||
if m and key != 'GPG_KEY':
|
||||
try:
|
||||
call(m.groups()[0].lower(), val)
|
||||
|
|
Loading…
Add table
Reference in a new issue