From 43048cffc09ab4c4ea79fca5d5a51e33e48eec8b Mon Sep 17 00:00:00 2001 From: tecnovert Date: Wed, 29 Jun 2022 14:17:57 +0200 Subject: [PATCH] doc, docker: Pin coincurve src to tag. --- .cirrus.yml | 5 +++-- .travis.yml | 5 +++-- Dockerfile | 5 +++-- doc/install.md | 5 +++-- docker/production/swapclient/Dockerfile | 5 +++-- 5 files changed, 15 insertions(+), 10 deletions(-) diff --git a/.cirrus.yml b/.cirrus.yml index bbe00e4..18d52d2 100644 --- a/.cirrus.yml +++ b/.cirrus.yml @@ -24,8 +24,9 @@ test_task: - apt-get install -y wget python3-pip gnupg unzip protobuf-compiler automake libtool pkg-config - pip install tox pytest - python3 setup.py install - - wget -O coincurve-anonswap.zip https://github.com/tecnovert/coincurve/archive/anonswap.zip - - unzip coincurve-anonswap.zip + - wget -O coincurve-anonswap.zip https://github.com/tecnovert/coincurve/archive/refs/tags/anonswap_v0.1.zip + - unzip -d coincurve-anonswap coincurve-anonswap.zip + - mv ./coincurve-anonswap/*/{.,}* ./coincurve-anonswap || true - cd coincurve-anonswap - python3 setup.py install --force bins_cache: diff --git a/.travis.yml b/.travis.yml index 7b6bf9a..7a36f91 100644 --- a/.travis.yml +++ b/.travis.yml @@ -22,8 +22,9 @@ before_install: install: - travis_retry pip install tox pytest before_script: - - wget -O coincurve-anonswap.zip https://github.com/tecnovert/coincurve/archive/anonswap.zip - - unzip coincurve-anonswap.zip + - wget -O coincurve-anonswap.zip https://github.com/tecnovert/coincurve/archive/refs/tags/anonswap_v0.1.zip + - unzip -d coincurve-anonswap coincurve-anonswap.zip + - mv ./coincurve-anonswap/*/{.,}* ./coincurve-anonswap || true - cd coincurve-anonswap - python3 setup.py install --force script: diff --git a/Dockerfile b/Dockerfile index 7c95f07..d51f42f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -15,8 +15,9 @@ RUN wget -O protobuf_src.tar.gz https://github.com/protocolbuffers/protobuf/rele make install && \ ldconfig -RUN wget -O coincurve-anonswap.zip https://github.com/tecnovert/coincurve/archive/anonswap.zip && \ - unzip coincurve-anonswap.zip && \ +RUN wget -O coincurve-anonswap.zip https://github.com/tecnovert/coincurve/archive/refs/tags/anonswap_v0.1.zip && \ + unzip -d coincurve-anonswap coincurve-anonswap.zip && \ + mv ./coincurve-anonswap/*/{.,}* ./coincurve-anonswap || true && \ cd coincurve-anonswap && \ python3 setup.py install --force diff --git a/doc/install.md b/doc/install.md index 8354247..47c4a63 100644 --- a/doc/install.md +++ b/doc/install.md @@ -152,8 +152,9 @@ Close the terminal and open a new one to update the python symlinks. python3 -m venv "$SWAP_DATADIR/venv" . $SWAP_DATADIR/venv/bin/activate && python -V cd $SWAP_DATADIR - wget -O coincurve-anonswap.zip https://github.com/tecnovert/coincurve/archive/anonswap.zip - unzip coincurve-anonswap.zip + wget -O coincurve-anonswap.zip https://github.com/tecnovert/coincurve/archive/refs/tags/anonswap_v0.1.zip + unzip -d coincurve-anonswap coincurve-anonswap.zip + mv ./coincurve-anonswap/*/{.,}* ./coincurve-anonswap || true cd $SWAP_DATADIR/coincurve-anonswap pip3 install . diff --git a/docker/production/swapclient/Dockerfile b/docker/production/swapclient/Dockerfile index bc66a66..51a42ba 100644 --- a/docker/production/swapclient/Dockerfile +++ b/docker/production/swapclient/Dockerfile @@ -15,8 +15,9 @@ RUN wget -O protobuf_src.tar.gz https://github.com/protocolbuffers/protobuf/rele make install && \ ldconfig -RUN wget -O coincurve-anonswap.zip https://github.com/tecnovert/coincurve/archive/anonswap.zip && \ - unzip coincurve-anonswap.zip && \ +RUN wget -O coincurve-anonswap.zip https://github.com/tecnovert/coincurve/archive/refs/tags/anonswap_v0.1.zip && \ + unzip -d coincurve-anonswap coincurve-anonswap.zip && \ + mv ./coincurve-anonswap/*/{.,}* ./coincurve-anonswap || true && \ cd coincurve-anonswap && \ python3 setup.py install --force