databend-ttc 0.27.2

Databend Rust Tcp Test Container
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# Dockerfile
FROM rust:1.83.0-bullseye as builder

# Set the current working directory inside the container
WORKDIR /usr/src

# Copy the source code into the container
COPY . .

# Build the application
RUN cargo build --bin ttc-server --package databend-ttc --release

FROM debian:bullseye-slim
COPY --from=builder  /usr/src/target/release/ttc-server /usr/local/bin/ttc-server

# Set the startup command
# docker run --net host datafuselabs/ttc-rust -P 9092 --databend_dsn databend://default:@127.0.0.1:8000
CMD ["ttc-server"]