Skip to content

Single container, multiple pollers? #2041

Closed Answered by rahulguptajss
frankvdbh asked this question in Q&A
Discussion options

You must be logged in to vote

@frankvdbh You can find the Dockerfile here.

I have made some modifications to these files to ensure that they work with the latest code.

Dockerfile

FROM golang:alpine AS builder

RUN apk add --no-cache git curl && \
    apk add --virtual build-dependencies build-base gcc bash

ARG INSTALL_DIR=/opt/harvest
ARG BUILD_DIR=/opt/home
ARG VERSION=2.0
ARG RELEASE=nightly

WORKDIR $BUILD_DIR

RUN mkdir -p $INSTALL_DIR

COPY . .

RUN make build VERSION=$VERSION RELEASE=$RELEASE && \
    cp -a $BUILD_DIR/harvest.yml $INSTALL_DIR/harvest.yml.example && \
    cp -aR bin $BUILD_DIR/conf $BUILD_DIR/grafana $BUILD_DIR/container/multiPoller/docker-entrypoint.sh $INSTALL_DIR && \
    chmod +x $INSTALL_DI…

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by frankvdbh
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants