Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Separate indexer into its own docker image (MystenLabs#8931)
## Description We moved fast by putting indexer into sui-tools. Separate it out as its own image. ## Test Plan Builds successfully: ``` docker/sui-indexer [jkj/indexer-image-split] » ./build.sh Building sui-indexer docker image Dockerfile: /Users/jordankylejensen/mysten/sui/docker/sui-indexer/Dockerfile docker context: /Users/jordankylejensen/mysten/sui build date: 2023-03-08 git revision: 9e9e105 [+] Building 1159.6s (26/26) FINISHED => [internal] load build definition from Dockerfile 0.0s => => transferring dockerfile: 1.87kB 0.0s => [internal] load .dockerignore 0.0s => => transferring context: 34B 0.0s => [internal] load metadata for docker.io/library/debian:bullseye-slim 2.7s => [internal] load metadata for docker.io/library/rust:1.65.0 2.4s => [auth] library/rust:pull token for registry-1.docker.io 0.0s => [auth] library/debian:pull token for registry-1.docker.io 0.0s => [chef 1/3] FROM docker.io/library/rust:1.65.0@sha256:891bc3b252c43a1c2667083e3861f26e6f571dcc3bc98dcc151d6ff6edc62cb9 0.0s => [runtime 1/4] FROM docker.io/library/debian:bullseye-slim@sha256:77f46c1cf862290e750e913defffb2828c889d291a93bdd10a7a0597720948fc 0.0s => [internal] load build context 0.2s => => transferring context: 10.80MB 0.2s => CACHED [chef 2/3] WORKDIR sui 0.0s => [chef 3/3] RUN apt-get update && apt-get install -y cmake clang 14.5s => [planner 1/3] COPY Cargo.toml Cargo.lock ./ 0.0s => [planner 2/3] COPY crates/workspace-hack crates/workspace-hack 0.0s => [planner 3/3] RUN sed -i '/crates\/workspace-hack/b; /crates/d; /narwhal/d' Cargo.toml && cargo metadata -q >/dev/null 95.9s => [builder 1/8] COPY --from=planner /sui/Cargo.toml Cargo.toml 0.0s => [builder 2/8] COPY --from=planner /sui/Cargo.lock Cargo.lock 0.0s => [builder 3/8] COPY --from=planner /sui/crates/workspace-hack crates/workspace-hack 0.0s => [builder 4/8] RUN cargo build --release 799.7s => [builder 5/8] COPY Cargo.toml Cargo.lock ./ 0.0s => [builder 6/8] COPY crates crates 0.5s => [builder 7/8] COPY narwhal narwhal 0.1s => [builder 8/8] RUN cargo build --release --bin sui-indexer 240.5s => CACHED [runtime 2/4] WORKDIR sui 0.0s => [runtime 3/4] COPY --from=builder /sui/target/release/sui-indexer /usr/local/bin 0.0s => [runtime 4/4] RUN apt update && apt install -y libpq5 ca-certificates 5.0s => exporting to image 0.1s => => exporting layers 0.1s => => writing image sha256:06950ad3dd97d13a22e4459728730f2ccf3d4b092de929359bdc31243956cafd 0.0s ``` Built and published successfully to [dockerhub](https://hub.docker.com/repository/docker/mysten/sui-indexer/general) --- If your changes are not user-facing and not a breaking change, you can skip the following section. Otherwise, please indicate what changed, and then add to the Release Notes section as highlighted during the release process. ### Type of Change (Check all that apply) - [ ] user-visible impact - [ ] breaking change for a client SDKs - [ ] breaking change for FNs (FN binary must upgrade) - [ ] breaking change for validators or node operators (must upgrade binaries) - [ ] breaking change for on-chain data layout - [ ] necessitate either a data wipe or data migration ### Release notes - Separate the new sui-indexer into a dedicated image.
- Loading branch information