Compare commits
5 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d5626fb071 | ||
|
|
0d150513a0 | ||
|
|
37bfeb84e8 | ||
|
|
1ce280f20d | ||
|
|
43a631a65b |
@ -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)
|
||||
#####################################
|
||||
|
||||
@ -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" ]
|
||||
Loading…
Reference in New Issue
Block a user