Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,18 @@ RUN dnf -y install java-1.8.0-openjdk-headless.x86_64 tar tmux supervisor procps
RUN dnf -y upgrade nss

# NEM software
RUN curl -L http://bob.nem.ninja/nis-0.6.97.tgz > nis-0.6.97.tgz
RUN curl -L http://bob.nem.ninja/nis-0.6.100.tgz > nis-0.6.100.tgz

#RUN curl http://bob.nem.ninja/nis-0.6.97.tgz.sig > nis-0.6.97.tgz.sig
#RUN gpg --keyserver keys.gnupg.net --recv-key A46494A9
#RUN gpg --verify nis-0.6.97.tgz.sig nis-0.6.97.tgz

# New signature scheme, not always published
RUN sha=$(curl -L -s http://hugealice.nem.ninja:7890/transaction/get?hash=$(curl -L -s http://bob.nem.ninja/nis-0.6.97.tgz.sig | grep txId | sed -e 's/txId: //') | jq -r '.transaction.message.payload[10:74]') && \
echo "$sha nis-0.6.97.tgz" > /tmp/sum && \
RUN sha=$(curl -L -s http://hugealice.nem.ninja:7890/transaction/get?hash=$(curl -L -s http://bob.nem.ninja/nis-0.6.100.tgz.sig | grep txId | sed -e 's/txId: //') | jq -r '.transaction.message.payload[10:74]') && \
echo "$sha nis-0.6.100.tgz" > /tmp/sum && \
sha256sum -c /tmp/sum

RUN tar zxf nis-0.6.97.tgz
RUN tar zxf nis-0.6.100.tgz

RUN useradd --uid 1000 nem
RUN mkdir -p /home/nem/nem/ncc/
Expand Down