docker: use generic filename for dumped blocks

This commit is contained in:
Evgenii Stratonikov 2020-01-13 17:47:07 +03:00
parent 5f5d0097e2
commit b33ca04191
2 changed files with 4 additions and 4 deletions

View file

@ -1,6 +1,6 @@
#!/bin/sh #!/bin/sh
if test -f /6000-privnet-blocks.acc.gz; then if test -f /privnet-blocks.acc.gz; then
gunzip /6000-privnet-blocks.acc.gz gunzip /privnet-blocks.acc.gz
/usr/bin/neo-go db restore -i /6000-privnet-blocks.acc /usr/bin/neo-go db restore -i /privnet-blocks.acc
fi fi
/usr/bin/neo-go "$@" /usr/bin/neo-go "$@"

View file

@ -30,7 +30,7 @@ LABEL version=$VERSION
WORKDIR / WORKDIR /
COPY --from=builder /neo-go/config /config COPY --from=builder /neo-go/config /config
COPY --from=builder /neo-go/.docker/6000-privnet-blocks.acc.gz / COPY --from=builder /neo-go/.docker/6000-privnet-blocks.acc.gz /privnet-blocks.acc.gz
COPY --from=builder /neo-go/.docker/privnet-entrypoint.sh /usr/bin/privnet-entrypoint.sh COPY --from=builder /neo-go/.docker/privnet-entrypoint.sh /usr/bin/privnet-entrypoint.sh
COPY --from=builder /go/bin/neo-go /usr/bin/neo-go COPY --from=builder /go/bin/neo-go /usr/bin/neo-go
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/