Fără Descriere

dependabot[bot] aeb1dd9d4b Bump docker/setup-qemu-action from 2.0.0 to 2.1.0 (#25) 2 ani în urmă
.github aeb1dd9d4b Bump docker/setup-qemu-action from 2.0.0 to 2.1.0 (#25) 2 ani în urmă
CHANGELOG.md 39fe705b3d release v0.2.1 3 ani în urmă
Dockerfile ce133c89ec Bump debian from 11.4-slim to 11.5-slim (#24) 2 ani în urmă
Makefile f7360b84cf added labels org.opencontainers.image.title, .source & .revision; added makefile to support image building & tagging 3 ani în urmă
README.md b3af2669d0 readme: simplify instructions by recommending same launch command for both podman & docker 3 ani în urmă
docker-compose.yml 362e807d70 docker-compose: run init as pid 1 to safely kill child processes 3 ani în urmă

README.md

Brave Browser Container Image 🐳

Setup

In the following instructions, podman may be replaced with sudo docker.

Step 1: Select or Build Image

Perform one of the following steps:

  • $ git clone https://github.com/fphammerle/docker-brave-browser
    $ cd docker-brave-browser
    $ podman build -t [IMAGE_NAME] .
    
  • Select a pre-built image at https://hub.docker.com/r/fphammerle/brave-browser/tags
    (e.g., docker.io/fphammerle/brave-browser:0.2.0-browser1.22.71-amd64)

Step 2: Start Dedicated X Server

Choose some arbitrary [DISPLAY_NUMBER] and run:

$ Xephyr -resizeable :[DISPLAY_NUMBER]
# for example:
$ Xephyr -resizeable :1

Alternative: Adapt the access rights of your main X server
(cave: xhost + is horribly insecure)

Step 3: Launch Container

$ podman run --name brave_browser --rm --init \
    -e DISPLAY=:[DISPLAY_NUMBER] -v /tmp/.X11-unix:/tmp/.X11-unix \
    -v brave_browser_home:/home/browser --shm-size 1GB \
    --read-only --tmpfs /tmp:size=8k \
    --cap-drop ALL --security-opt no-new-privileges \
    [IMAGE_NAME]

Add --tmpfs /tmp:size=8k when using docker.