psa_car_controller icon indicating copy to clipboard operation
psa_car_controller copied to clipboard

manual update docker image

Open flash4it opened this issue 2 years ago • 4 comments

Good morning, I wanted information how you can manually update the docker 3.0.4 image to the latest commit?

flash4it avatar Sep 08 '22 07:09 flash4it

I second this question

Matssa56 avatar Sep 13 '22 11:09 Matssa56

I would like to know the proper way to do this, too.

But if it helps anyone, I was able to build the docker image after modifying the dockerfile. Here is my modified version: Dockerfile

hurzhurz avatar Sep 14 '22 16:09 hurzhurz

Thank you @hurzhurz , I had problems building the docker image too and your changes to the Dockerfile fixed my issue. Perhaps you can open a PR with that? The current Dockerfile seems broken, it tires to copy the whl without building it first.

It's probably possible to build the whl on the host system and then build the docker image but in my opinion yours is the correct approach.

sguerrini97 avatar Sep 24 '22 09:09 sguerrini97

I would like to know the proper way to do this, too.

But if it helps anyone, I was able to build the docker image after modifying the dockerfile. Here is my modified version: Dockerfile

Thanks for the dockerfile, I used it on my side and it works fine

However I keep getting an issue : when I reboot my server, the config doesn't seem to load, I need to add my car every time. I checked and apparently the /config is correctly made on my VM and also reachable from the docker container. However something strange, the config is in root instead of my user. For me it'es because the docker service is launched as root, therefore all config documents aremade as root.

Is there any options to change so that it's persistent? just in case, what I did is build directly the docker image using your dockerfile with "sudo docker build ." without changing anything. I then launched the docker container with "docker compose up" since there is already a docker compose file there.

Thanks for your help!

Matssa56 avatar Oct 06 '22 07:10 Matssa56