-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: formatting, refactoring makefile for code abstraction, comment…
…s added in dockefile
- Loading branch information
mohiiit
committed
Dec 23, 2024
1 parent
026c90a
commit 34190de
Showing
5 changed files
with
79 additions
and
92 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
[package] | ||
name = "karnot-bridge-deploy" | ||
name = "madara-bootstrapper" | ||
version = "0.1.0" | ||
edition = "2021" | ||
|
||
|
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 |
---|---|---|
|
@@ -102,7 +102,12 @@ RUN npm install -g --unsafe-perm [email protected] | |
# First run setup-linux | ||
RUN make setup-linux | ||
|
||
# Then build legacy contracts | ||
# Build legacy starkgate contracts | ||
# Note: This section implements the build steps for old starkgate contracts, | ||
# replacing 'make starkgate-contracts-legacy' from the Makefile. We include these steps | ||
# directly here because running the Makefile command would create a nested | ||
# Docker container inside this build. | ||
|
||
RUN cd lib/starkgate-contracts-old && \ | ||
# First verify ganache-cli installation | ||
which ganache-cli && \ | ||
|
@@ -187,13 +192,13 @@ RUN . "$HOME/.asdf/asdf.sh" && \ | |
make argent-contracts-starknet | ||
|
||
# Build the Rust project with specific binary name | ||
RUN cargo build --release --workspace --bin karnot-bridge-deploy | ||
RUN cargo build --release --workspace --bin madara-bootstrapper | ||
|
||
# Runtime stage | ||
FROM debian:buster-slim | ||
|
||
# Copy only the compiled binary and artifacts | ||
COPY --from=builder /app/target/release/karnot-bridge-deploy /usr/local/bin/ | ||
COPY --from=builder /app/target/release/madara-bootstrapper /usr/local/bin/ | ||
COPY --from=builder /app/artifacts /app/artifacts | ||
|
||
# Set working directory | ||
|
@@ -203,4 +208,4 @@ WORKDIR /app | |
ENV RUST_LOG=info | ||
|
||
# Run the binary | ||
ENTRYPOINT ["/usr/local/bin/karnot-bridge-deploy"] | ||
ENTRYPOINT ["/usr/local/bin/madara-bootstrapper"] |
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