mirror of
https://github.com/cmehay/docker-tor-hidden-service.git
synced 2025-05-25 11:22:23 +00:00
Dockerfile: Add torsocks binary.
This has two purposes: 1) The 'torify' wrapper is already included, and it needs torsocks. 2) Use torsocks for health checking your onion service like this: healthcheck: test: ["CMD-SHELL", "torsocks nc -z <onion address> <port> || exit 1"] interval: 2m
This commit is contained in:
parent
b451f25be9
commit
83d59f7ff0
4 changed files with 18 additions and 2 deletions
5
Makefile
5
Makefile
|
@ -1,6 +1,7 @@
|
|||
.EXPORT_ALL_VARIABLES:
|
||||
|
||||
TOR_VERSION = $(shell bash last_tor_version.sh)
|
||||
TORSOCKS_VERSION = $(shell bash last_torsocks_version.sh)
|
||||
CUR_COMMIT = $(shell git rev-parse --short HEAD)
|
||||
CUR_TAG = v$(TOR_VERSION)-$(CUR_COMMIT)
|
||||
|
||||
|
@ -17,11 +18,11 @@ check:
|
|||
pre-commit run --all-files
|
||||
|
||||
build:
|
||||
- echo build with tor version $(TOR_VERSION)
|
||||
- echo build with tor version $(TOR_VERSION) and torsocks version $(TORSOCKS_VERSION)
|
||||
docker-compose -f docker-compose.build.yml build
|
||||
|
||||
rebuild:
|
||||
- echo rebuild with tor version $(TOR_VERSION)
|
||||
- echo rebuild with tor version $(TOR_VERSION) and torsocks version $(TORSOCKS_VERSION)
|
||||
docker-compose -f docker-compose.build.yml build --no-cache
|
||||
|
||||
run: build
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue