Skip to content

Commit

Permalink
build: fix make docker on Linux (tikv#11349)
Browse files Browse the repository at this point in the history
* fix make docker

fix tikv#11312

Signed-off-by: tabokie <[email protected]>

* fix cargo

Signed-off-by: tabokie <[email protected]>

Co-authored-by: Ti Chi Robot <[email protected]>
  • Loading branch information
tabokie and ti-chi-bot authored Nov 19, 2021
1 parent 26e099c commit e81fe9a
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,9 @@ COPY Cargo.lock ./Cargo.lock

COPY --from=prepare /output/ ./

RUN mkdir -p ./cmd/src/bin && \
echo 'fn main() {}' > ./cmd/src/bin/tikv-ctl.rs && \
echo 'fn main() {}' > ./cmd/src/bin/tikv-server.rs && \
RUN mkdir -p ./cmd/tikv-ctl/src ./cmd/tikv-server/src && \
echo 'fn main() {}' > ./cmd/tikv-ctl/src/main.rs && \
echo 'fn main() {}' > ./cmd/tikv-server/src/main.rs && \
for cargotoml in $(find . -type f -name "Cargo.toml"); do \
sed -i '/fuzz/d' ${cargotoml} && \
sed -i '/profiler/d' ${cargotoml} ; \
Expand Down Expand Up @@ -107,4 +107,4 @@ COPY --from=builder /tikv/target/release/tikv-ctl /tikv-ctl

EXPOSE 20160 20180

ENTRYPOINT ["/tikv-server"]
ENTRYPOINT ["/tikv-server"]
1 change: 1 addition & 0 deletions components/cdc/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -76,4 +76,5 @@ required-features = ["failpoints"]

[[bench]]
name = "cdc_event"
path = "benches/cdc_event.rs"
harness = false
File renamed without changes.
2 changes: 2 additions & 0 deletions components/external_storage/export/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ publish = false

[[bin]]
name = "tikv-cloud-storage"
path = "src/bin/tikv-cloud-storage.rs"
required-features = ["cloud-storage-grpc"]

[lib]
Expand Down Expand Up @@ -84,6 +85,7 @@ tokio = { version = "1.5", features = ["time"] }

[[example]]
name = "scli"
path = "examples/scli.rs"

[target.'cfg(unix)'.dependencies]
nix = { optional = true, version = "0.11" }
Expand Down

0 comments on commit e81fe9a

Please sign in to comment.