Skip to content

Commit

Permalink
Add algorithm configuration in docker
Browse files Browse the repository at this point in the history
  • Loading branch information
dalibormesaric committed Sep 4, 2024
1 parent f990e88 commit 3df14e6
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
6 changes: 5 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,8 @@ RUN go build -ldflags "-X github.com/dalibormesaric/rplb/internal/config.Version
EXPOSE 8000
EXPOSE 8080

CMD ["sh", "-c", "app -f \"${FE}\" -b \"${BE}\""]
ENV FE=
ENV BE=
ENV ALGO=sticky

CMD ["sh", "-c", "app -f \"${FE}\" -b \"${BE}\" -a \"${ALGO}\""]
6 changes: 5 additions & 1 deletion Dockerfile.race
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,8 @@ RUN go build -race -v -o /usr/local/bin/app ./cmd/rplb
EXPOSE 8000
EXPOSE 8080

CMD ["sh", "-c", "app -f ${FE} -b ${BE}"]
ENV FE=
ENV BE=
ENV ALGO=sticky

CMD ["sh", "-c", "app -f \"${FE}\" -b \"${BE}\" -a \"${ALGO}\""]

0 comments on commit 3df14e6

Please sign in to comment.