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

Getting docker to work? #517

Open
Trentan opened this issue May 29, 2024 · 3 comments
Open

Getting docker to work? #517

Trentan opened this issue May 29, 2024 · 3 comments

Comments

@Trentan
Copy link

Trentan commented May 29, 2024

Hi there - all but working (docker install) getting error:

Trying this step from cmd prompt:
docker run --net=host -v /path/to/your/conf:/opt/googolplex-theater/conf ghcr.io/yuzawa-san/googolplex-theater:VERSION

rebranded for my machine- (eg trying to point the C:Temp drive)

C:\Temp>docker run --net=host -v C:/temp yuzawa/googolplex-theater:latest

Returns error:
ParseException: cast-config file does not exist: /opt/googolplex-theater/src/dist/conf/cast_config.json
usage: googolplex-theater [-a ] [-c ] [-h] [-i
<IFACE_NAME_OR_IP>] [-p <PORT_NUM>]
-a,--app-id cast application ID
-c,--cast-config cast config json file
-h,--help show usage
-i,--interface <IFACE_NAME_OR_IP> network interface name or IP address
to use for service discovery
-p,--port <PORT_NUM> server port number

I can see the missing file created in the docker volumes -
image - but no luck!

Any help greatly appreciated - thank you.

@yuzawa-san
Copy link
Owner

i think the volume arg needs to take the form /path/on/local/volume:/opt/googolplex-theater/conf but windows uses that : so that may throw it off. https://stackoverflow.com/questions/35315996/how-do-i-mount-a-docker-volume-while-using-a-windows-host. so maybe something like this:

docker run --net=host -v /c/temp:/opt/googolplex-theater/conf yuzawa/googolplex-theater:latest

i do not have a windows test environment, so maybe something is broken with the file path discovery within the app itself.

unrelated, but i put off version 2 of this project during the pandemic, but i think maybe given the increased interest i may start testing and preparing for a new release. NOTE: if/when that happens, the config is now a yaml instead of JSON, but no change is needed on your end right now.

@Trentan
Copy link
Author

Trentan commented May 29, 2024

Thanks for your help I'll give it a go and let you know (and if I can't get it to work for windows will go to Linux or something else, or look at how the volume is mounted in the code).

I can't believe Google have not done something themselves for this, your concept and code will be so convenient.

Thank you.

@Trentan
Copy link
Author

Trentan commented May 30, 2024

Yeah tried that and a few other combos, still no luck - I don't think mounting the file store correctly (where the volume is mapped). Need someone who is a windows expert to get it to work - Looks like i'll invest in a Raspberry Pi. Mind you, I checked and google have allowed streaming from multiple tabs now to separate devices (still can't stream same content to both! need separate tabs!)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants