Mirror of https://github.com/roostorg/osprey github.com/roostorg/osprey
2
fork

Configure Feed

Select the types of activity you want to include in your feed.

Osprey coordinator dockerization (#65)

authored by

Chenyu and committed by
GitHub
6f4fa4de 38e96d39

+60
+41
docker-compose.yaml
··· 377 377 - ./druid/specs:/specs 378 378 command: ["/bin/sh", "/specs/submit-specs.sh"] 379 379 restart: "no" 380 + 381 + osprey_coordinator: 382 + container_name: osprey_coordinator 383 + build: 384 + context: . 385 + dockerfile: osprey_coordinator/Dockerfile 386 + ports: 387 + - "19950:19950" 388 + - "19951:19951" 389 + environment: 390 + - RUST_LOG=info 391 + - ETCD_PEERS=http://etcd:2379 392 + - SNOWFLAKE_API_ENDPOINT=http://snowflake-id-worker:8088 393 + - POD_IP=127.0.0.1 394 + - PUBSUB_EMULATOR_HOST=127.0.0.1:8085 395 + depends_on: 396 + etcd: 397 + condition: service_healthy 398 + snowflake-id-worker: 399 + condition: service_started 400 + 401 + etcd: 402 + image: quay.io/coreos/etcd:v3.5.15 403 + ports: 404 + - "2379:2379" 405 + environment: 406 + - ETCD_ENABLE_V2=true 407 + - ETCD_LISTEN_CLIENT_URLS=http://0.0.0.0:2379 408 + - ETCD_ADVERTISE_CLIENT_URLS=http://0.0.0.0:2379 409 + healthcheck: 410 + test: 411 + [ 412 + "CMD", 413 + "etcdctl", 414 + "--endpoints=http://localhost:2379", 415 + "endpoint", 416 + "health", 417 + ] 418 + interval: 5s 419 + timeout: 3s 420 + retries: 3
+19
osprey_coordinator/Dockerfile
··· 1 + FROM rust:1.91 2 + 3 + RUN apt-get update && apt-get install -y protobuf-compiler 4 + 5 + ADD ./proto/ /osprey/proto/ 6 + ADD ./osprey_coordinator/ /osprey/osprey_coordinator/ 7 + 8 + WORKDIR /osprey/osprey_coordinator 9 + 10 + 11 + RUN rustup show 12 + RUN rustc --version 13 + 14 + RUN cargo build --release 15 + 16 + RUN mv /osprey/osprey_coordinator/target/release/osprey_coordinator /osprey_coordinator_bin && \ 17 + rm -rf /osprey 18 + 19 + ENTRYPOINT ["/osprey_coordinator_bin"]