From 3383f65297c5c102085a031997cf187e41edca72 Mon Sep 17 00:00:00 2001 From: Mark Beamer Jr Date: Sat, 29 Feb 2020 14:25:22 -0500 Subject: [PATCH] Add support regtest Add support for passing version to build. --- Dockerfile | 1 + conf/regtest_daemon_settings.yml | 24 ++++++++++++++++++++++++ scripts/get_release.sh | 5 ++++- 3 files changed, 29 insertions(+), 1 deletion(-) create mode 100644 conf/regtest_daemon_settings.yml diff --git a/Dockerfile b/Dockerfile index 76fc559..bda0a69 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,6 +8,7 @@ WORKDIR /daemon COPY lbrynet ./ COPY conf/daemon_settings.yml ./ COPY conf/test_daemon_settings.yml ./ +COPY conf/regtest_daemon_settings.yml ./ COPY launcher.sh ./launcher.sh RUN chmod a+x launcher.sh diff --git a/conf/regtest_daemon_settings.yml b/conf/regtest_daemon_settings.yml new file mode 100644 index 0000000..072027e --- /dev/null +++ b/conf/regtest_daemon_settings.yml @@ -0,0 +1,24 @@ +api: 0.0.0.0:5279 +streaming_server: 0.0.0.0:5280 +blockchain_name: lbrycrd_regtest + +components_to_skip: +- hash_announcer +- blob_server +- dht +track_bandwidth: false + +data_dir: /storage/lbrynet +download_dir: /storage/download +wallet_dir: /storage/lbryum + + + +save_blobs: false +save_files: false +share_usage_data: false +use_upnp: false +save_resolved_claims: false + +lbryum_servers: +- spv26.lbry.com:50001 diff --git a/scripts/get_release.sh b/scripts/get_release.sh index 3a30f09..a699645 100755 --- a/scripts/get_release.sh +++ b/scripts/get_release.sh @@ -7,12 +7,15 @@ BASE_IMAGE_NAME=lbry/lbrynet-tv if [[ ${1} == "rc" ]]; then API_URL="https://api.github.com/repos/lbryio/lbry/releases" RC_SUFFIX="-rc" +elif [ ${1} != "" ]; then + API_URL="https://api.github.com/repos/lbryio/lbry/releases/tags/${1}" + RC_SUFFIX="" else API_URL="https://api.github.com/repos/lbryio/lbry/releases/latest" RC_SUFFIX="" fi -echo ${API_URL} +echo "URL: ${API_URL}" URL=$( curl -siL ${API_URL}|