From 574b36abaa88550e3f6c19f1cce2dd79a5009b0d Mon Sep 17 00:00:00 2001 From: Ankur Dubey Date: Tue, 25 Jun 2024 16:00:08 +0400 Subject: [PATCH] fix: Dockerfile --- Dockerfile | 5 ++++- config.yaml.example | 1 - crates/config/src/config.rs | 5 ----- docker-compose.yml | 4 +--- 4 files changed, 5 insertions(+), 10 deletions(-) diff --git a/Dockerfile b/Dockerfile index 5ddece0..7b3570b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,6 +3,9 @@ WORKDIR /reflux COPY . . RUN cargo install --path bin/reflux --profile release -FROM debian:bullseye-slim +FROM debian:latest +RUN apt-get update +RUN apt-get upgrade -y +RUN apt-get install -y libssl-dev ca-certificates COPY --from=builder /usr/local/cargo/bin/reflux /app/reflux diff --git a/config.yaml.example b/config.yaml.example index 36a4390..c17a73a 100644 --- a/config.yaml.example +++ b/config.yaml.example @@ -66,7 +66,6 @@ coingecko: expiry_sec: 300 infra: redis_url: redis://localhost:6379 - rabbitmq_url: amqp://localhost:5672 mongo_url: mongodb://127.0.0.1:27017 server: port: 8080 diff --git a/crates/config/src/config.rs b/crates/config/src/config.rs index d2711d0..9231cb5 100644 --- a/crates/config/src/config.rs +++ b/crates/config/src/config.rs @@ -391,9 +391,6 @@ pub struct InfraConfig { // The URL of the Redis #[validate(pattern = r"redis://[-a-zA-Z0-9@:%._\+~#=]{1,256}")] pub redis_url: String, - // The URL of the RabbitMQ - #[validate(pattern = r"amqp://[-a-zA-Z0-9@:%._\+~#=]{1,256}")] - pub rabbitmq_url: String, // The URL of the MongoDB #[validate(pattern = r"mongodb://[-a-zA-Z0-9@:%._\+~#=]{1,256}")] pub mongo_url: String, @@ -460,7 +457,6 @@ coingecko: expiry_sec: 5 infra: redis_url: 'redis://localhost:6379' - rabbitmq_url: 'amqp://localhost:5672' mongo_url: 'mongodb://localhost:27017' server: port: 8080 @@ -526,7 +522,6 @@ coingecko: expiry_sec: 5 infra: redis_url: 'redis://localhost:6379' - rabbitmq_url: 'amqp://localhost:5672' mongo_url: 'mongodb://localhost:27017' server: port: 8080 diff --git a/docker-compose.yml b/docker-compose.yml index 6fdb5dd..ca61c49 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -22,7 +22,7 @@ services: container_name: reflux-solver entrypoint: [ "/app/reflux", "--solver", "--config", "/app/ctx/config.docker.yaml" ] ports: - - "8080:8080" + - "8000:8080" depends_on: - redis - mongodb @@ -35,8 +35,6 @@ services: dockerfile: Dockerfile container_name: reflux-indexer entrypoint: [ "/app/reflux", "--indexer", "--config", "/app/ctx/config.docker.yaml" ] - ports: - - "8080:8080" depends_on: - redis - mongodb