diff --git a/Dockerfile b/Dockerfile index c8f9bc2b308..435eb0be52b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -247,7 +247,7 @@ RUN export DEBIAN_FRONTEND=noninteractive && \ USER user -FROM nitro-node as nitro-node-dev +FROM nitro-node as nitro-node-temp USER root # Copy in latest WASM module root RUN rm -f /home/user/target/machines/latest @@ -271,10 +271,13 @@ RUN export DEBIAN_FRONTEND=noninteractive && \ USER user -FROM nitro-node-dev as nitro-node-split +FROM nitro-node-temp as nitro-node-dev USER root RUN apt-get install -y xxd +RUN mkdir -p /home/user/machines-old && \ + mv /home/user/target/machines/0x* /home/user/machines-old/ && \ + chmod -R 555 /home/user/machines-old/ COPY scripts/split-val-entry.sh /usr/local/bin ENTRYPOINT [ "/usr/local/bin/split-val-entry.sh" ] USER user diff --git a/scripts/split-val-entry.sh b/scripts/split-val-entry.sh index a7fa596f387..e8863664ce3 100755 --- a/scripts/split-val-entry.sh +++ b/scripts/split-val-entry.sh @@ -1,8 +1,9 @@ #!/bin/sh xxd -l 32 -ps -c 40 /dev/urandom > /tmp/nitro-val.jwt -echo launching validation -/usr/local/bin/nitro-val --file-logging.file nitro-val.log --auth.addr 127.0.0.10 --auth.origins 127.0.0.1 --auth.jwtsecret /tmp/nitro-val.jwt --auth.port 2000 & +echo launching validation servers +/usr/local/bin/nitro-val --file-logging.enable=false --auth.addr 127.0.0.10 --auth.origins 127.0.0.1 --auth.jwtsecret /tmp/nitro-val.jwt --auth.port 1000 & +/usr/local/bin/nitro-val --file-logging.enable=false --auth.addr 127.0.0.10 --auth.origins 127.0.0.1 --auth.jwtsecret /tmp/nitro-val.jwt --auth.port 1100 --validation.wasm.root-path /home/user/machines-old/ & sleep 2 echo launching nitro-node -/usr/local/bin/nitro --node.block-validator.execution-server.jwtsecret /tmp/nitro-val.jwt --node.block-validator.execution-server.url http://127.0.0.10:2000 "$@" +/usr/local/bin/nitro --node.block-validator.pending-upgrade-module-root="0x8b104a2e80ac6165dc58b9048de12f301d70b02a0ab51396c22b4b4b802a16a4" --node.block-validator.execution-server-configs-list='[{"jwtsecret":"/tmp/nitro-val.jwt","url":"http://127.0.0.10:1000"},{"jwtsecret":"/tmp/nitro-val.jwt","url":"http://127.0.0.10:1100"}]' "$@"