Skip to content

Commit

Permalink
chore: minor update for using environment variable for icao_airport_code
Browse files Browse the repository at this point in the history
  • Loading branch information
sunng87 committed Aug 30, 2024
1 parent 6e02d38 commit bd4093f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
5 changes: 4 additions & 1 deletion flight-data-ingester/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,10 @@ after GreptimeDB starts, we use the `ingester` script which uses the go client's

## Note

please update the ICAO flight code for your local airport of the city you are running the demo in to ensure there is data in the set. This can be done by updating the ICAO_AIRPORT_CODE environment variable in your docker compose file
please update the ICAO flight code for your local airport of the city you are
running the demo in to ensure there is data in the set. This can be done by
setting the ``ICAO_AIRPORT_CODE` environment variable when running `docker
compose up`.

If you are going to restart this demo, press `Ctrl-C` and remember to call
`docker compose down` to clean up the data before you run `docker compose up`
Expand Down
2 changes: 1 addition & 1 deletion flight-data-ingester/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ services:
networks:
- demo-network
environment:
- ICAO_AIRPORT_CODE=KSFO
- ICAO_AIRPORT_CODE=${ICAO_AIRPORT_CODE:-KSFO}
depends_on:
greptimedb:
condition: service_started
Expand Down
4 changes: 2 additions & 2 deletions flight-data-ingester/ingester/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM golang:1.21-alpine
FROM docker.io/golang:1.21-alpine

WORKDIR /app

Expand All @@ -15,4 +15,4 @@ COPY *.go ./
RUN CGO_ENABLED=0 GOOS=linux go build -o /app/producer

# Run the binary
CMD ["./producer"]
CMD ["./producer"]

0 comments on commit bd4093f

Please sign in to comment.