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

Issue using Dockerfile #205

Open
TonyBrobston opened this issue Aug 19, 2024 · 1 comment
Open

Issue using Dockerfile #205

TonyBrobston opened this issue Aug 19, 2024 · 1 comment

Comments

@TonyBrobston
Copy link

TonyBrobston commented Aug 19, 2024

Maybe @magicalyak can help weigh in.

I was previously using your docker image from docker hub, I tried swapping to the Dockerfile in this repo, any pointers on what I'm doing wrong here?

I have this repo cloned two directories up.

services:
  tesla_dashcam:
    #image: magicalyak/tesla_dashcam
    context:
        dockerfile: ../../tesla_dashcam/Dockerfile
    restart: unless-stopped
    environment:
    - TZ=America/Chicago
    volumes:
    - /RAID/Input:/root/Import
    - /RAID/Output:/root/Videos/Tesla_Dashcam
    command: '--swap --rear --delete_source --layout DIAMOND --quality HIGH --fps 33 --gpu_type nvidia --compression veryslow /root/Import'

When I run a docker compose up I get:

tesla_dashcam-1 | python3: can't open file '//tesla_dashcam/tesla_dashcam.py': [Errno 2] No such file or directory          
tesla_dashcam-1 exited with code 0
@magicalyak
Copy link
Contributor

magicalyak commented Aug 19, 2024

@TonyBrobston has this worked for you at all? I usually run the containers with an override and explore them if I see "can't open" messages. Something like
docker run --entrypoint /bin/bash -it
In this case you likely want (you can use this image or mine, I think they're the same) - modify below I just typed off top of my head add the Volume mapping though
docker run --entrypoint /bin/sh -it -v /RAID/Input:/root/Import -v /RAID/Output:/root/Videos/Tesla_Dashcam magicalyak/tesla_dashcam
and then poke around in there to see what happens.
Try running python3 to ensure it's there (it should be)
Try running python3 tesla_dashcam/tesla_dashcam.py
Check that path and directory and make sure it's there.

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