Browse Source

Copy marketmaker to /usr/local/bin and nuke repo

priv
Luke Childs 7 years ago
parent
commit
029de9232a
  1. 4
      Dockerfile
  2. 6
      bin/init

4
Dockerfile

@ -23,6 +23,10 @@ RUN cd SuperNET/iguana && \
git checkout spvdex && \
./m_mm
RUN mv ~/SuperNET/iguana/marketmaker /usr/local/bin && \
mv ~/SuperNET/iguana/exchanges/coins ~/coins && \
rm -rf ~/SuperNET
COPY ./bin /usr/local/bin
ENTRYPOINT ["init"]
EXPOSE 7783

6
bin/init

@ -1,15 +1,13 @@
#!/bin/bash
cd ~/SuperNET/iguana
if [ -z "$PASSPHRASE" ]; then
echo "No PASSPHRASE environment variable"
exit 1
fi
if [ -z "$COINS" ]; then
source ~/SuperNET/iguana/exchanges/coins
source ~/coins
COINS=$coins
fi
exec ./marketmaker "{\"gui\":\"nogui\", \"client\":1, \"docker\":1, \"userhome\":\"/${HOME#"/"}\", \"passphrase\":\"$PASSPHRASE\", \"coins\":$COINS}"
exec marketmaker "{\"gui\":\"nogui\", \"client\":1, \"docker\":1, \"userhome\":\"/${HOME#"/"}\", \"passphrase\":\"$PASSPHRASE\", \"coins\":$COINS}"

Loading…
Cancel
Save