forked from optimism-java/hildr
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: hildr proposer and hildr batcher add dockerfile and docker compose
- Loading branch information
1 parent
4e40faf
commit a8bbc4c
Showing
24 changed files
with
418 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
FROM ghcr.io/graalvm/graalvm-community:21 as builder | ||
|
||
WORKDIR /root/hildr | ||
COPY . . | ||
RUN ./gradlew clean hildr-batcher:buildJarForDocker | ||
|
||
FROM ghcr.io/graalvm/graalvm-community:21 | ||
|
||
WORKDIR /usr/local/bin | ||
COPY --from=builder /root/hildr/hildr-batcher/build/docker/hildr-batcher.jar . | ||
ENV HILDR_BATCHER_JAR /usr/local/bin/hildr-batcher.jar | ||
ENV HILDR_BATCHER_MAIN_CLASS io.optimism.batcher.HildrBatcher | ||
|
||
ENTRYPOINT ["java", "--enable-preview", "-cp" , "/usr/local/bin/hildr-batcher.jar", "io.optimism.batcher.HildrBatcher"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
FROM ghcr.io/graalvm/graalvm-community:21 as builder | ||
|
||
WORKDIR /root/hildr | ||
COPY . . | ||
RUN ./gradlew clean hildr-batcher:buildJarForDocker | ||
|
||
FROM ghcr.io/graalvm/graalvm-community:21 | ||
|
||
WORKDIR /usr/local/bin | ||
COPY --from=builder /root/hildr/hildr-batcher/build/docker/hildr-proposer.jar . | ||
ENV HILDR_PROPOSER_JAR /usr/local/bin/hildr-proposer.jar | ||
ENV HILDR_PROPOSER_MAIN_CLASS io.optimism.proposer.HildrProposer | ||
|
||
ENTRYPOINT ["java", "--enable-preview", "-cp" , "/usr/local/bin/hildr-proposer.jar", "io.optimism.proposer.HildrProposer"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#!/bin/sh | ||
set -e | ||
|
||
exec java --enable-preview \ | ||
-cp $HILDR_BATCHER_JAR $HILDR_BATCHER_MAIN_CLASS \ | ||
--l1-rpc-url $L1_RPC_URL \ | ||
--l1-signer $L1_SIGNER \ | ||
--batch-inbox-address $BATCH_INBOX_ADDRESS \ | ||
--l2-rpc-url http://${EXECUTION_CLIENT}:${EXECUTION_CLIENT_RPC_PORT} \ | ||
--rollup-rpc-url http://${ROLLUP_CLIENT}:${ROLLUP_RPC_PORT} \ | ||
--log-level $LOG_LEVEL |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!/bin/sh | ||
set -e | ||
|
||
exec java --enable-preview \ | ||
-cp $HILDR_PROPOSER_JAR $HILDR_PROPOSER_MAIN_CLASS \ | ||
--l1-rpc-url $L1_RPC_URL \ | ||
--l2-rpc-url http://${EXECUTION_CLIENT}:${EXECUTION_CLIENT_RPC_PORT} \ | ||
--l2-chain-id $L2_CHAIN_ID \ | ||
--l2-signer $L2_SIGNER \ | ||
--l2oo-address $L2OO_ADDRESS \ | ||
--l2dgf-address $L2DGF_ADDRESS \ | ||
--rollup-rpc-url http://${ROLLUP_CLIENT}:${ROLLUP_RPC_PORT} \ | ||
--log-level $LOG_LEVEL |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 0 additions & 21 deletions
21
hildr-node/src/main/java/io/optimism/cli/typeconverter/LogLevelConverter.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.