-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #170 from lensesio-dev/feat/OPS-1854-43
Allow not specifying a port in Connect cluster metrics endpoint
- Loading branch information
Showing
10 changed files
with
368 additions
and
122 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,11 @@ | ||
FROM alpine:latest AS downloader | ||
ARG HELM_REPO_URL | ||
ARG BUILD_INFO | ||
|
||
RUN apk --no-cache add --update ca-certificates openssl wget && update-ca-certificates | ||
FROM caddy:2-alpine | ||
|
||
WORKDIR /www | ||
COPY Caddyfile /etc/caddy/Caddyfile | ||
|
||
# Download all charts (tgz files) and index.yaml | ||
RUN wget -m https://lenses.jfrog.io/artifactory/helm-charts/ | ||
# Replace the absolute url in index.yaml | ||
RUN sed "s|https://lenses.jfrog.io/artifactory/api/helm/helm-charts|${HELM_REPO_URL}|" -i lenses.jfrog.io/artifactory/helm-charts/index.yaml | ||
RUN mv lenses.jfrog.io/artifactory/helm-charts/* . | ||
RUN rm -rf lenses.jfrog.io/ index.html | ||
WORKDIR /usr/share/caddy/ | ||
COPY ./charts . | ||
COPY index.html . | ||
RUN echo "${BUILD_INFO}" > build.info | ||
|
||
FROM caddy:2-alpine | ||
|
||
COPY Caddyfile /etc/caddy/Caddyfile | ||
COPY index.html /usr/share/caddy/ | ||
COPY --from=downloader /www /usr/share/caddy/ | ||
EXPOSE 80 | ||
CMD ["caddy", "run", "--config", "/etc/caddy/Caddyfile", "--adapter", "caddyfile"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.