diff --git a/Dockerfile b/Dockerfile index 2fb84d2..ffb8f66 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,18 +1,24 @@ -FROM alpine:3.12 +FROM alpine:3.19 WORKDIR /tezos -RUN wget "https://raw.githubusercontent.com/zcash/zcash/master/zcutil/fetch-params.sh" \ +RUN wget "https://raw.githubusercontent.com/zcash/zcash/v5.6.0/zcutil/fetch-params.sh" \ && export OSTYPE=linux \ && sed '/SAPLING_SPROUT_GROTH16_NAME/d; /progress/d; /retry-connrefused/d' fetch-params.sh | sh \ && rm fetch-params.sh + +# `fetch-params.sh` is not available since v5.7.0! +# RUN mkdir /root/.zcash-params \ +# && wget "https://download.z.cash/downloads/sprout-groth16.params" -O "/root/.zcash-params/sprout-groth16.params" + ARG TARGETPLATFORM ARG TAG RUN if [ "$TARGETPLATFORM" = "linux/arm64" ]; then EXEC_NAME="octez-node-arm64"; else EXEC_NAME="octez-node"; fi \ - && wget "https://github.com/serokell/tezos-packaging/releases/download/$TAG/$EXEC_NAME" -O "tezos-node" \ - && chmod +x tezos-node + && wget "https://github.com/serokell/tezos-packaging/releases/download/$TAG/$EXEC_NAME" -O "octez-node" \ + && chmod +x octez-node \ + && ln -s octez-node tezos-node #RUN ./tezos-node identity generate "0.0" --data-dir /tezos/sandbox COPY ./sandbox.json /tezos/ COPY ./identity.json /tezos/sandbox/ -ENTRYPOINT ["/tezos/tezos-node", "run", \ +ENTRYPOINT ["/tezos/octez-node", "run", \ "-vv", \ "--data-dir=/tezos/sandbox", \ "--synchronisation-threshold=0", \ diff --git a/Makefile b/Makefile index ff6ada1..c7efc48 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,7 @@ -TAG=v17.0-1 +TAG=v18.1-1 build: - docker build -t bakingbad/sandboxed-node:$(TAG) --build-arg TAG=$(TAG) . + docker build -t bakingbad/sandboxed-node:$(TAG) --build-arg TAG=$(TAG) --progress=plain . run: docker run --rm -p 127.0.0.1:8732:8732 --name sandbox bakingbad/sandboxed-node:$(TAG)