2015-07-02 17:35:11 +02:00
|
|
|
#
|
|
|
|
# Dockerfile for hydra
|
|
|
|
#
|
|
|
|
|
|
|
|
FROM alpine
|
2017-09-17 05:01:37 +02:00
|
|
|
MAINTAINER EasyPi Software Foundation
|
2015-07-02 17:35:11 +02:00
|
|
|
|
2019-06-09 02:19:27 +02:00
|
|
|
ENV HYDRA_VERSION=9.0
|
|
|
|
ENV HYDRA_URL=https://github.com/vanhauser-thc/thc-hydra/archive/v$HYDRA_VERSION.tar.gz
|
2017-09-17 06:11:16 +02:00
|
|
|
|
2016-11-08 14:45:04 +02:00
|
|
|
RUN set -xe \
|
|
|
|
&& apk add --no-cache apr-dev \
|
|
|
|
apr-util-dev \
|
|
|
|
bash \
|
|
|
|
build-base \
|
|
|
|
curl \
|
|
|
|
jq \
|
|
|
|
libidn \
|
|
|
|
libidn-dev \
|
|
|
|
libpq \
|
|
|
|
libssh \
|
|
|
|
libssh-dev \
|
|
|
|
mariadb-dev \
|
2017-09-30 15:02:33 +02:00
|
|
|
mariadb-client-libs \
|
2016-11-08 14:45:04 +02:00
|
|
|
ncurses \
|
|
|
|
ncurses-dev \
|
|
|
|
parallel \
|
|
|
|
pcre \
|
|
|
|
pcre-dev \
|
|
|
|
postgresql-dev \
|
|
|
|
subversion-dev \
|
|
|
|
subversion-libs \
|
2017-09-17 06:11:16 +02:00
|
|
|
tar \
|
2015-07-02 17:35:11 +02:00
|
|
|
&& echo 'will cite' | parallel --bibtex \
|
|
|
|
&& mkdir src \
|
2015-07-02 17:38:40 +02:00
|
|
|
&& cd src \
|
2017-09-17 06:11:16 +02:00
|
|
|
&& curl -sSL $HYDRA_URL | tar xz --strip 1 \
|
2015-07-02 17:35:11 +02:00
|
|
|
&& ./configure --prefix=/usr \
|
|
|
|
&& make install \
|
|
|
|
&& cd .. \
|
|
|
|
&& rm -rf src \
|
2015-07-02 18:15:55 +02:00
|
|
|
&& apk del --purge apr-dev \
|
|
|
|
apr-util-dev \
|
|
|
|
build-base \
|
2015-07-02 18:06:55 +02:00
|
|
|
libidn-dev \
|
|
|
|
libssh-dev \
|
|
|
|
ncurses-dev \
|
|
|
|
mariadb-dev \
|
|
|
|
pcre-dev \
|
|
|
|
postgresql-dev \
|
2016-11-08 14:45:04 +02:00
|
|
|
subversion-dev
|
2015-07-02 17:35:11 +02:00
|
|
|
|
2019-06-09 02:19:27 +02:00
|
|
|
ENTRYPOINT ["bash"]
|