1
0
mirror of https://github.com/cnrancher/kube-explorer.git synced 2025-05-08 16:06:38 +00:00

Use kube-explorer to replace steve name

This commit is contained in:
niusmallnan 2021-04-13 16:10:34 +08:00
parent e961cd3743
commit ffb1df15d6
3 changed files with 5 additions and 5 deletions

View File

@ -2,7 +2,7 @@ build:
docker build -t niusmallnan/kube-explorer package/
run: build
docker run $(DOCKER_ARGS) --rm -p 8989:9080 -it -v ${HOME}/.kube:/root/.kube steve --https-listen-port 0 --kubeconfig /root/.kube/config
docker run $(DOCKER_ARGS) --rm -p 8989:9080 -it -v ${HOME}/.kube:/root/.kube niusmallnan/kube-explorer --https-listen-port 0 --kubeconfig /root/.kube/config
run-host: build
docker run $(DOCKER_ARGS) --net=host --uts=host --rm -it -v ${HOME}/.kube:/root/.kube steve --kubeconfig /root/.kube/config --http-listen-port 8989 --https-listen-port 0
docker run $(DOCKER_ARGS) --net=host --uts=host --rm -it -v ${HOME}/.kube:/root/.kube niusmallnan/kube-explorer --kubeconfig /root/.kube/config --http-listen-port 8989 --https-listen-port 0

View File

@ -8,7 +8,7 @@ RUN \
cd steve && \
git reset --hard ${GIT_COMMIT} && \
go mod vendor && \
CGO_ENABLED=0 go build -ldflags "-X github.com/rancher/steve/pkg/ui.UIOffline=true -extldflags -static -s" -o /steve
CGO_ENABLED=0 go build -ldflags "-X github.com/rancher/steve/pkg/ui.UIOffline=true -extldflags -static -s" -o /kube-explorer
FROM alpine:3.13
@ -20,7 +20,7 @@ RUN apk -U --no-cache add bash curl ca-certificates && \
curl -sL https://releases.rancher.com/dashboard/${CATTLE_DASHBOARD_UI_VERSION}.tar.gz | tar xvzf - --strip-components=2 && \
ln -s dashboard/index.html ../index.html
COPY --from=build /steve /usr/bin/steve
COPY --from=build /kube-explorer /usr/bin/
COPY entrypoint.sh /usr/bin
# Hack to make golang do files,dns search order
ENV LOCALDOMAIN=""

View File

@ -1,3 +1,3 @@
#!/bin/bash
/usr/bin/steve --ui-path /usr/share/rancher/ui-dashboard "${@}"
/usr/bin/kube-explorer --ui-path /usr/share/rancher/ui-dashboard "${@}"