docker-tor-hidden-service/last_torsocks_version.sh
Andreas Schildbach 83d59f7ff0 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
2020-12-06 01:09:47 +01:00

2 lines
129 B
Bash
Executable file

#!/bin/sh
git ls-remote --tags https://git.torproject.org/torsocks.git | grep -oE 'v[0-9]+\.[0-9]+\.[0-9]+$' | sort -V | tail -1