Open jgoldhammer opened 5 years ago
I can also confirm the problem.
Any kind of solution for this? I already tried downgrading all the way down 3.4
and still not working.
Works fine with v1.1.5
$ git clone https://github.com/trimstray/htrace.sh.git
$ cd htrace.sh/build
$ git co v1.1.5
$ ./build.sh
+++ dirname ./build.sh
++ cd ./..
++ pwd
+ ROOT_DIR=/home/frallain/Public/htrace.sh
+ cd /home/frallain/Public/htrace.sh
+ docker build -t htrace.sh -f build/Dockerfile .
Sending build context to Docker daemon 7.206MB
Step 1/32 : FROM golang:alpine AS golang
alpine: Pulling from library/golang
050382585609: Pull complete
0bb4ee3360d7: Pull complete
893f09c2afb0: Pull complete
db25f79b026e: Pull complete
4387e72e4ead: Pull complete
Digest: sha256:5a424a5e9cb71c2c4141c974c437b161b412e67c9a8da18264ae6d11b95cf19b
Status: Downloaded newer image for golang:alpine
---> 6b21b4c6e7a3
Step 2/32 : RUN apk update && apk add --no-cache git
---> Running in 4c340988709b
fetch http://dl-cdn.alpinelinux.org/alpine/v3.10/main/x86_64/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/v3.10/community/x86_64/APKINDEX.tar.gz
v3.10.0-48-g3965a0d64d [http://dl-cdn.alpinelinux.org/alpine/v3.10/main]
v3.10.0-43-ge7c8809914 [http://dl-cdn.alpinelinux.org/alpine/v3.10/community]
OK: 10327 distinct packages available
fetch http://dl-cdn.alpinelinux.org/alpine/v3.10/main/x86_64/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/v3.10/community/x86_64/APKINDEX.tar.gz
(1/5) Installing nghttp2-libs (1.38.0-r0)
(2/5) Installing libcurl (7.65.1-r0)
(3/5) Installing expat (2.2.7-r0)
(4/5) Installing pcre2 (10.33-r0)
(5/5) Installing git (2.22.0-r0)
Executing busybox-1.30.1-r2.trigger
OK: 21 MiB in 20 packages
Removing intermediate container 4c340988709b
---> 16abe35620b1
Step 3/32 : RUN go get github.com/ssllabs/ssllabs-scan
---> Running in 5013e0d31079
Removing intermediate container 5013e0d31079
---> 197190ad18d3
Step 4/32 : RUN go get github.com/maxmind/geoipupdate/cmd/geoipupdate
---> Running in 026c3cac964d
Removing intermediate container 026c3cac964d
---> 88bb3a3405c4
Step 5/32 : RUN go get github.com/subfinder/subfinder
---> Running in aa387cfa9c02
Removing intermediate container aa387cfa9c02
---> 1faa63e7c460
Step 6/32 : FROM drwetter/testssl.sh:stable AS testssl
stable: Pulling from drwetter/testssl.sh
e7c96db7181b: Pull complete
0de5be2bb9ef: Pull complete
1034ec4b7f4a: Pull complete
a25af8bcaa7e: Pull complete
6790f2286b97: Pull complete
a7dda0864a27: Pull complete
e1841102f0f7: Pull complete
cdc655adbd15: Pull complete
Digest: sha256:9ab1ca0440b09ee939aa878460164a5fdc1ea70d83b359500be610383823b7fe
Status: Downloaded newer image for drwetter/testssl.sh:stable
---> b0f30f50b30a
Step 7/32 : FROM alpine:3.9
3.9: Pulling from library/alpine
e7c96db7181b: Already exists
Digest: sha256:7746df395af22f04212cd25a92c1d6dbc5a06a0ca9579a229ef43008d4d1302a
Status: Downloaded newer image for alpine:3.9
---> 055936d39205
Step 8/32 : MAINTAINER trimstray "trimstray@gmail.com"
---> Running in 6556d38b1243
Removing intermediate container 6556d38b1243
---> 4fc95e06cd46
Step 9/32 : RUN apk add --no-cache bash bc bind-tools ca-certificates coreutils curl drill git gnupg ncurses openssl procps unzip wget jq libmaxminddb python py-pip rsync && rm -rf /var/cache/apk/*
---> Running in 53e43c302096
fetch http://dl-cdn.alpinelinux.org/alpine/v3.9/main/x86_64/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/v3.9/community/x86_64/APKINDEX.tar.gz
(1/65) Installing ncurses-terminfo-base (6.1_p20190105-r0)
(2/65) Installing ncurses-terminfo (6.1_p20190105-r0)
(3/65) Installing ncurses-libs (6.1_p20190105-r0)
(4/65) Installing readline (7.0.003-r1)
(5/65) Installing bash (4.4.19-r1)
Executing bash-4.4.19-r1.post-install
(6/65) Installing bc (1.07.1-r0)
(7/65) Installing libgcc (8.3.0-r0)
(8/65) Installing krb5-conf (1.0-r1)
(9/65) Installing libcom_err (1.44.5-r0)
(10/65) Installing keyutils-libs (1.6-r0)
(11/65) Installing libverto (0.3.0-r1)
(12/65) Installing krb5-libs (1.15.5-r0)
(13/65) Installing json-c (0.13.1-r0)
(14/65) Installing libxml2 (2.9.9-r1)
(15/65) Installing bind-libs (9.12.4_p2-r0)
(16/65) Installing bind-tools (9.12.4_p2-r0)
(17/65) Installing ca-certificates (20190108-r0)
(18/65) Installing libattr (2.4.47-r7)
(19/65) Installing libacl (2.2.52-r5)
(20/65) Installing coreutils (8.30-r0)
(21/65) Installing nghttp2-libs (1.35.1-r0)
(22/65) Installing libssh2 (1.8.2-r0)
(23/65) Installing libcurl (7.64.0-r2)
(24/65) Installing curl (7.64.0-r2)
(25/65) Installing ldns (1.7.0-r2)
(26/65) Installing drill (1.7.0-r2)
(27/65) Installing expat (2.2.7-r0)
(28/65) Installing pcre2 (10.32-r1)
(29/65) Installing git (2.20.1-r0)
(30/65) Installing libgpg-error (1.33-r0)
(31/65) Installing libassuan (2.5.1-r0)
(32/65) Installing libcap (2.26-r0)
(33/65) Installing pinentry (1.1.0-r0)
Executing pinentry-1.1.0-r0.post-install
(34/65) Installing libbz2 (1.0.6-r7)
(35/65) Installing libgcrypt (1.8.4-r0)
(36/65) Installing gmp (6.1.2-r1)
(37/65) Installing nettle (3.4.1-r0)
(38/65) Installing libffi (3.2.1-r6)
(39/65) Installing p11-kit (0.23.14-r0)
(40/65) Installing libtasn1 (4.13-r0)
(41/65) Installing libunistring (0.9.10-r0)
(42/65) Installing gnutls (3.6.7-r0)
(43/65) Installing libksba (1.3.5-r0)
(44/65) Installing db (5.3.28-r1)
(45/65) Installing libsasl (2.1.27-r1)
(46/65) Installing libldap (2.4.47-r2)
(47/65) Installing npth (1.6-r0)
(48/65) Installing sqlite-libs (3.28.0-r0)
(49/65) Installing gnupg (2.2.12-r0)
(50/65) Installing oniguruma (6.9.1-r0)
(51/65) Installing jq (1.6-r0)
(52/65) Installing libmaxminddb (1.3.2-r0)
(53/65) Installing ncurses (6.1_p20190105-r0)
(54/65) Installing openssl (1.1.1b-r1)
(55/65) Installing libintl (0.19.8.1-r4)
(56/65) Installing libproc (3.3.15-r0)
(57/65) Installing procps (3.3.15-r0)
(58/65) Installing gdbm (1.13-r1)
(59/65) Installing python2 (2.7.16-r1)
(60/65) Installing py-setuptools (40.6.3-r0)
(61/65) Installing py2-pip (18.1-r0)
(62/65) Installing popt (1.16-r7)
(63/65) Installing rsync (3.1.3-r1)
(64/65) Installing unzip (6.0-r4)
(65/65) Installing wget (1.20.3-r0)
Executing busybox-1.29.3-r10.trigger
Executing ca-certificates-20190108-r0.trigger
OK: 107 MiB in 79 packages
Removing intermediate container 53e43c302096
---> 0beed18f199b
Step 10/32 : RUN apk add --no-cache nmap nmap-nselibs nmap-scripts && rm -rf /var/cache/apk/*
---> Running in 6036b51ce145
fetch http://dl-cdn.alpinelinux.org/alpine/v3.9/main/x86_64/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/v3.9/community/x86_64/APKINDEX.tar.gz
(1/7) Installing lua5.3-libs (5.3.5-r2)
(2/7) Installing libpcap (1.9.0-r1)
(3/7) Installing pcre (8.42-r1)
(4/7) Installing libstdc++ (8.3.0-r0)
(5/7) Installing nmap (7.70-r3)
(6/7) Installing nmap-nselibs (7.70-r3)
(7/7) Installing nmap-scripts (7.70-r3)
Executing busybox-1.29.3-r10.trigger
OK: 133 MiB in 86 packages
Removing intermediate container 6036b51ce145
---> 3af428346636
Step 11/32 : RUN apk add --no-cache php php7-curl php7-xml php7-dom && rm -rf /var/cache/apk/*
---> Running in cc67c9e025c6
fetch http://dl-cdn.alpinelinux.org/alpine/v3.9/main/x86_64/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/v3.9/community/x86_64/APKINDEX.tar.gz
(1/6) Installing php7-common (7.2.19-r0)
(2/6) Installing libedit (20181209.3.1-r0)
(3/6) Installing php7 (7.2.19-r0)
(4/6) Installing php7-curl (7.2.19-r0)
(5/6) Installing php7-dom (7.2.19-r0)
(6/6) Installing php7-xml (7.2.19-r0)
Executing busybox-1.29.3-r10.trigger
OK: 138 MiB in 92 packages
Removing intermediate container cc67c9e025c6
---> cb2c43698465
Step 12/32 : RUN apk add composer && composer global require bramus/mixed-content-scan && ln -s /root/.composer/vendor/bramus/mixed-content-scan/bin/mixed-content-scan /usr/bin/mixed-content-scan
---> Running in 043322c27e9c
fetch http://dl-cdn.alpinelinux.org/alpine/v3.9/main/x86_64/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/v3.9/community/x86_64/APKINDEX.tar.gz
(1/6) Installing php7-phar (7.2.19-r0)
(2/6) Installing php7-json (7.2.19-r0)
(3/6) Installing php7-openssl (7.2.19-r0)
(4/6) Installing php7-mbstring (7.2.19-r0)
(5/6) Installing php7-iconv (7.2.19-r0)
(6/6) Installing composer (1.8.0-r1)
Executing busybox-1.29.3-r10.trigger
OK: 142 MiB in 98 packages
Changed current directory to /root/.composer
Using version ^2.9 for bramus/mixed-content-scan
./composer.json has been created
Loading composer repositories with package information
Updating dependencies (including require-dev)
Package operations: 6 installs, 0 updates, 0 removals
- Installing vanilla/garden-cli (v1.6.3): Downloading (100%)
- Installing bramus/ansi-php (3.0.2): Downloading (100%)
- Installing bramus/monolog-colored-line-formatter (2.0.3): Downloading (100%)
- Installing psr/log (1.1.0): Downloading (100%)
- Installing monolog/monolog (1.24.0): Downloading (100%)
- Installing bramus/mixed-content-scan (2.9): Downloading (100%)
monolog/monolog suggests installing graylog2/gelf-php (Allow sending log messages to a GrayLog2 server)
monolog/monolog suggests installing sentry/sentry (Allow sending log messages to a Sentry server)
monolog/monolog suggests installing doctrine/couchdb (Allow sending log messages to a CouchDB server)
monolog/monolog suggests installing ruflin/elastica (Allow sending log messages to an Elastic Search server)
monolog/monolog suggests installing php-amqplib/php-amqplib (Allow sending log messages to an AMQP server using php-amqplib)
monolog/monolog suggests installing ext-amqp (Allow sending log messages to an AMQP server (1.0+ required))
monolog/monolog suggests installing ext-mongo (Allow sending log messages to a MongoDB server)
monolog/monolog suggests installing mongodb/mongodb (Allow sending log messages to a MongoDB server via PHP Driver)
monolog/monolog suggests installing aws/aws-sdk-php (Allow sending log messages to AWS services like DynamoDB)
monolog/monolog suggests installing rollbar/rollbar (Allow sending log messages to Rollbar)
monolog/monolog suggests installing php-console/php-console (Allow sending log messages to Google Chrome)
Writing lock file
Generating autoload files
Removing intermediate container 043322c27e9c
---> c186f2ccb6d6
Step 13/32 : RUN apk add --no-cache nodejs npm && rm -rf /var/cache/apk/* && npm config set unsafe-perm true && npm install -g observatory-cli
---> Running in 41cca7b356cd
fetch http://dl-cdn.alpinelinux.org/alpine/v3.9/main/x86_64/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/v3.9/community/x86_64/APKINDEX.tar.gz
(1/5) Installing c-ares (1.15.0-r0)
(2/5) Installing http-parser (2.8.1-r0)
(3/5) Installing libuv (1.23.2-r0)
(4/5) Installing nodejs (10.14.2-r0)
(5/5) Installing npm (10.14.2-r0)
Executing busybox-1.29.3-r10.trigger
OK: 190 MiB in 103 packages
/usr/bin/observatory -> /usr/lib/node_modules/observatory-cli/index.js
+ observatory-cli@0.7.1
added 65 packages from 69 contributors in 5.653s
Removing intermediate container 41cca7b356cd
---> 9e7e435acc29
Step 14/32 : RUN git clone https://github.com/ekultek/whatwaf.git /opt/whatwaf && cd /opt/whatwaf && chmod +x whatwaf.py && pip install -r requirements.txt && ./setup.sh install && cp ~/.whatwaf/.install/bin/whatwaf /usr/bin/whatwaf && ./setup.sh uninstall
---> Running in fc04c52941c2
Cloning into '/opt/whatwaf'...
Collecting beautifulsoup4==4.6.3 (from -r requirements.txt (line 1))
Downloading https://files.pythonhosted.org/packages/f8/c7/741c97d7366f4779ca73d244904978b43a81fd37d85fcf05ad19d472c1ce/beautifulsoup4-4.6.3-py2-none-any.whl (90kB)
Collecting requests==2.21.0 (from -r requirements.txt (line 2))
Downloading https://files.pythonhosted.org/packages/7d/e3/20f3d364d6c8e5d2353c72a67778eb189176f08e873c9900e10c0287b84b/requests-2.21.0-py2.py3-none-any.whl (57kB)
Collecting chardet<3.1.0,>=3.0.2 (from requests==2.21.0->-r requirements.txt (line 2))
Downloading https://files.pythonhosted.org/packages/bc/a9/01ffebfb562e4274b6487b4bb1ddec7ca55ec7510b22e4c51f14098443b8/chardet-3.0.4-py2.py3-none-any.whl (133kB)
Collecting idna<2.9,>=2.5 (from requests==2.21.0->-r requirements.txt (line 2))
Downloading https://files.pythonhosted.org/packages/14/2c/cd551d81dbe15200be1cf41cd03869a46fe7226e7450af7a6545bfc474c9/idna-2.8-py2.py3-none-any.whl (58kB)
Collecting certifi>=2017.4.17 (from requests==2.21.0->-r requirements.txt (line 2))
Downloading https://files.pythonhosted.org/packages/69/1b/b853c7a9d4f6a6d00749e94eb6f3a041e342a885b87340b79c1ef73e3a78/certifi-2019.6.16-py2.py3-none-any.whl (157kB)
Collecting urllib3<1.25,>=1.21.1 (from requests==2.21.0->-r requirements.txt (line 2))
Downloading https://files.pythonhosted.org/packages/01/11/525b02e4acc0c747de8b6ccdab376331597c569c42ea66ab0a1dbd36eca2/urllib3-1.24.3-py2.py3-none-any.whl (118kB)
Installing collected packages: beautifulsoup4, chardet, idna, certifi, urllib3, requests
Successfully installed beautifulsoup4-4.6.3 certifi-2019.6.16 chardet-3.0.4 idna-2.8 requests-2.21.0 urllib3-1.24.3
,------.
' .--. '
,--. .--. ,--. .--.| | | |
| | | | | | | |'--' | |
| | | | | | | | __. |
| |.'.| | | |.'.| | | .'
| | | | |___|
| ,'. |hat| ,'. |af .---.
'--' '--' '--' '--' '---' v(1.4.5)
Installing:
copying files over..
creating executable
editing file stats
installed, you need to run: source ~/.bash_profile if you notice that the installation does not work as expected
,------.
' .--. '
,--. .--. ,--. .--.| | | |
| | | | | | | |'--' | |
| | | | | | | | __. |
| |.'.| | | |.'.| | | .'
| | | | |___|
| ,'. |hat| ,'. |af .---.
'--' '--' '--' '--' '---' v(1.4.5)
./setup.sh {install|remove}
Removing intermediate container fc04c52941c2
---> 474ed12a9eaa
Step 15/32 : COPY --from=golang /go/bin/ssllabs-scan /usr/bin/ssllabs-scan
---> 5411fd51d8a4
Step 16/32 : COPY --from=golang /go/bin/geoipupdate /usr/bin/geoipupdate
---> defd8ca9bfa9
Step 17/32 : COPY --from=golang /go/bin/subfinder /usr/bin/subfinder
---> dafa1f8a5d9d
Step 18/32 : COPY --from=testssl /usr/local/bin/testssl.sh /usr/bin/testssl.sh
---> 3062f3834efa
Step 19/32 : COPY --from=testssl /home/testssl/etc/ /etc/testssl/etc/
---> 5e0344d37022
Step 20/32 : RUN mkdir -p /usr/local/etc/ && echo -en "AccountID 0\\nLicenseKey 000000000000\\nEditionIDs GeoLite2-Country GeoLite2-City" > /usr/local/etc/GeoIP.conf
---> Running in 15ca8c601d8d
Removing intermediate container 15ca8c601d8d
---> 61b8930920ca
Step 21/32 : RUN mkdir -p /usr/local/share/GeoIP/ && geoipupdate
---> Running in 39610e181ecc
Removing intermediate container 39610e181ecc
---> bf9d9621e383
Step 22/32 : RUN cp -R /usr/local/share/GeoIP /usr/share/
---> Running in e402652c7191
Removing intermediate container e402652c7191
---> b065c4951cd0
Step 23/32 : ENV TESTSSL_INSTALL_DIR /etc/testssl
---> Running in b1296e35d854
Removing intermediate container b1296e35d854
---> bc0b90789b28
Step 24/32 : WORKDIR /opt/htrace.sh
Removing intermediate container 8560b68ac170
---> 4d58e8517972
Step 25/32 : COPY bin /opt/htrace.sh/bin/
---> 35e1315d0316
Step 26/32 : COPY lib /opt/htrace.sh/lib/
---> 57f0d44a759c
Step 27/32 : COPY src /opt/htrace.sh/src/
---> 12be4194c7fa
Step 28/32 : COPY static /opt/htrace.sh/static/
---> 56e00df12a50
Step 29/32 : COPY dependencies.sh setup.sh config /opt/htrace.sh/
---> 53283fdfcaab
Step 30/32 : RUN ./setup.sh install
---> Running in 4966f95ccf35
Create symbolic link to /usr/local/bin
Create man page to /usr/local/man/man8
Removing intermediate container 4966f95ccf35
---> d01f48d31985
Step 31/32 : ENTRYPOINT ["/usr/local/bin/htrace.sh"]
---> Running in 887b8458b6d6
Removing intermediate container 887b8458b6d6
---> 8f15cad6bd44
Step 32/32 : CMD ["--help"]
---> Running in f9d51ee4c27f
Removing intermediate container f9d51ee4c27f
---> c9e4eafb560f
Successfully built c9e4eafb560f
Successfully tagged htrace.sh:latest
$ docker version
Client:
Version: 18.03.0-ce
API version: 1.37
Go version: go1.9.4
Git commit: 0520e24
Built: Wed Mar 21 23:10:22 2018
OS/Arch: linux/amd64
Experimental: false
Orchestrator: swarm
Server:
Engine:
Version: 18.03.0-ce
API version: 1.37 (minimum version 1.12)
Go version: go1.9.4
Git commit: 0520e24
Built: Wed Mar 21 23:08:52 2018
OS/Arch: linux/amd64
Experimental: false
Facing similar error while trying to install the hub
package
/ # apk add --no-cache hub
fetch http://dl-cdn.alpinelinux.org/alpine/v3.12/main/x86_64/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/v3.12/community/x86_64/APKINDEX.tar.gz
ERROR: unsatisfiable constraints:
hub (missing):
required by: world[hub]
Steps to reproduce:
The full log is here:
Environment:
MacOS Mojave
Docker