Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Readme Updated, Docker Compose Improved #60

Open
wants to merge 47 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 43 commits
Commits
Show all changes
47 commits
Select commit Hold shift + click to select a range
874c63e
Update README.md
GitXpresso Nov 8, 2024
b3e3328
Update README.md
GitXpresso Nov 8, 2024
5310df7
Update docker-compose.yml
GitXpresso Nov 8, 2024
8f16f9d
Update README.md
GitXpresso Nov 8, 2024
4f97829
Update README.md
GitXpresso Nov 8, 2024
0be3e0f
Update README.md
GitXpresso Nov 8, 2024
2d43672
Update README.md
GitXpresso Nov 8, 2024
da4ffc9
Update README.md
GitXpresso Nov 9, 2024
54bd132
Update README.md
GitXpresso Nov 9, 2024
a7a79d6
Update README.md
GitXpresso Nov 9, 2024
01785bd
Update README.md
GitXpresso Nov 9, 2024
2fa97f8
Update README.md
GitXpresso Nov 9, 2024
36cb82c
Update README.md
GitXpresso Nov 9, 2024
9db7979
Update README.md
GitXpresso Nov 9, 2024
fb2e493
Update README.md
GitXpresso Nov 9, 2024
b2b00ae
Update README.md
GitXpresso Nov 9, 2024
3fbeaf0
Update README.md
GitXpresso Nov 9, 2024
1daff17
Update README.md
GitXpresso Nov 9, 2024
d515b6a
Update README.md
GitXpresso Nov 9, 2024
05da9a5
Update README.md
GitXpresso Nov 9, 2024
aafdafa
Update README.md
GitXpresso Nov 9, 2024
d7c9f00
Update README.md
GitXpresso Nov 9, 2024
14ea06c
Update README.md
GitXpresso Nov 9, 2024
b1017a5
Update README.md
GitXpresso Nov 9, 2024
7ff150d
Update README.md
GitXpresso Nov 9, 2024
89d9e23
Update README.md
GitXpresso Nov 9, 2024
82c25c4
Update README.md
GitXpresso Nov 9, 2024
24692b7
Update README.md
GitXpresso Nov 9, 2024
979b166
Update README.md
GitXpresso Nov 9, 2024
0ad6653
Update README.md
GitXpresso Nov 9, 2024
207ee6a
Update README.md
GitXpresso Nov 9, 2024
d1f92f2
Update README.md
GitXpresso Nov 9, 2024
a46c8b0
Update README.md
GitXpresso Nov 9, 2024
92b8c38
Update README.md
GitXpresso Nov 9, 2024
f4da757
Update README.md
GitXpresso Nov 9, 2024
0cc6111
Update README.md
GitXpresso Nov 9, 2024
b31525b
Update README.md
GitXpresso Nov 9, 2024
c38eabf
Update README.md
GitXpresso Nov 9, 2024
53d930e
Update Dockerfile
GitXpresso Dec 14, 2024
ebc1451
Create readme.md
GitXpresso Dec 14, 2024
56f91dd
Update Dockerfile
GitXpresso Dec 14, 2024
400abc8
Update DockerfileO
GitXpresso Dec 14, 2024
6393a11
Update Dockerfile
GitXpresso Dec 14, 2024
0ad3b30
Update Dockerfile
GitXpresso Dec 18, 2024
a48eb7a
Update README.md
GitXpresso Dec 26, 2024
c6dcd35
Update docker-compose.yml
GitXpresso Dec 26, 2024
c1a6579
Merge branch 'DomiStyle:master' into master
GitXpresso Dec 26, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
49 changes: 16 additions & 33 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,25 +3,17 @@ FROM jlesage/baseimage-gui:ubuntu-22.04-v4 AS builder

ARG LOCALE="en-US"

ENV TOR_VERSION_X64="13.0.13"
ENV TOR_VERSION_ARM64="13.0.9"
ENV WATERFOX_VERSION_X64="5.7.2"
lawndoc marked this conversation as resolved.
Show resolved Hide resolved
ENV WATERFOX_VERSION_ARM64="5.7.2"

# automatic; passed in by Docker buildx
ARG TARGETARCH
# x64 Tor Browser official build
ENV TOR_BINARY_X64="https://www.torproject.org/dist/torbrowser/${TOR_VERSION_X64}/tor-browser-linux64-${TOR_VERSION_X64}_ALL.tar.xz"
ENV TOR_SIGNATURE_X64="https://www.torproject.org/dist/torbrowser/${TOR_VERSION_X64}/tor-browser-linux64-${TOR_VERSION_X64}_ALL.tar.xz.asc"
ENV TOR_GPG_KEY_X64="https://openpgpkey.torproject.org/.well-known/openpgpkey/torproject.org/hu/kounek7zrdx745qydx6p59t9mqjpuhdf"
ENV TOR_FINGERPRINT_X64="0xEF6E286DDA85EA2A4BA7DE684E2C6E8793298290"
ENV WATERFOX_BINARY="https://cdn1.waterfox.net/waterfox/releases/6.5.2/Linux_x86_64/waterfox-6.5.2.tar.bz2"
ENV WATERFOX_GPG_KEY="https://download.opensuse.org/repositories/home:/hawkeye116477:/waterfox:/build-depends/xUbuntu_22.04/Release.gpg"
# arm64 Tor Browser unofficial build
ENV TOR_BINARY_ARM64="https://sourceforge.net/projects/tor-browser-ports/files/${TOR_VERSION_ARM64}/tor-browser-linux-arm64-${TOR_VERSION_ARM64}_ALL.tar.xz"
ENV TOR_SIGNATURE_ARM64="https://sourceforge.net/projects/tor-browser-ports/files/${TOR_VERSION_ARM64}/tor-browser-linux-arm64-${TOR_VERSION_ARM64}_ALL.tar.xz.asc"
ENV TOR_GPG_KEY_ARM64="https://h-lindholm.net/pubkey"
ENV TOR_FINGERPRINT_ARM64="0x24F141A3B988B6C350B937586AF15D1E45FDCEC9"

# Generate Tor onion favicons
ENV ONION_ICON_URL="https://raw.githubusercontent.com/DomiStyle/docker-tor-browser/master/icon.png"
RUN install_app_icon.sh "${ONION_ICON_URL}"
ENV WATERFOX_ICON_URL="https://raw.githubusercontent.com/DomiStyle/docker-tor-browser/master/icon.png"
RUN install_app_icon.sh "${WATERFOX_ICON_URL}"

ARG DEBIAN_FRONTEND="noninteractive"
RUN apt-get update \
Expand All @@ -37,39 +29,30 @@ WORKDIR /app

# Download Tor Browser
RUN if [ "$TARGETARCH" = "amd64" ]; then \
curl -sSLO "${TOR_BINARY_X64}" && \
curl -sSLO "${TOR_SIGNATURE_X64}"; \
elif [ "$TARGETARCH" = "arm64" ]; then \
curl -sSLO "${TOR_BINARY_ARM64}" && \
curl -sSLO "${TOR_SIGNATURE_ARM64}"; \
curl -sSLO "${WATERFOX_BINARY}"
else \
echo "CRITICAL: Architecture '${TARGETARCH}' not in [amd64, arm64]" && \
exit 1; \
fi

# Verify GPG signature of the Tor Browser binary
RUN if [ "$TARGETARCH" = "amd64" ]; then \
curl -sSL "${TOR_GPG_KEY_X64}" | gpg --import - && \
gpg --output ./tor.keyring --export "${TOR_FINGERPRINT_X64}" && \
gpgv --keyring ./tor.keyring "${TOR_SIGNATURE_X64##*/}" "${TOR_BINARY_X64##*/}"; \
elif [ "$TARGETARCH" = "arm64" ]; then \
curl -sSL "${TOR_GPG_KEY_ARM64}" | gpg --import - && \
gpg --output ./tor.keyring --export "${TOR_FINGERPRINT_ARM64}" && \
gpgv --keyring ./tor.keyring "${TOR_SIGNATURE_ARM64##*/}" "${TOR_BINARY_ARM64##*/}"; \
curl -fsSL "${ WATERFOX_GPG_KEY}" | sudo gpg --dearmor | sudo tee /etc/apt/trusted.gpg.d/home_hawkeye116477_waterfox.gpg > /dev/null gpg --import - && \
curl -fsSL https://download.opensuse.org/repositories/home:hawkeye116477:waterfox/xUbuntu_22.04/Release.key |
echo 'deb http://download.opensuse.org/repositories/home:/hawkeye116477:/waterfox/xUbuntu_22.04/ /' | sudo tee /etc/apt/sources.list.d/home:hawkeye116477:waterfox.list
# automatic; passed in by Docker buildx

else \
echo "CRITICAL: Architecture '${TARGETARCH}' not in [amd64, arm64]" && \
exit 1; \
fi

# Install Tor Browser
RUN if [ "$TARGETARCH" = "amd64" ]; then \
tar --strip 1 -xvJf "${TOR_BINARY_X64##*/}" && \
chown -R "${USER_ID}":"${GROUP_ID}" /app && \
rm "${TOR_BINARY_X64##*/}" "${TOR_SIGNATURE_X64##*/}"; \
elif [ "$TARGETARCH" = "arm64" ]; then \
tar --strip 1 -xvJf "${TOR_BINARY_ARM64##*/}" && \
tar --strip 1 -xf "${WATERFOX_BINARY##*/}" && \
chown -R "${USER_ID}":"${GROUP_ID}" /app && \
rm "${TOR_BINARY_ARM64##*/}" "${TOR_SIGNATURE_ARM64##*/}"; \
rm "${WATERFOX_BINARY##*/}" \
elif [ "$TARGETARCH" = "arm64" ]; then \
else \
echo "CRITICAL: Architecture '${TARGETARCH}' not in [amd64, arm64]" && \
exit 1; \
Expand All @@ -78,7 +61,7 @@ RUN if [ "$TARGETARCH" = "amd64" ]; then \
### Final image
FROM jlesage/baseimage-gui:ubuntu-22.04-v4

ENV APP_NAME="Tor Browser"
ENV APP_NAME= "Waterfox Browser"

ENV show_output=1

Expand Down
102 changes: 97 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,32 @@
# Tor browser
# Tor
<p align="center">
<img width="300px" src="https://upload.wikimedia.org/wikipedia/commons/8/8f/Tor_project_logo_hq.png">
</p

# Table of Contents

<details><summary>Docker</summary>

- [Docker Compose Script](#Docker-Compose-Script)
- [Docker Container Commands](#Docker-Container-Commands)
- [Docker Installation](#How-to-install-Docker)

</details>

<details><summary>Configuration</summary>

- [Platform configuration](#Platform-configuration)
- [Browser configuration](#Browser-configuration)

</details>

<details><summary>Others</summary>

- [Volumes](#Volumes)
- [Port](#Port)
- [Issues And limitations](#Issues-And-limitations)

</details>

![](https://github.com/DomiStyle/docker-tor-browser/raw/master/screenshot.png)
*Tor browser running inside of Firefox*
Expand All @@ -13,7 +41,7 @@ Both amd64 and arm64 container runtimes are supported, but only the amd64 image

# Usage

See the docker-compose [here](https://github.com/DomiStyle/docker-tor-browser/blob/master/docker-compose.yml) or use this command:
See the docker-compose [here](https://github.com/DomiStyle/docker-tor-browser/blob/master/docker-compose.yml) or use this command

docker run -d -p 5800:5800 domistyle/tor-browser

Expand Down Expand Up @@ -45,14 +73,78 @@ cp mozilla.cfg.template mozilla.cfg
## Volumes

It is not recommended to add persistent volumes to your Tor Browser. We do not support any issues that arise from persistent volumes.
# Docker Compose Script
```yaml
version: '3.9'

services:
tor:
image: domistyle/tor-browser
container_name: tor
restart: unless-stopped
ports:
- 5800:5800
- 5900:5900
environment:
DISPLAY_WIDTH: 1920
DISPLAY_HEIGHT: 1080
KEEP_APP_RUNNING: 1
TZ: Europe/Vienna
```

# Docker Container Commands
To install tor browser using docker compose, copy and paste the command in your terminal
```bash
docker compose up
```
To stop the docker container do
```bash
docker stop tor
```
To start the container again, put the following command below and paste it in your terminal
```bash
docker start tor
```
To remove the container you can do
```bash
docker compose down
```
or you can do this
```
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please include the bash syntax highlighting here for consistency

docker rm tor
```
# How to install Docker
First update all your packages by doing
```bash
sudo apt update
```
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please include the bash syntax highlighting here for consistency

After you update all your packages then it is time to install docker.io by doing
```bash
sudo apt install -y docker.io
```
To add systemctl to docker do this
```bash
sudo systemctl enable docker --now
```
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please include the bash syntax highlighting here for consistency

To verify that you docker put the following command below
```bash
docker
```
To use docker without doing sudo every time do this
```bash
sudo usermod -aG docker $USER
```


## Ports
## Port

| Port | Description |
|------------|----------------------------------------------|
| `5800` | Provides a web interface to access the Tor browser |
| `5900` | Provides direct access to the VNC server |
| `5900` | Provides direct access to the NoVNC server |

## Issues & limitations
## Issues And limitations

* shm_size might need to be set to 2GB or more if you experience crashes
### Github user who updated this markdown:
[GitXpresso](https://github.com/GitXpresso)
3 changes: 2 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ version: '3.9'
services:
tor:
image: domistyle/tor-browser
restart: always
container_name: tor
restart: unless-stopped
ports:
- 5800:5800
- 5900:5900
Expand Down
50 changes: 50 additions & 0 deletions links/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
# /repositories/home:/hawkeye116477:/waterfox/xUbuntu_24.10 - openSUSE Download
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please remove this file from the PR, it is not relevant to this project


> https://download.opensuse.org/repositories/home:/hawkeye116477:/waterfox/xUbuntu_24.10

/repositories/home:/hawkeye116477:/waterfox/xUbuntu\_24.10 - openSUSE Download
===============

[![Image 3: openSUSE icon](https://static.opensuse.org/favicon.svg) Download](https://download.opensuse.org/)

* [Shortcuts](https://download.opensuse.org/repositories/home:/hawkeye116477:/waterfox/xUbuntu_24.10#)

[debug](https://download.opensuse.org/debug/) [distribution](https://download.opensuse.org/distribution/) [factory](https://download.opensuse.org/factory/) [ports](https://download.opensuse.org/ports/) [repositories](https://download.opensuse.org/repositories/) [source](https://download.opensuse.org/source/) [tumbleweed](https://download.opensuse.org/tumbleweed/) [update](https://download.opensuse.org/update/)


* [![Image 4: openSUSE logo](https://download.opensuse.org/asset/f8027e92e2/logo.svg) MirrorCache](https://download.opensuse.org/repositories/home:/hawkeye116477:/waterfox/xUbuntu_24.10#)

[Mirrors](https://download.opensuse.org/app/server) [Packages](https://download.opensuse.org/app/package) [Projects](https://download.opensuse.org/app/project) [Efficiency](https://download.opensuse.org/app/efficiency) [Statistics](https://download.opensuse.org/rest/stat)

### User menu

[Log in](https://download.opensuse.org/login)

* [Reports](https://download.opensuse.org/repositories/home:/hawkeye116477:/waterfox/xUbuntu_24.10#)
* [All Mirrors](https://download.opensuse.org/report/mirrors)
* [15.4 Mirrors](https://download.opensuse.org/report/mirrors/154)
* [15.5 Mirrors](https://download.opensuse.org/report/mirrors/155)
* [TW Mirrors](https://download.opensuse.org/report/mirrors/tumbleweed)
* [Build Service Mirrors](https://download.opensuse.org/report/mirrors/repositories)
* [Downloads/project](https://download.opensuse.org/report/download?group=project)
* [Downloads/mirror](https://download.opensuse.org/report/download?group=mirror)
* [Downloads/OS](https://download.opensuse.org/report/download?group=os)
* [Downloads/country](https://download.opensuse.org/report/download?group=country)
* [Downloads/arch](https://download.opensuse.org/report/download?group=arch)
* [Downloads/type](https://download.opensuse.org/report/download?group=type)

1. [^](https://download.opensuse.org/)
2. [repositories](https://download.opensuse.org/repositories/)
3. [home:](https://download.opensuse.org/repositories/home:/)
4. [hawkeye116477:](https://download.opensuse.org/repositories/home:/hawkeye116477:/)
5. [waterfox](https://download.opensuse.org/repositories/home:/hawkeye116477:/waterfox/)
6. [xUbuntu\_24.10](https://download.opensuse.org/app/folder/10389792)

| Name | Last Modified | Size |
| --- | --- | --- |

DB was [synched](https://download.opensuse.org/app/folder/10389792) : 2024-12-13T18:36:17

© 2021-2024 SUSE LLC., openSUSE contributors

[Legal notice](https://en.opensuse.org/Imprint) [Source code](https://github.com/openSUSE/MirrorCache) [Report issue](https://github.com/openSUSE/MirrorCache/issues/new) MirrorCache 1.089