Build houndd Directly

The UI bits for hound isn't rebuild properly upstream, causing some
overlay issues with advance option. In this patch, we build the houndd
from scratch to fix this issue.

Ian filed a PR upstream at
https://github.com/hound-search/hound/pull/456

Change-Id: Ia00dee2035b9785bd911c3724b0249cefbed3f57
This commit is contained in:
Ian Wienand 2023-04-21 14:50:51 +10:00 committed by Gene Kuo
parent 7edebf5d2a
commit 58edcbb3df
2 changed files with 16 additions and 4 deletions

View File

@ -12,14 +12,26 @@
# implied.
# See the License for the specific language governing permissions and
# limitations under the License.
FROM docker.io/opendevorg/python-base:3.9-bullseye
FROM docker.io/opendevorg/python-base:3.9-bullseye AS builder
WORKDIR /tmp
ENV GOPATH /go
RUN apt-get update \
&& apt-get install -y curl golang git
&& apt-get install -y curl golang git make npm rsync
RUN go get github.com/hound-search/hound/cmds/...
RUN git clone https://github.com/hound-search/hound \
&& cd hound \
&& make
FROM docker.io/opendevorg/python-base:3.9-bullseye
COPY --from=builder /tmp/hound/.build/bin/hound /usr/local/bin
COPY --from=builder /tmp/hound/.build/bin/houndd /usr/local/bin
RUN apt-get update \
&& apt-get install -y curl git
RUN pip install git+https://opendev.org/opendev/jeepyb#egg=jeepyb \
supervisor

View File

@ -11,7 +11,7 @@ supervisor.rpcinterface_factory = supervisor.rpcinterface:make_main_rpcinterface
[program:houndd]
directory=/var/run
command=/go/bin/houndd -conf /var/run/config.json
command=/usr/local/bin/houndd -conf /var/run/config.json
logfile_maxbytes=0
stdout_logfile_maxbytes=0
stderr_logfile_maxbytes=0