Merge "Build houndd Directly"

This commit is contained in:
Zuul 2023-04-26 04:09:25 +00:00 committed by Gerrit Code Review
commit 28905d028b
2 changed files with 16 additions and 4 deletions

View File

@ -12,14 +12,26 @@
# implied. # implied.
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # 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 ENV GOPATH /go
RUN apt-get update \ 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 \ RUN pip install git+https://opendev.org/opendev/jeepyb#egg=jeepyb \
supervisor supervisor

View File

@ -11,7 +11,7 @@ supervisor.rpcinterface_factory = supervisor.rpcinterface:make_main_rpcinterface
[program:houndd] [program:houndd]
directory=/var/run 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 logfile_maxbytes=0
stdout_logfile_maxbytes=0 stdout_logfile_maxbytes=0
stderr_logfile_maxbytes=0 stderr_logfile_maxbytes=0