Compare commits

...

5 Commits

Author SHA1 Message Date
nicolas.dorier
d5626fb071
b 2021-10-19 17:36:51 +09:00
nicolas.dorier
0d150513a0
b 2021-10-19 17:31:27 +09:00
nicolas.dorier
37bfeb84e8
b 2021-10-19 17:21:51 +09:00
nicolas.dorier
1ce280f20d
b 2021-10-19 16:39:17 +09:00
nicolas.dorier
43a631a65b
[JoinMarket] Use git rather than zip file 2021-10-19 14:40:34 +09:00
2 changed files with 9 additions and 7 deletions

View File

@ -5,6 +5,9 @@ cd ..
. jmvenv/bin/activate
cd scripts
export JM_onion_serving_host="$(/sbin/ip route|awk '/src/ { print $9 }')"
# First we restore the default cfg as created by wallet-tool.py generate
if ! [ -f "$CONFIG" ]; then
cp "$DEFAULT_CONFIG" "$CONFIG"
@ -15,7 +18,7 @@ while IFS='=' read -r -d '' n v; do
n="${n,,}" # lowercase
if [[ "$n" = jm_* ]]; then
n="${n:3}" # drop jm_
sed -i "s/^$n = .*/$n = $v/g" "$CONFIG"
sed -i "s/^$n = .*/$n = $v/g" "$CONFIG" || echo "Couldn't set : $n = $v, please modify $CONFIG manually"
fi
done < <(env -0)
#####################################

View File

@ -1,16 +1,15 @@
FROM python:3.9.7-slim-bullseye
RUN apt-get update && \
apt-get install -qq --no-install-recommends curl tini sudo procps vim supervisor \
apt-get install -qq --no-install-recommends curl tini sudo procps vim git iproute2 \
build-essential automake pkg-config libtool libgmp-dev libltdl-dev python3-dev virtualenv python3-pip supervisor && \
rm -rf /var/lib/apt/lists/*
ENV JM_VERSION 0.9.1
ENV JM_FILENAME v${JM_VERSION}.tar.jz
ENV REPO https://github.com/JoinMarket-Org/joinmarket-clientserver
ENV REPO_REF payjoin_onion_host_location
WORKDIR /src
RUN curl -fsSL "https://codeload.github.com/JoinMarket-Org/joinmarket-clientserver/tar.gz/refs/tags/v${JM_VERSION}" > "${JM_FILENAME}" && \
tar --strip-components=1 -xvf "${JM_FILENAME}" && rm "${JM_FILENAME}"
RUN git clone "$REPO" . && git checkout "$REPO_REF"
RUN ./install.sh --disable-secp-check --without-qt
ENV DATADIR /root/.joinmarket
@ -26,5 +25,5 @@ COPY docker-entrypoint.sh .
COPY *.sh ./
COPY supervisor-conf/*.conf /etc/supervisor/conf.d/
ENV PATH /src/scripts:$PATH
EXPOSE 62601
EXPOSE 62601 80 8080
ENTRYPOINT [ "tini", "-g", "--", "./docker-entrypoint.sh" ]