Added .env file
This commit is contained in:
6
microservices/weather/.env
Normal file
6
microservices/weather/.env
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
weather_weather_api_base_url=
|
||||||
|
weather_weather_api_key=
|
||||||
|
weather_influx_db_base_url=
|
||||||
|
weather_influx_db_token=
|
||||||
|
weather_latitude=
|
||||||
|
weather_longitude=
|
||||||
@@ -1,9 +1,9 @@
|
|||||||
FROM rust:1.61.0 as builder
|
FROM rust:1.67 as builder
|
||||||
# 2. Copy the files in your machine to the Docker image
|
WORKDIR /usr/src/weather
|
||||||
COPY ./ ./
|
COPY . .
|
||||||
|
RUN cargo install --path .
|
||||||
|
|
||||||
# Build your program for release
|
FROM debian:bullseye-slim as runtime-base
|
||||||
RUN cargo build --release
|
RUN apt-get update && apt-get install -y libssl1.1 ca-certificates libsasl2-dev && rm -rf /var/lib/apt/lists/*
|
||||||
|
COPY --from=builder /usr/local/cargo/bin/weather /usr/local/bin/weather
|
||||||
# Run the binary
|
CMD ["weather"]
|
||||||
CMD ["./target/release/test_weather_data"]
|
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
docker build . -t weather-microservice:latest
|
docker build . -t weather-microservice:latest
|
||||||
|
docker tag weather-microservice:latest registry.willemserruys.com/weather-microservice:latest
|
||||||
|
docker push registry.willemserruys.com/weather-microservice:latest
|
||||||
|
|||||||
Reference in New Issue
Block a user