Open aldobranti opened 6 months ago
Hello, sorry for late reply. The real error message is hiding inside the log file: 24.26 Fetching http://www.cpan.org/authors/id/C/CH/CHRISN/Net-SSLeay-1.92.tar.gz ... OK 24.42 Configuring Net-SSLeay-1.92 ... ! Configure failed for Net-SSLeay-1.92. See /root/.cpanm/work/1703241651.7/build.log for details. 25.00 ! Installing the dependencies failed: Module 'Net::SSLeay' is not installed
Could you repeat the docker build once more and check /root/.cpanm/work/1703241651.7/build.log in container ? Very likely there is no openssl library pre-installed (required by Net::SSLeay).
Cheers,
need to build a Ubuntu based container . Errors out in docker build ` => [internal] load build definition from UbuDockerfile 0.0s => => transferring dockerfile: 609B 0.0s => [internal] load .dockerignore 0.0s => => transferring context: 2B 0.0s => [internal] load metadata for docker.io/library/ubuntu:latest 0.8s => [auth] library/ubuntu:pull token for registry-1.docker.io 0.0s => CACHED [1/6] FROM docker.io/library/ubuntu@sha256:6042500cf4b44023ea1894effe7890666b0c5c7871ed83a97c36c76ae560bb9b 0.0s => [2/6] RUN APT-GET update && apt-get install -y perl cpanminus nano libdbd-sqlite3-perl 35.6s => [3/6] RUN CPANM -n JSON::MaybeXS 3.2s => [4/6] RUN CPANM -n Jq 8.3s => [5/6] RUN CPANM -n Math::Complex Math::StdDev 3.3s => [6/6] RUN APT-GET clean 0.2s => exporting to image 3.6s => => exporting layers 3.5s => => writing image sha256:eecbf6ba2ea0458540cbd00097415754b90831b3fbd9fb0d2905112f12aeebc8 0.0s => => naming to docker.io/library/hacs 0.0s pi@pi-vault:~/Docker/hacs $ grep run Dockerfile
docker run -v/home:/home --name hacs-develop -e HACS=/home/pi/.home-assistant --rm -it hacs bash
docker run -v/home:/home --restart unless-stopped --name hacs-tracker -e HACS=/home/pi/.home-assistant -d hacs
pi@pi-vault:~/Docker/hacs $ docker run -v/home:/home --name hacs-develop -e HACS=/home/pi/.home-assistant --rm -it hacs Can't locate JSON/JQ.pm in @INC (you may need to install the JSON::JQ module) (@INC contains: /etc/perl /usr/local/lib/aarch64-linux-gnu/perl/5.34.0 /usr/local/share/perl/5.34.0 /usr/lib/aarch64-linux-gnu/perl5/5.34 /usr/share/perl5 /usr/lib/aarch64-linux-gnu/perl-base /usr/lib/aarch64-linux-gnu/perl/5.34 /usr/share/perl/5.34 /usr/local/lib/site_perl) at /home/pi/hacs/hacs_rel.pl line 8. pi@pi-vault:~/Docker/hacs $ vi UbuDockerfile pi@pi-vault:~/Docker/hacs $ docker build -t hacs --network=host -f UbuDockerfile . [+] Building 31.8s (8/11) docker:default => [internal] load build definition from UbuDockerfile 0.0s => => transferring dockerfile: 612B 0.0s => [internal] load .dockerignore 0.0s => => transferring context: 2B 0.0s => [internal] load metadata for docker.io/library/ubuntu:latest 0.8s => [auth] library/ubuntu:pull token for registry-1.docker.io 0.0s => [1/7] FROM docker.io/library/ubuntu@sha256:6042500cf4b44023ea1894effe7890666b0c5c7871ed83a97c36c76ae560bb9b 0.0s => CACHED [2/7] RUN APT-GET update && apt-get install -y perl cpanminus nano libdbd-sqlite3-perl 0.0s => CACHED [3/7] RUN CPANM -n JSON::MaybeXS 0.0s => ERROR [4/7] RUN CPANM -n JSON::JQ 30.9s
Here is text of dockerfile `FROM ubuntu
docker build -t hacs --network=host .
RUN apt-get update && apt-get install -y perl cpanminus nano libdbd-sqlite3-perl
RUN cpanm -n Time::ParseDate
RUN cpanm -n JSON::MaybeXS RUN cpanm -n JSON::JQ RUN cpanm -n DBI DBD::SQLite RUN cpanm -n Math::Complex Math::StdDev
ENV HACS_DIR=${HACS_DIR:-/home/pi/hacs} ENV HACS=${HACS:-/config} ENV PATH=$PATH:/usr/bin
RUN apt-get clean CMD ["perl" , "/home/pi/hacs/hacs_rel.pl" ]`
Any suggestions to progress would be much appreciated and thanks for creating JQ -- successfully used in other projects