Waves
Waves copied to clipboard
Cannot build waves docker testnet node
I get an error when trying to build an image:
$ docker build -t waves-testnet .
Sending build context to Docker daemon 49.66kB
Step 1/14 : FROM anapsix/alpine-java:8_server-jre
---> b819ec5bf91b
Step 2/14 : MAINTAINER Alexey Kiselev <[email protected]>
---> Using cache
---> c156780487b9
Step 3/14 : EXPOSE 6863 6869
---> Using cache
---> 1d2fa5c26017
Step 4/14 : RUN mkdir /waves /conf /data
---> Using cache
---> b49725eef3da
Step 5/14 : VOLUME ["/data"]
---> Using cache
---> df40c26fc3a0
Step 6/14 : VOLUME ["/conf"]
---> Using cache
---> e7a5bc974168
Step 7/14 : WORKDIR /waves
---> Using cache
---> 89e4916c3dd9
Step 8/14 : ADD docker-entrypoint.sh /waves/docker-entrypoint.sh
---> Using cache
---> c06eaf122f72
Step 9/14 : RUN chmod -v +x docker-entrypoint.sh
---> Using cache
---> 7d0a0b65e960
Step 10/14 : RUN apk add --no-cache curl jq openssl
---> Using cache
---> 7c60bc0a3ad0
Step 11/14 : RUN ver=$(curl https://api.github.com/repos/wavesplatform/Waves/releases | jq --arg version "$version" '[.[] | {tag: .tag_name, name: .name, assets: [.assets[].browser_download_url]} | select(.name | startswith("Testnet")) | select(.name | endswith($version)), select(.name == .tag)] | .[0] | .tag') && ver="${ver%\"}" && ver="${ver#\"}" && wget -P /waves -O waves.conf https://raw.githubusercontent.com/wavesplatform/Waves/$ver/waves-testnet.conf
---> Running in 1efd078b2114
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 214k 100 214k 0 0 78482 0 0:00:02 0:00:02 --:--:-- 78454
Connecting to raw.githubusercontent.com (151.101.0.133:443)
wget: server returned error: HTTP/1.1 404 Not Found
The command '/bin/sh -c ver=$(curl https://api.github.com/repos/wavesplatform/Waves/releases | jq --arg version "$version" '[.[] | {tag: .tag_name, name: .name, assets: [.assets[].browser_download_url]} | select(.name | startswith("Testnet")) | select(.name | endswith($version)), select(.name == .tag)] | .[0] | .tag') && ver="${ver%\"}" && ver="${ver#\"}" && wget -P /waves -O waves.conf https://raw.githubusercontent.com/wavesplatform/Waves/$ver/waves-testnet.conf' returned a non-zero code: 1
Guys, a feedback that you at least read this would be good.
I'm having the same issue w/ latest version of testnet node and docker on mac
EDIT: I replaced '$ver' in the dockerfile at line 23 with 'master' and step 11 completed successfully. I got stuck at step 13, though.
$ docker build -t waves-testnet .
Sending build context to Docker daemon 95.74kB
Step 1/14 : FROM anapsix/alpine-java:8_server-jre
---> b819ec5bf91b
Step 2/14 : MAINTAINER Alexey Kiselev <[email protected]>
---> Using cache
---> 23ecd9235849
Step 3/14 : EXPOSE 6863 6869
---> Using cache
---> 0c3d834ad1d2
Step 4/14 : RUN mkdir /waves /conf /data
---> Using cache
---> da36aba47e2e
Step 5/14 : VOLUME ["/data"]
---> Using cache
---> d2361afd2341
Step 6/14 : VOLUME ["/conf"]
---> Using cache
---> 1dabdd5fd308
Step 7/14 : WORKDIR /waves
---> Using cache
---> 694dae80c3de
Step 8/14 : ADD docker-entrypoint.sh /waves/docker-entrypoint.sh
---> Using cache
---> 8eaf7064f519
Step 9/14 : RUN chmod -v +x docker-entrypoint.sh
---> Using cache
---> 09b3ac4bb353
Step 10/14 : RUN apk add --no-cache curl jq openssl
---> Using cache
---> 88b771a19146
Step 11/14 : RUN ver=$(curl https://api.github.com/repos/wavesplatform/Waves/releases | jq --arg version "$version" '[.[] | {tag: .tag_name, name: .name, assets: [.assets[].browser_download_url]} | select(.name | startswith("Testnet")) | select(.name | endswith($version)), select(.name == .tag)] | .[0] | .tag') && ver="${ver%\"}" && ver="${ver#\"}" && wget -P /waves -O waves.conf https://raw.githubusercontent.com/wavesplatform/Waves/master/waves-testnet.conf
---> Running in 87eb1b38317f
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 212k 100 212k 0 0 106k 0 0:00:01 0:00:01 --:--:-- 106k
Connecting to raw.githubusercontent.com (151.101.0.133:443)
waves.conf 100% |*******************************| 2501 0:00:00 ETA
Removing intermediate container 87eb1b38317f
---> c619b6776c92
Step 12/14 : RUN sed -i "s|directory = .*|directory = \"/data\"|g" /waves/waves.conf
---> Running in ff3182cca7b4
Removing intermediate container ff3182cca7b4
---> 1c03bec10056
Step 13/14 : RUN curl https://api.github.com/repos/wavesplatform/Waves/releases | jq --arg version "$version" '[.[] | {tag: .tag_name, name: .name, assets: [.assets[].browser_download_url]} | select(.name | startswith("Testnet")) | select(.name | endswith($version)), select(.name == .tag)] | .[0] | [.assets] | flatten | .[] | select(. | endswith(".jar"))' | xargs wget -P /waves -O waves.jar
---> Running in 980c8393cf1f
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 212k 100 212k 0 0 89153 0 0:00:02 0:00:02 --:--:-- 89153
jq: error (at <stdin>:3548): endswith() requires string inputs
BusyBox v1.27.2 (2018-01-29 15:48:57 GMT) multi-call binary.
Usage: wget [-c|--continue] [--spider] [-q|--quiet] [-O|--output-document FILE]
[--header 'header: value'] [-Y|--proxy on/off] [-P DIR]
[-S|--server-response] [-U|--user-agent AGENT] [-T SEC] URL...
Retrieve files via HTTP or FTP
--spider Only check URL existence: $? is 0 if exists
-c Continue retrieval of aborted transfer
-q Quiet
-P DIR Save to DIR (default .)
-S Show server response
-T SEC Network read timeout is SEC seconds
-O FILE Save to FILE ('-' for stdout)
-U STR Use STR for User-Agent header
-Y on/off Use proxy
The command '/bin/sh -c curl https://api.github.com/repos/wavesplatform/Waves/releases | jq --arg version "$version" '[.[] | {tag: .tag_name, name: .name, assets: [.assets[].browser_download_url]} | select(.name | startswith("Testnet")) | select(.name | endswith($version)), select(.name == .tag)] | .[0] | [.assets] | flatten | .[] | select(. | endswith(".jar"))' | xargs wget -P /waves -O waves.jar' returned a non-zero code: 123
@Minstel and @ysinha1 could you provide info what OS, docker versions and master sha?
The docker-waves-testnet is outdated. Please, use the new one node-docker-image.