Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Example of manual modifications required to use an ssh key as input #478

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,6 @@ VOLUME ["/data"]

EXPOSE 6080

ENTRYPOINT ["/sbin/tini", "--", "/bin/houndd", "-conf", "/data/config.json"]
RUN chmod +x ./src/entrypoint.sh

CMD ["/sbin/tini", "--", "./src/entrypoint.sh"]
2 changes: 1 addition & 1 deletion config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
)

const (
defaultMsBetweenPoll = 30000
defaultMsBetweenPoll = 300000
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would be nice to provide this at a global level as well as a per repo config.

defaultMaxConcurrentIndexers = 2
defaultPushEnabled = false
defaultPollEnabled = true
Expand Down
7 changes: 7 additions & 0 deletions entrypoint.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/sh

eval $(ssh-agent -s) && ssh-add /root/.ssh/hound_id_ed25519

ssh-keyscan -t ssh-ed25519 private.vcs.instance >> /root/.ssh/known_hosts

/bin/houndd -conf /data/config.json