-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added dockerfile for sequencer-node, added option to provide containe…
…r args in cdk8s
- Loading branch information
1 parent
698cddd
commit cfbc596
Showing
4 changed files
with
57 additions
and
5 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
{ | ||
"chain_id": "0x5", | ||
"eth_fee_token_address": "0x6", | ||
"strk_fee_token_address": "0x7", | ||
"components.batcher.execution_mode": "Disabled", | ||
"components.batcher.local_server_config.#is_none": true, | ||
"components.consensus_manager.execution_mode": "Disabled", | ||
"components.gateway.execution_mode": "Disabled", | ||
"components.http_server.execution_mode": "Disabled", | ||
"components.mempool.execution_mode": "Disabled", | ||
"components.mempool_p2p.execution_mode": "Disabled", | ||
"components.consensus_manager.local_server_config.#is_none": true, | ||
"components.gateway.local_server_config.#is_none": true, | ||
"components.http_server.local_server_config.#is_none": true, | ||
"components.mempool.local_server_config.#is_none": true, | ||
"components.mempool_p2p.local_server_config.#is_none": true, | ||
"components.http_server.remote_server_config.#is_none": true | ||
} |
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,31 @@ | ||
# syntax = devthefuture/dockerfile-x | ||
|
||
INCLUDE deployments/images/base/Dockerfile | ||
|
||
|
||
# Compile the sequencer_node crate in release mode, ensuring dependencies are locked. | ||
FROM base AS builder | ||
COPY . . | ||
RUN cargo build --release --package starknet_sequencer_node | ||
|
||
FROM base AS sequencer | ||
|
||
ENV ID=1000 | ||
WORKDIR /app | ||
COPY --from=builder /target/release/starknet_sequencer_node /app/target/release/starknet_sequencer_node | ||
COPY config/ config/ | ||
|
||
# Create a new user "sequencer". | ||
RUN set -ex; \ | ||
addgroup --gid ${ID} sequencer; \ | ||
adduser --ingroup $(getent group ${ID} | cut -d: -f1) --uid ${ID} --gecos "" --disabled-password --home /app sequencer; \ | ||
chown -R sequencer:sequencer /app | ||
|
||
# Expose RPC and monitoring ports. | ||
EXPOSE 8080 8081 8082 | ||
|
||
# Switch to the new user. | ||
USER ${ID} | ||
|
||
# Set the entrypoint to use tini to manage the process. | ||
ENTRYPOINT ["tini", "--", "/app/target/release/starknet_sequencer_node"] |
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