-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixing docker files to work with workspace (#164)
* Fixing docker files to work with workspace * Comment out cargo chef cook for ingester and api
- Loading branch information
Showing
5 changed files
with
105 additions
and
30 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
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,9 +1,16 @@ | ||
FROM rust:1.73-bullseye | ||
COPY init.sql /init.sql | ||
COPY migration /migration | ||
ENV INIT_FILE_PATH=/init.sql | ||
COPY digital_asset_types /digital_asset_types | ||
|
||
COPY Cargo.toml / | ||
COPY ./das_api /das_api | ||
COPY ./digital_asset_types /digital_asset_types | ||
COPY ./metaplex-rpc-proxy /metaplex-rpc-proxy | ||
COPY ./migration /migration | ||
COPY ./nft_ingester /nft_ingester | ||
COPY ./tools /tools | ||
|
||
WORKDIR /migration | ||
RUN cargo build --release | ||
WORKDIR /migration/target/release | ||
CMD /migration/target/release/migration up -n 100 | ||
WORKDIR /target/release | ||
CMD /target/release/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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,19 @@ | ||
FROM rust:1.73-bullseye AS builder | ||
|
||
RUN mkdir /rust | ||
COPY ./Cargo.toml /rust | ||
COPY ./das_api /rust/das_api | ||
COPY ./digital_asset_types /rust/digital_asset_types | ||
COPY ./metaplex-rpc-proxy /rust/metaplex-rpc-proxy | ||
COPY ./migration /rust/migration | ||
COPY ./nft_ingester /rust/nft_ingester | ||
COPY ./tools /rust/tools | ||
|
||
WORKDIR /rust/metaplex-rpc-proxy | ||
RUN cargo install wasm-pack | ||
RUN wasm-pack build --release | ||
|
||
FROM envoyproxy/envoy:v1.24.0 | ||
COPY --from=builder /rust/metaplex-rpc-proxy/target/wasm32-unknown-unknown/release/metaplex_rpc_proxy.wasm /etc/rpc_proxy.wasm | ||
COPY --from=builder /rust/target/wasm32-unknown-unknown/release/metaplex_rpc_proxy.wasm /etc/rpc_proxy.wasm | ||
RUN apt-get update && apt-get install -y ca-certificates | ||
ENTRYPOINT /usr/local/bin/envoy -c /etc/envoy.yaml -l trace --service-cluster proxy |