Skip to content

Commit

Permalink
Merge pull request #4 from baking-bad/aux/18.1
Browse files Browse the repository at this point in the history
  • Loading branch information
droserasprout authored Dec 30, 2023
2 parents 8e15ef7 + 57e7dc7 commit 17327f7
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 7 deletions.
16 changes: 11 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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", \
Expand Down
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -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)
Expand Down

0 comments on commit 17327f7

Please sign in to comment.