Skip to content

Commit

Permalink
Fix Dockerfile entrypoints (#467)
Browse files Browse the repository at this point in the history
Fixes a regression introduced in #224;

entrypoints containing relative paths are incompatible with the usage of
custom working directories.

This causes unexpected failures particularly in CI (GitHub, Gitea,
Forgejo actions), where the repository is often mounted and set as the
working directory - notably, when garnet is used as a `service`.
  • Loading branch information
jthvai authored Jun 17, 2024
1 parent 7d00ab9 commit f192fc7
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,4 @@ USER $APP_UID
EXPOSE 6379

# Run GarnetServer with an index size of 128MB
ENTRYPOINT ["./GarnetServer", "-i", "128m", "--port", "6379"]
ENTRYPOINT ["/app/GarnetServer", "-i", "128m", "--port", "6379"]
2 changes: 1 addition & 1 deletion Dockerfile.alpine
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,4 @@ USER $APP_UID
EXPOSE 6379

# Run GarnetServer with an index size of 128MB
ENTRYPOINT ["./GarnetServer", "-i", "128m", "--port", "6379"]
ENTRYPOINT ["/app/GarnetServer", "-i", "128m", "--port", "6379"]
2 changes: 1 addition & 1 deletion Dockerfile.cbl-mariner
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,4 @@ USER $APP_UID
EXPOSE 6379

# Run GarnetServer with an index size of 128MB
ENTRYPOINT ["./GarnetServer", "-i", "128m", "--port", "6379"]
ENTRYPOINT ["/app/GarnetServer", "-i", "128m", "--port", "6379"]
2 changes: 1 addition & 1 deletion Dockerfile.chiseled
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,4 @@ COPY --from=build /app .
EXPOSE 6379

# Run GarnetServer with an index size of 128MB
ENTRYPOINT ["./GarnetServer", "-i", "128m", "--port", "6379"]
ENTRYPOINT ["/app/GarnetServer", "-i", "128m", "--port", "6379"]
2 changes: 1 addition & 1 deletion Dockerfile.ubuntu
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,4 @@ USER $APP_UID
EXPOSE 6379

# Run GarnetServer with an index size of 128MB
ENTRYPOINT ["./GarnetServer", "-i", "128m", "--port", "6379"]
ENTRYPOINT ["/app/GarnetServer", "-i", "128m", "--port", "6379"]

0 comments on commit f192fc7

Please sign in to comment.