Open aebgit opened 9 months ago
Hello Andreas,
thanks for the feedback. Regarding your first point, compose is being integrated into docker as a CLI plugin and therefore the command changed from docker-compose
to docker compose
(see for example https://stackoverflow.com/a/66516826/12661819).
I am not sure about the problem with PyYaML. I currently do not have the time to look into it, but I guess you can change the Dockerfile
to copy the local files instead of cloning the repo (now that I see that, its weird that I did that in the first place).
Due to the current directory structure, I guess you have to add the context:
prop under build:
in docker-compose.yaml
, so it would look something like this
...
build:
context: ../
dockerfile: ./docker/Dockerfile
...
and then change all local paths in the Dockerfile accordingly. Then you should be able to change
RUN git clone https://github.com/dominikberse/homeassistant-bluetooth-mesh.git .
RUN git checkout master
to
COPY . .
which will copy your local files instead of cloning the repo.
You will probably have to adjust some of this, I just wrote it down here without further tests. But it's a good starting point hopefully.
Good luck, Dominik
Hi there, I fixed this by changing the pip install line in the Dockerfile:
RUN pip3 install --upgrade pip && pip3 install "cython<3.0.0" wheel && pip install "pyyaml==6.0" --no-build-isolation && pip3 install -r requirements.txt
Then remove cython from the requirements.txt.
When installing i noticed two issues:
docker compose build
throwsdocker: 'compose' is not a docker command.
, so I assume you meantdocker-compose build
insteaddocker-compose build
from inside~/homeassistant-bluetooth-mesh/docker
, this fails with the error below:I googled around and this seems to be a known problem with PyYAML==6.0. However I couldn't solve it by redirecting to another version, because it seems docker-compose uses the
requirements.txt
from your Github-repo and not my local file.Looking forward for any advice!
BR Andreas