Install newer tor, from torproject.org

This commit is contained in:
meejah 2024-12-12 22:41:14 -07:00
parent c7b2ae7b2c
commit 5105d1ae54
2 changed files with 11 additions and 1 deletions

View File

@ -10,16 +10,24 @@ ENV BUILD_SRC_ROOT /tmp/project
RUN apt-get --quiet update && \
apt-get --quiet --yes install \
git \
wget \
lsb-release \
sudo \
build-essential \
python-is-python3 \
python${PYTHON_VERSION} \
python${PYTHON_VERSION}-dev \
libffi-dev \
libssl-dev \
libyaml-dev \
virtualenv \
tor
apt-transport-https
COPY .circleci/apt-tor-list /etc/apt/sources.list.d/tor.list
RUN wget -qO- https://deb.torproject.org/torproject.org/A3C4F0F979CAA22CDBA8F512EE8CBC9E886DDD89.asc | gpg --dearmor | tee /usr/share/keyrings/deb.torproject.org-keyring.gpg >/dev/null && \
apt-get update
RUN apt-get install -y deb.torproject.org-keyring && \
apt-get install -y tor
# Get the project source. This is better than it seems. CircleCI will
# *update* this checkout on each job run, saving us more time per-job.

2
.circleci/apt-tor-list Normal file
View File

@ -0,0 +1,2 @@
deb [signed-by=/usr/share/keyrings/deb.torproject.org-keyring.gpg] https://deb.torproject.org/torproject.org stable main
deb-src [signed-by=/usr/share/keyrings/deb.torproject.org-keyring.gpg] https://deb.torproject.org/torproject.org stable main