Created
July 26, 2018 15:44
-
-
Save cfcosta/e629b9f8e0a13ab271d7ecc75a42f69f to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| FROM rhel7 as builder | |
| ADD kiali /go/src/github.com/kiali/kiali | |
| ADD kiali-ui /go/src/github.com/kiali/kiali-ui | |
| ENV GOPATH=/go | |
| WORKDIR /go/src/github.com/kiali/kiali | |
| RUN yum upgrade -y | |
| RUN yum install -y curl | |
| RUN curl --silent --location https://rpm.nodesource.com/setup_8.x | bash - \ | |
| && curl -sL https://dl.yarnpkg.com/rpm/yarn.repo | tee /etc/yum.repos.d/yarn.repo | |
| RUN yum install -y go make git nodejs yarn | |
| RUN make build | |
| WORKDIR /go/src/github.com/kiali/kiali-ui | |
| RUN yarn install && yarn build | |
| # This is the final image, that receives the built artifacts from the builder | |
| FROM rhel7 | |
| LABEL com.redhat.component="openshift3-istio-kiali-container" \ | |
| name="openshift3-istio-tech-preview/kiali" \ | |
| summary="Kiali Service Mesh Observability" \ | |
| description="Kiali Service Mesh Observability system" \ | |
| io.openshift.expose-services="20001:http" \ | |
| io.openshift.tags="monitoring" \ | |
| io.k8s.display-name="Kiali Service Mesh Observability" \ | |
| maintainer="Kiali Team" \ | |
| version="0.5.0" | |
| ENV KIALI_HOME=/opt/kiali \ | |
| PATH=$KIALI_HOME:$PATH | |
| RUN mkdir -p $KIALI_HOME | |
| COPY --from=builder /go/bin/kiali $KIALI_HOME | |
| COPY --from=builder /go/src/github.com/kiali/kiali-ui/build $KIALI_HOME/console | |
| USER 1001 | |
| EXPOSE 20001 | |
| ENTRYPOINT ["/opt/kiali/kiali"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment