-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Fix docker build and update stretto * Update lock file * chore: speedy docker * fix log name --------- Co-authored-by: Michael Danenberg <[email protected]>
- Loading branch information
Showing
7 changed files
with
55 additions
and
180 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,25 @@ | ||
FROM rust:1.75-bullseye AS builder | ||
RUN apt-get update -y && \ | ||
apt-get install -y build-essential make git | ||
|
||
RUN mkdir /rust | ||
RUN mkdir /rust/bins | ||
COPY Cargo.toml /rust | ||
COPY core /rust/core | ||
COPY das_api /rust/das_api | ||
COPY digital_asset_types /rust/digital_asset_types | ||
COPY integration_tests /rust/integration_tests | ||
COPY metaplex-rpc-proxy /rust/metaplex-rpc-proxy | ||
COPY migration /rust/migration | ||
COPY nft_ingester /rust/nft_ingester | ||
COPY ops /rust/ops | ||
COPY program_transformers /rust/program_transformers | ||
COPY tools /rust/tools | ||
COPY blockbuster rust/blockbuster | ||
WORKDIR /rust | ||
RUN --mount=type=cache,target=/rust/target,id=das-rust \ | ||
cargo build --release --bins && cp `find /rust/target/release -maxdepth 1 -type f | sed 's/^\.\///' | grep -v "\." ` /rust/bins | ||
|
||
FROM rust:1.75-slim-bullseye as final | ||
COPY --from=builder /rust/bins /das/ | ||
CMD echo "Built the DAS API bins!" |
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 |
---|---|---|
@@ -1,21 +1,7 @@ | ||
FROM das-api/builder AS files | ||
|
||
FROM rust:1.75-bullseye | ||
COPY init.sql /init.sql | ||
ENV INIT_FILE_PATH=/init.sql | ||
|
||
COPY Cargo.toml / | ||
COPY ./core /core | ||
COPY ./das_api /das_api | ||
COPY ./digital_asset_types /digital_asset_types | ||
COPY ./integration_tests /integration_tests | ||
COPY ./metaplex-rpc-proxy /metaplex-rpc-proxy | ||
COPY ./migration /migration | ||
COPY ./nft_ingester /nft_ingester | ||
COPY ./ops /ops | ||
COPY ./program_transformers /program_transformers | ||
COPY ./tools /tools | ||
COPY ./blockbuster /blockbuster | ||
|
||
WORKDIR /migration | ||
RUN cargo build --release | ||
WORKDIR /target/release | ||
CMD /target/release/migration up -n 100 | ||
COPY --from=files /das/migration /bins/migration | ||
CMD /bins/migration up -n 100 |
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