Nils Stinnesbeck
6f11eaa891
* added HETZNER_SERVER_LOCATION * added HETZNER_SERVER_MAX * added HETZNER_SERVER_MIN * added HETZNER_SERVER_TYPE * exposing SCALER_POLL_INTERVAL in Dockerfile * now logging error instead of quitting program * added support for newer woodpecker server version 1.0.x
24 lines
601 B
Docker
24 lines
601 B
Docker
FROM golang:alpine AS builder
|
|
RUN apk update && apk add --no-cache git
|
|
COPY . /jynx/
|
|
WORKDIR /jynx/
|
|
RUN go build -v .
|
|
|
|
FROM scratch
|
|
COPY --from=builder /jynx/jynx /jynx
|
|
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
|
|
ENTRYPOINT ["/jynx"]
|
|
|
|
ENV HETZNER_CLOUD_API_TOKEN=""
|
|
ENV HETZNER_CLOUD_PREFIX=""
|
|
ENV HETZNER_SERVER_IMAGE=""
|
|
ENV HETZNER_SERVER_LOCATION=""
|
|
ENV HETZNER_SERVER_MAX=""
|
|
ENV HETZNER_SERVER_MIN=""
|
|
ENV HETZNER_SERVER_TYPE=""
|
|
ENV LOGLEVEL=""
|
|
ENV SCALER_POLL_INTERVAL=""
|
|
ENV WOODPECKER_AGENT_SECRET=""
|
|
ENV WOODPECKER_HOSTNAME=""
|
|
ENV WOODPECKER_PROMETHEUS_AUTH_TOKEN=""
|