Skip to content

Commit

Permalink
Air image removed, notes:
Browse files Browse the repository at this point in the history
- Still need to run dlv at beginning of air.toml full_bin path
- Still need to finish launch.json, but I think it should just plugin, will make sep PR for it anyways though.
  • Loading branch information
ale8k committed Dec 5, 2021
1 parent 0adaf19 commit b4ce3fc
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 14 deletions.
25 changes: 11 additions & 14 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,29 +6,26 @@ networks:

services:
stat_consumer:
networks:
- lubso
build:
# Shreyas:
# Context is build context given to dockerfile,
# it is relative to compose root
# for example, when copying it is the relative path the copy will use
context: ./
context: ./stat_consumer
# Docker file is path to file, can go deeper / up if needed
dockerfile: Dockerfile
# Target is the build target to STOP building at (multi-stage)
target: dev

# image: cosmtrek/air
# networks:
# - lubso
# working_dir: "/usr/src/app"
# ports:
# - 8001:9000
# - 2345:2345
# environment:
# KAFKA_BROKER_ADDRS: "kafka:9092"
# PPROF_ENDPOINTS: "true"
# volumes:
# - "./stat_consumer/:/usr/src/app"
ports:
- 8001:9000
- 2345:2345
volumes:
- "./stat_consumer/:/usr/src/app"
environment:
KAFKA_BROKER_ADDRS: "kafka:9092"
PPROF_ENDPOINTS: "true"

stat_processor:
ports:
Expand Down
1 change: 1 addition & 0 deletions stat_consumer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ WORKDIR /usr/src/app
RUN go get -u github.com/cosmtrek/air && go install github.com/go-delve/delve/cmd/dlv@latest
EXPOSE 9000
EXPOSE 2345
ENTRYPOINT ["air"]

#########
# BUILD #
Expand Down

0 comments on commit b4ce3fc

Please sign in to comment.