forked from matter-labs/zksync
-
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.
- Loading branch information
Showing
4 changed files
with
109 additions
and
0 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
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,27 @@ | ||
FROM alpine:edge AS builder | ||
|
||
RUN apk add build-base \ | ||
cmake \ | ||
linux-headers \ | ||
openssl-dev \ | ||
cargo \ | ||
clang \ | ||
clang-libs \ | ||
git | ||
|
||
RUN git clone https://github.com/adriamb/tesseracts.git | ||
WORKDIR / | ||
COPY . . | ||
WORKDIR /tesseracts | ||
RUN cargo build --release | ||
|
||
FROM alpine:edge | ||
WORKDIR / | ||
COPY --from=builder /tesseracts.toml . | ||
COPY --from=builder /tesseracts/target/release/tesseracts . | ||
|
||
EXPOSE 8000 | ||
|
||
RUN apk add clang clang-libs ca-certificates | ||
|
||
ENTRYPOINT ["./tesseracts","--cfg","tesseracts.toml","-vvv"] |
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,58 @@ | ||
# user iterface ----------------------------------- | ||
|
||
# title of the page, e.g. "tesseracts" | ||
ui_title = "Franklin" | ||
|
||
# database ---------------------------------------- | ||
|
||
# where the database is located | ||
db_path = "/tmp/db" | ||
|
||
# true|false if we want to scan blocks and save it into db | ||
scan = false | ||
|
||
# the starting block to start to retrieve blocks (only iff scan==true) | ||
scan_start_block = 1 | ||
|
||
# store with tx are contained in addr? (bool) | ||
db_store_addr = false | ||
|
||
# store the transactions and receipts? (bool) | ||
db_store_tx = false | ||
|
||
# store internal transactions? (bool) | ||
db_store_itx = false | ||
|
||
# store list of last non empty blocks? (bool) | ||
db_store_neb = false | ||
|
||
# web3 ---------------------------------------------- | ||
|
||
# web3 json-rpc port, e.g. http://localhost:8545 | ||
web3_url = "http://geth:8545" | ||
|
||
# client type | ||
# "geth_clique" for geth PoS | ||
# "geth_pow" for geth PoW | ||
# "geth" to autodetect geth_clique and geth_pow | ||
web3_client = "geth" | ||
|
||
# process internal txs, true or false | ||
# in geth requieres: | ||
# --syncmode=full | ||
# --gcmode=archive | ||
# --rpcapi debug | ||
web3_itx = false | ||
|
||
# compiler ------------------------------------------ | ||
|
||
# the path where solc binaries are stored (optional) | ||
#solc_path = | ||
|
||
# solidity compiler can be bypassedi, by specifing the abi | ||
solc_bypass = true | ||
|
||
# server -------------------------------------------- | ||
|
||
# http server binding (e.g. "0.0.0.0:8000") | ||
bind = "0.0.0.0:8000" |