Page 1 of 1

need help with build

Posted: Tuesday 15 November 2022 21:24
by Gianni
Hello

as a try to build my own docker image i build my first domoticz
I followed this steps and i build fine
https://www.domoticz.com/wiki/Build_Dom ... rom_source
Now i got this files
10.10.20.214.png
10.10.20.214.png (16.85 KiB) Viewed 252 times
Now i need help, how do i make a image of it?
In the Folder build i run the dockerfile but i got a error

Code: Select all

 ---> 335a8bf32ab5
Step 7/13 : ADD https://github.com/Kitware/CMake/releases/download/v${CMAKE_VERSION}/cmake-${CMAKE_VERSION}.tar.gz .
ADD failed: failed to GET https://github.com/Kitware/CMake/releases/download/v/cmake-.tar.gz with status 404 Not Found: Not Found
So how do i get a image from my new build folder to use ?

Re: need help with build

Posted: Tuesday 15 November 2022 21:32
by kiddigital
Looks like the CMAKE_VERSION variable is empty/not set (correctly)

Docker fails downloading CMake (404 Not Found) because the download URL is missing the version at 2 places…

Re: need help with build

Posted: Tuesday 15 November 2022 22:14
by Gianni
thx

i just run the dockerfile generated in the build folder.
Now i just replaced the whole cmake section with this and it's looks better

Code: Select all

RUN wget -O- https://github.com/Kitware/CMake/releases/download/v3.25.0-rc4/cmake-3.25.0-rc4.tar.gz | tar xzv \
            && cd cmake-3.25.0-rc4 \
            && ./configure --prefix=/opt/cmake \
            && make \
            && make install \
            && cd ../
Now i got a returned a non-zero code: 2 on boost.
is this the way to build the image or do i need to use/write my own dockerfile?