GOATS2K / overpass

A self-hosted live video streaming platform with Discord authentication, auto-recording and more!
MIT License
347 stars 15 forks source link

Docker image for linux/amd64? #34

Closed pxdn1 closed 2 years ago

pxdn1 commented 2 years ago

Hi, I was curious if it'd be possible to get a docker image built for linux/amd64?

I've been interested in running this project for a few days and finally got around to attempting to get it running only to find out Docker images intended for armv7 cannot be ran on amd64 platforms.

I'm not experienced with Docker by any means so maybe im missing something super obvious so im kind of stuck unless I attempt to build manually.

Thanks and I hope to see this project grow.

GOATS2K commented 2 years ago

Hey, thanks for stopping by.

I'll see if I can publish an amd64 build within the week. Otherwise, you can just build the image yourself using the example Docker Compose file.

After changing the file's extension from .example to .yml and tweaking the environment settings to match that of your IDs and keys, you can run docker-compose up, and Overpass should be running in a container. :)

Let me know if you have any other questions.

pxdn1 commented 2 years ago

I'll give it my best shot

Thank you again for taking the time to reply, appreciate it!

pxdn1 commented 2 years ago

Hmm, I seem to be running into the same issue another issue was running into in this report: https://github.com/GOATS2K/overpass/issues/27

ApplicationFrameHost_G8RmO7ZefZ

GOATS2K commented 2 years ago

Which version of Docker are you on?

As described in this comment, this version worked for me.

https://github.com/GOATS2K/overpass/issues/27#issuecomment-997210620

pxdn1 commented 2 years ago

I spun up a new server, upgraded to Ubuntu 21.04 and tried again this evening with the same result putty_Ua1oBu6sR7

GOATS2K commented 2 years ago

The following command worked for me.

sudo docker build . -f Dockerfile

Client: Docker Engine - Community
 Version:           20.10.10
 API version:       1.41
 Go version:        go1.16.9
 Git commit:        b485636
 Built:             Mon Oct 25 07:42:59 2021
 OS/Arch:           linux/amd64
 Context:           default
 Experimental:      true

Server: Docker Engine - Community
 Engine:
  Version:          20.10.10
  API version:      1.41 (minimum version 1.12)
  Go version:       go1.16.9
  Git commit:       e2f740d
  Built:            Mon Oct 25 07:41:08 2021
  OS/Arch:          linux/amd64
  Experimental:     false
 containerd:
  Version:          1.4.11
  GitCommit:        5b46e404f6b9f661a205e28d59c982d3634148f8
 runc:
  Version:          1.0.2
  GitCommit:        v1.0.2-0-g52b36a2
 docker-init:
  Version:          0.19.0
  GitCommit:        de40ad0

I have also pushed a linux/amd64 build, if you don't feel like building it yourself.

ilovefreesw commented 2 years ago

image

what else needs to be changed in the example docker file ?

I know HLS_PATH and REC_PATH needs to be set ,,, but what location should I set it to avoid build context error?

image

GOATS2K commented 2 years ago

HLS_PATH and REC_PATH are used internally by Overpass and shouldn't be changed.

In order to use Overpass you'll need to change the mounts to match that of your environment.

Did you try using the docker build command yet? That worked for me on my linux/amd64 system. I have also pushed an image to use, if you have issues building it yourself.

ilovefreesw commented 2 years ago

I have created these 3 folders in home ...so i have to replace their paths in docker-compose file ?

image

image

because i did and i got thesame error

GOATS2K commented 2 years ago

What command did you run to build the image?

On Wed, Jan 12, 2022, 09:07 Laxman @.***> wrote:

I have created these 3 folders in home ...so i have to replace their paths in docker-compose file ?

[image: image] https://user-images.githubusercontent.com/77317006/149097453-be225520-fe0e-4c0c-9fab-89f903fbe249.png

because i did and i got thesame error

— Reply to this email directly, view it on GitHub https://github.com/GOATS2K/overpass/issues/34#issuecomment-1010813438, or unsubscribe https://github.com/notifications/unsubscribe-auth/ANI5XUTZ5CVESRRZR7EM47LUVVAE7ANCNFSM5LEZLALQ . You are receiving this because you modified the open/close state.Message ID: @.***>

ilovefreesw commented 2 years ago

this time, docker build command

image

GOATS2K commented 2 years ago

What version of Docker are you using?

On Wed, Jan 12, 2022, 09:19 Laxman @.***> wrote:

this time, docker build command

[image: image] https://user-images.githubusercontent.com/77317006/149099326-3050d460-8a8c-43ef-a792-de796cfe857f.png

— Reply to this email directly, view it on GitHub https://github.com/GOATS2K/overpass/issues/34#issuecomment-1010822746, or unsubscribe https://github.com/notifications/unsubscribe-auth/ANI5XURERDZF45M7VYOJQITUVVBRBANCNFSM5LEZLALQ . You are receiving this because you modified the open/close state.Message ID: @.***>

ilovefreesw commented 2 years ago

image

it is 20.10 on Arch Linux

GOATS2K commented 2 years ago

Hmm, this is incredibly weird.

I'll see if I can update the Dockerfile today. For now, can you use the image I've posted to Docker Hub?

On Wed, Jan 12, 2022, 09:22 Laxman @.***> wrote:

[image: image] https://user-images.githubusercontent.com/77317006/149100089-819a2c3b-d691-47d4-8d58-f0aebbc242e3.png

it is 20.10 on Arch Linux

— Reply to this email directly, view it on GitHub https://github.com/GOATS2K/overpass/issues/34#issuecomment-1010825341, or unsubscribe https://github.com/notifications/unsubscribe-auth/ANI5XUTD6MMMFC355YEZLLLUVVB3RANCNFSM5LEZLALQ . You are receiving this because you modified the open/close state.Message ID: @.***>

ilovefreesw commented 2 years ago

Downloading image now ... but it is in prod mode already right? Can i run it locally ?

GOATS2K commented 2 years ago

Sure you can!

On Wed, Jan 12, 2022, 09:27 Laxman @.***> wrote:

Downloading image now ... but it is in prod mode already right? Can i run it locally ?

— Reply to this email directly, view it on GitHub https://github.com/GOATS2K/overpass/issues/34#issuecomment-1010830766, or unsubscribe https://github.com/notifications/unsubscribe-auth/ANI5XUWAA4ORNOWHRVHYB7DUVVCRBANCNFSM5LEZLALQ . You are receiving this because you modified the open/close state.Message ID: @.***>

ilovefreesw commented 2 years ago

Sorry if this sounds stupid but don't really know Docker; i can only follow clear instructions ,..... but I don't know what to next .... i have downloaded the image. What command should i run next. image

GOATS2K commented 2 years ago

https://github.com/GOATS2K/overpass/blob/master/docker-compose.example#L3

Change this line to image: goats2k/overpass and run sudo docker-compose up.

On Wed, Jan 12, 2022, 09:50 Laxman @.***> wrote:

Sorry if this sounds stupid but don't really know Docker; i can only follow clear instructions ,..... but I don't know what to next .... i have downloaded the image. What command should i run next. [image: image] https://user-images.githubusercontent.com/77317006/149115934-b4fa57ae-c914-49b7-97e3-290a39897ec1.png

— Reply to this email directly, view it on GitHub https://github.com/GOATS2K/overpass/issues/34#issuecomment-1010850415, or unsubscribe https://github.com/notifications/unsubscribe-auth/ANI5XUVR4RVACNEGYCOSBULUVVFFRANCNFSM5LEZLALQ . You are receiving this because you modified the open/close state.Message ID: @.***>

ilovefreesw commented 2 years ago

I have managed to run it. But OBS can't connect to the server.

image

image

image

image

GOATS2K commented 2 years ago

Please make a separate issue about this.