Ian Wienand 58edcbb3df 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
2023-04-21 23:03:30 +09:00

50 lines
1.5 KiB
Docker

# Copyright (c) 2020 Red Hat, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
# implied.
# See the License for the specific language governing permissions and
# limitations under the License.
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 make npm rsync
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
RUN apt-get clean \
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
ADD supervisord.conf /etc/supervisor/conf.d/supervisord.conf
ADD start-container.sh /usr/bin/start-container
ADD update-hound-config.sh /usr/local/bin/update-hound-config
ADD resync-hound.sh /usr/local/bin/resync-hound
ADD sample-projects.yaml /var/run/sample-projects.yaml
ENTRYPOINT ["start-container"]