initial commit

This commit is contained in:
manalejandro 2019-05-08 19:53:51 +02:00
parent 43359c2aff
commit 99c3e42c13
5 changed files with 50 additions and 11 deletions

View File

@ -1,11 +1,12 @@
FROM debian
FROM debian:sid
ENV TOR_VERSION=8.5a3
ENV TOR_VERSION=8.5a12
ENV LANGTOR=es-ES
# Via https://dist.torproject.org/torbrowser/$TOR_VERSION/sha256sums-signed-build.txt
ENV SHA256_CHECKSUM=5079b8cf7ca0e0430c324dcb25257e39e8a8a98fc2aa6c22aadaf2981ac1adc2
ENV LANG=C.UTF-8
ENV RELEASE_FILE=tor-browser-linux64-${TOR_VERSION}_en-US.tar.xz
ENV RELEASE_KEY=0x4E2C6E8793298290
ENV SHA256_CHECKSUM=0467158996ebdd0b653691a98704219ed14be2f09912a2ebd3d4520319d72cca
ENV LANG=es-ES.UTF-8
ENV RELEASE_FILE=tor-browser-linux64-${TOR_VERSION}_$LANGTOR.tar.xz
ENV RELEASE_KEY=0xEB774491D9FF06E2
ENV RELEASE_URL=https://dist.torproject.org/torbrowser/${TOR_VERSION}/${RELEASE_FILE}
ENV PATH=$PATH:/usr/local/bin/Browser

View File

@ -1,14 +1,28 @@
# tor-browser
This repo defines the `hkjn/tor-browser` Docker image.
This repo defines the `tor-browser` Docker image updated and cloned from [hkjn](https://github.com/hkjn/tor-browser).
## Install:
- Need `docker`
```
./build.sh
```
## Usage:
You can run tor-browser in a container with a command like:
```
./tor_browser.sh
or
docker run -it --rm --name tor-browser \
-v /tmp/.X11-unix:/tmp/.X11-unix:ro \
-e DISPLAY=unix$DISPLAY \
hkjn/tor-browser
tb
```
If you want to specify a custom `torrc` file, that can be done with:
@ -18,5 +32,5 @@ docker run -it --rm --name tor-browser \
-e TORRC_PATH=/conf/torrc \
-v /tmp/.X11-unix:/tmp/.X11-unix:ro \
-e DISPLAY=unix$DISPLAY \
hkjn/tor-browser
tb
```

22
README.md.orig Normal file
View File

@ -0,0 +1,22 @@
# tor-browser
This repo defines the `hkjn/tor-browser` Docker image.
You can run tor-browser in a container with a command like:
```
docker run -it --rm --name tor-browser \
-v /tmp/.X11-unix:/tmp/.X11-unix:ro \
-e DISPLAY=unix$DISPLAY \
hkjn/tor-browser
```
If you want to specify a custom `torrc` file, that can be done with:
```
docker run -it --rm --name tor-browser \
-v /host/dir/containing/torrc:/conf:ro \
-e TORRC_PATH=/conf/torrc \
-v /tmp/.X11-unix:/tmp/.X11-unix:ro \
-e DISPLAY=unix$DISPLAY \
hkjn/tor-browser
```

2
build.sh Executable file
View File

@ -0,0 +1,2 @@
#!/bin/bash
docker build -t tb:latest .

View File

@ -7,4 +7,4 @@ docker run -it --rm \
--name tor-browser \
-v /tmp/.X11-unix:/tmp/.X11-unix:ro \
-e DISPLAY=unix$DISPLAY \
hkjn/tor-browser
tb:latest