-
-
Notifications
You must be signed in to change notification settings - Fork 184
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #64 from ErdemOzgen/main
Add Docker Support for Git-Hound
- Loading branch information
Showing
2 changed files
with
69 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# Use the official Golang image as a parent image | ||
FROM golang:latest | ||
|
||
# Set the working directory | ||
WORKDIR /app | ||
|
||
# Install git-hound | ||
RUN git clone https://github.com/tillson/git-hound.git | ||
RUN cd git-hound && go build -o /usr/local/bin/git-hound | ||
|
||
# Copy the locally required files to the container | ||
COPY . . | ||
|
||
# Set up a directory for .githound | ||
RUN mkdir -p /root/.githound | ||
|
||
# Set up volume for input files | ||
VOLUME /data | ||
VOLUME /root/.githound | ||
|
||
# Set the default command for the container | ||
ENTRYPOINT ["git-hound"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters