thc-hydra icon indicating copy to clipboard operation
thc-hydra copied to clipboard

Dockerfile Error. Cannot build hydra from dockerfile

Open hoangkm13 opened this issue 1 year ago • 6 comments

I have implemented your docker file example https://github.com/vanhauser-thc/thc-hydra/blob/master/Dockerfile and get this error :

Step 1/14 : FROM debian:buster-slim ---> 96297d782f0a Step 2/14 : ARG HYDRA_VERSION="github" ---> Using cache ---> 31c6dbe520ac Step 3/14 : LABEL org.opencontainers.image.url="https://github.com/vanhauser-thc/thc-hydra" org.opencontainers.image.source="https://github.com/vanhauser-thc/thc-hydra" org.opencontainers.image.version="$HYDRA_VERSION" org.opencontainers.image.vendor="vanhauser-thc" org.opencontainers.image.title="hydra" org.opencontainers.image.licenses="GNU AFFERO GENERAL PUBLIC LICENSE" ---> Using cache ---> 8efc088d8ce6 Step 4/14 : COPY . /src ---> 82ed638f1654 Step 5/14 : RUN set -x && apt-get update && apt-get -y install default-libmysqlclient-dev libgpg-error-dev libgcrypt-dev libpcre3-dev libidn11-dev libssh-dev libssl-dev make curl gcc 1>/dev/null && c_rehash && cd /src && ./configure 1>/dev/null && make 1>/dev/null && make install && apt-get purge -y make gcc libgpg-error-dev libgcrypt-dev && apt-get autoremove -y && rm -rf /var/lib/apt/lists/* && hydra -h || error_code=$? && if [ ! "${error_code}" -eq 255 ]; then echo "Wrong exit code for 'hydra help' command"; exit 1; fi && echo 'hydra:x:10001:10001::/tmp:/sbin/nologin' > /etc/passwd && echo 'hydra:x:10001:' > /etc/group ---> Running in 1dc45c5b01f2

  • apt-get update Get:1 http://deb.debian.org/debian buster InRelease [122 kB] Get:2 http://deb.debian.org/debian-security buster/updates InRelease [34.8 kB] Get:3 http://deb.debian.org/debian buster-updates InRelease [56.6 kB] Get:4 http://deb.debian.org/debian buster/main amd64 Packages [7909 kB] Get:5 http://deb.debian.org/debian-security buster/updates/main amd64 Packages [369 kB] Get:6 http://deb.debian.org/debian buster-updates/main amd64 Packages [8788 B] Fetched 8500 kB in 3s (3128 kB/s) Reading package lists...
  • apt-get -y install default-libmysqlclient-dev libgpg-error-dev libgcrypt-dev libpcre3-dev libidn11-dev libssh-dev libssl-dev make curl gcc debconf: delaying package configuration, since apt-utils is not installed
  • c_rehash Doing /usr/lib/ssl/certs WARNING: Skipping duplicate certificate ca-certificates.crt WARNING: Skipping duplicate certificate ca-certificates.crt
  • cd /src
  • ./configure /bin/sh: 1: ./configure: not found
  • error_code=127
  • [ ! 127 -eq 255 ]
  • echo Wrong exit code for 'hydra help' command Wrong exit code for 'hydra help' command
  • exit 1 The command '/bin/sh -c set -x && apt-get update && apt-get -y install default-libmysqlclient-dev libgpg-error-dev libgcrypt-dev libpcre3-dev libidn11-dev libssh-dev libssl-dev make curl gcc 1>/dev/null && c_rehash && cd /src && ./configure 1>/dev/null && make 1>/dev/null && make install && apt-get purge -y make gcc libgpg-error-dev libgcrypt-dev && apt-get autoremove -y && rm -rf /var/lib/apt/lists/* && hydra -h || error_code=$? && if [ ! "${error_code}" -eq 255 ]; then echo "Wrong exit code for 'hydra help' command"; exit 1; fi && echo 'hydra:x:10001:10001::/tmp:/sbin/nologin' > /etc/passwd && echo 'hydra:x:10001:' > /etc/group' returned a non-zero code: 1

I want to pre-install hydra in docker container. Please help

hoangkm13 avatar Oct 13 '22 14:10 hoangkm13