mirror of
https://git.myvelabs.com/novnc/archlinux.git
synced 2025-12-17 21:36:20 +00:00
Add torbrowser image
This commit is contained in:
parent
158473882f
commit
2b9e731a00
5 changed files with 90 additions and 0 deletions
8
torbrowser/.env
Normal file
8
torbrowser/.env
Normal file
|
|
@ -0,0 +1,8 @@
|
||||||
|
# MyVNC Tor Browser service
|
||||||
|
MYVNC_TORBROWSER_PORT=
|
||||||
|
MYVNC_TORBROWSER_VNCPASS=
|
||||||
|
|
||||||
|
MYVNC_TORBROWSER_CUSTOM_TITLE=
|
||||||
|
MYVNC_TORBROWSER_PROXYPATH=
|
||||||
|
|
||||||
|
MYVNC_TORBROWSER_VNCSHARING=
|
||||||
10
torbrowser/20-torbrowser.sh
Executable file
10
torbrowser/20-torbrowser.sh
Executable file
|
|
@ -0,0 +1,10 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
# i3/torbrowser startup
|
||||||
|
install /dev/stdin ~/.config/i3/startapp.sh <<- startup
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
# Run torbrowser
|
||||||
|
while true
|
||||||
|
do
|
||||||
|
/usr/bin/torbrowser-launcher
|
||||||
|
done
|
||||||
|
startup
|
||||||
21
torbrowser/Dockerfile
Normal file
21
torbrowser/Dockerfile
Normal file
|
|
@ -0,0 +1,21 @@
|
||||||
|
# syntax = docker/dockerfile:1
|
||||||
|
FROM myvnc/arch/base:i3
|
||||||
|
USER root
|
||||||
|
|
||||||
|
# Build ARG: use "root" for debugging
|
||||||
|
ARG debug
|
||||||
|
|
||||||
|
# Install packages
|
||||||
|
RUN --mount=type=cache,sharing=locked,target=/var/cache/pacman \
|
||||||
|
pacman -Syu --ask 4 --needed \
|
||||||
|
torbrowser-launcher \
|
||||||
|
&& pacman -Scc --ask 4
|
||||||
|
|
||||||
|
# Tigervnc
|
||||||
|
COPY *.sh /app/init.d/
|
||||||
|
|
||||||
|
# Default environment
|
||||||
|
USER ${debug:-user}
|
||||||
|
|
||||||
|
# Install torbrowser
|
||||||
|
RUN /usr/bin/torbrowser-launcher
|
||||||
24
torbrowser/docker-compose.yaml
Normal file
24
torbrowser/docker-compose.yaml
Normal file
|
|
@ -0,0 +1,24 @@
|
||||||
|
services:
|
||||||
|
torbrowser:
|
||||||
|
image: myvnc/arch/torbrowser
|
||||||
|
container_name: torbrowser
|
||||||
|
restart: unless-stopped
|
||||||
|
build: .
|
||||||
|
# shm_size: 2gb
|
||||||
|
# security_opt:
|
||||||
|
# - seccomp:unconfined
|
||||||
|
ports:
|
||||||
|
- ${MYVNC_TORBROWSER_PORT}:6900
|
||||||
|
environment:
|
||||||
|
MYVNC_VNCPASS: ${MYVNC_TORBROWSER_VNCPASS}
|
||||||
|
|
||||||
|
MYVNC_CUSTOM_TITLE: ${MYVNC_TORBROWSER_CUSTOM_TITLE}
|
||||||
|
MYVNC_PROXYPATH: ${MYVNC_TORBROWSER_PROXYPATH}
|
||||||
|
|
||||||
|
MYVNC_VNCSHARING: ${MYVNC_TORBROWSER_VNCSHARING}
|
||||||
|
networks:
|
||||||
|
- torbrowser
|
||||||
|
|
||||||
|
networks:
|
||||||
|
torbrowser:
|
||||||
|
external: false
|
||||||
27
torbrowser/up
Executable file
27
torbrowser/up
Executable file
|
|
@ -0,0 +1,27 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
# Docker build
|
||||||
|
# Optional buildtag
|
||||||
|
# DOCKER_BUILDKIT=1 \
|
||||||
|
# docker build . \
|
||||||
|
# --build-arg debug=${debug:-""} \
|
||||||
|
# --tag ${buildtag:-myvnc/novnc}
|
||||||
|
# Grab options
|
||||||
|
while [ ${1} ]
|
||||||
|
do
|
||||||
|
case ${1} in
|
||||||
|
-b | --build | b | build )
|
||||||
|
build="--build"
|
||||||
|
;;
|
||||||
|
-d | --detach | d | detach )
|
||||||
|
detach="--detach"
|
||||||
|
;;
|
||||||
|
bd | db )
|
||||||
|
build="--build"
|
||||||
|
detach="--detach"
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
shift
|
||||||
|
done
|
||||||
|
|
||||||
|
# Compose up
|
||||||
|
docker compose up ${build} ${detach}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue