gologinapp / docker

Docker container for Orbita
4 stars 3 forks source link

Can't run orbita browser using Docker #3

Open timakovi opened 11 months ago

timakovi commented 11 months ago

I builded Dockerfile using this code: docker build . -t orbita-docker. And build successfully finished. before that added some rows:

RUN mkdir -p /home/orbita/.gologin/extensions/chrome-extensions
RUN mkdir -p /home/orbita/.gologin/extensions/user-extensions && chown -R orbita:orbita /home/orbita/.gologin

and download cambria_math.ttf to fonts dir.

After that I tried run docker using this code: docker run -e SCREEN_WIDTH=1920 -e SCREEN_HEIGHT=1080 -e PROFILE_ID=XXX -e TOKEN=XXX --rm -ti -p 5901:5901 -p 3000:3000 --name orbita-browser orbita-docker:latest

stored passwd in file: /home/orbita/.vnc/passwd
Xlib:  extension "DPMS" missing on display ":0".

The VNC desktop is:      XXX:1
PORT=5901
nginx: [warn] the "user" directive makes sense only if the master process runs with super-user privileges, ignored in /etc/nginx/nginx.conf:1
{
  token: 'XXX',
  profile_id: 'XXX',
  remote_debugging_port: 3500,
  executablePath: '/usr/bin/orbita-browser/chrome',
  extra_params: [
    '--start-maximized',
    '--disable-dev-shm-usage',
    '--no-sandbox',
    '--no-zygote',
    '--window-position=0,0',
    '--window-size=1920,1080'
  ]
}
[
  '--remote-debugging-port=3500',
  '--user-data-dir=/tmp/gologin_profile_XXX',
  '--password-store=basic',
  '--tz=America/Phoenix',
  '--lang=en-US',
  '--font-masking-mode=3',
  '--proxy-server=http://XXX',
  '--host-resolver-rules="MAP * 0.0.0.0 , EXCLUDE XXX"',
  '--start-maximized',
  '--disable-dev-shm-usage',
  '--no-sandbox',
  '--no-zygote',
  '--window-position=0,0',
  '--window-size=1920,1080'
]
node:internal/process/promises:288
            triggerUncaughtException(err, true /* fromPromise */);
            ^

Error: connect ECONNREFUSED 127.0.0.1:3500
    at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1495:16) {
  errno: -111,
  code: 'ECONNREFUSED',
  syscall: 'connect',
  address: '127.0.0.1',
  port: 3500,
  attempts: 5
}

Node.js v18.17.0

Could you please help me fix these bugs and start browser using Docker?

robbedchunk commented 11 months ago

Try installing the lubuntu-desktop package until the devs fix the dockerfile

timakovi commented 11 months ago

Did you mean install lubuntu-desktop package at the Docker container, right?

robbedchunk commented 11 months ago

Yes

timakovi commented 11 months ago

Could you please provide example code for the Dockerfile what you mean?

C0RE1312 commented 7 months ago

When will the fix of the dockerfile be available?

kohoward commented 5 months ago

lubuntu-desktop increases the size of the docker image size quite substantially, is there another way?

bernatixer commented 4 months ago

Does someone have a working Dockerfile for this?

priya8goyal312 commented 3 months ago

You just need to replace the port number from 3500 to 3000 everywhere, and it will start working. Mine is working fine now.