mirror of
https://github.com/cnrancher/kube-explorer.git
synced 2025-09-02 23:17:41 +00:00
Compare commits
8 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
a90dd6cafc | ||
|
b227ab5257 | ||
|
db3c9e207d | ||
|
ac0ab3d84c | ||
|
41cfdac948 | ||
|
4549f4bf30 | ||
|
32a422d532 | ||
|
db9fafa217 |
@@ -19,10 +19,10 @@ ENV DOCKER_URL_amd64=https://get.docker.com/builds/Linux/x86_64/docker-1.10.3 \
|
|||||||
DOCKER_URL=DOCKER_URL_${ARCH}
|
DOCKER_URL=DOCKER_URL_${ARCH}
|
||||||
RUN wget -O - ${!DOCKER_URL} > /usr/bin/docker && chmod +x /usr/bin/docker
|
RUN wget -O - ${!DOCKER_URL} > /usr/bin/docker && chmod +x /usr/bin/docker
|
||||||
|
|
||||||
ENV GIT_COMMIT="327be56d3a6a2b85cf4751148f6834402e8211d5" \
|
ENV GIT_COMMIT="9a95cd2eae9c4a3effa12fb13826cee48c40e26a" \
|
||||||
GIT_BRANCH="kube-explorer" \
|
GIT_BRANCH="ke/v0.2" \
|
||||||
GIT_SOURCE="/go/src/github.com/rancher/steve" \
|
GIT_SOURCE="/go/src/github.com/rancher/steve" \
|
||||||
CATTLE_DASHBOARD_UI_VERSION=v2.5.8-cn
|
CATTLE_DASHBOARD_UI_VERSION=v2.6.1-kube-explorer-ui-rc1
|
||||||
|
|
||||||
ENV DAPPER_ENV REPO TAG DRONE_TAG CROSS
|
ENV DAPPER_ENV REPO TAG DRONE_TAG CROSS
|
||||||
ENV DAPPER_SOURCE /opt/kube-explorer
|
ENV DAPPER_SOURCE /opt/kube-explorer
|
||||||
|
16
README.md
16
README.md
@@ -1,6 +1,6 @@
|
|||||||
# kube-explorer
|
# kube-explorer
|
||||||
|
|
||||||
kube-explorer is portable explorer for Kubernetes, without any dependency.
|
kube-explorer is a portable explorer for Kubernetes without any dependency.
|
||||||
|
|
||||||
It integrates the Rancher steve framework and its dashboard, and is recompiled, packaged, compressed, and provides an almost completely stateless Kubernetes resource manager.
|
It integrates the Rancher steve framework and its dashboard, and is recompiled, packaged, compressed, and provides an almost completely stateless Kubernetes resource manager.
|
||||||
|
|
||||||
@@ -15,3 +15,17 @@ To run an HTTP only server:
|
|||||||
```
|
```
|
||||||
|
|
||||||
Then, open the browser to visit http://x.x.x.x:9898 .
|
Then, open the browser to visit http://x.x.x.x:9898 .
|
||||||
|
|
||||||
|
## Build ✅
|
||||||
|
|
||||||
|
To debug on an AMD64 Linux host:
|
||||||
|
|
||||||
|
```
|
||||||
|
make
|
||||||
|
```
|
||||||
|
|
||||||
|
To build all cross-platform binaries:
|
||||||
|
|
||||||
|
```
|
||||||
|
CROSS=1 make
|
||||||
|
```
|
||||||
|
@@ -4,7 +4,6 @@ set -e
|
|||||||
source $(dirname $0)/version
|
source $(dirname $0)/version
|
||||||
|
|
||||||
OS_ARCH_ARG_LINUX="amd64 arm arm64"
|
OS_ARCH_ARG_LINUX="amd64 arm arm64"
|
||||||
OS_ARCH_ARG_WINDOWS="amd64"
|
|
||||||
OS_ARCH_ARG_DARWIN="amd64"
|
OS_ARCH_ARG_DARWIN="amd64"
|
||||||
|
|
||||||
LD_INJECT_VALUES="-X github.com/rancher/steve/pkg/version.Version=$VERSION
|
LD_INJECT_VALUES="-X github.com/rancher/steve/pkg/version.Version=$VERSION
|
||||||
@@ -24,15 +23,6 @@ if [ -n "$CROSS" ]; then
|
|||||||
-o ${OUTPUT_BIN}
|
-o ${OUTPUT_BIN}
|
||||||
done
|
done
|
||||||
|
|
||||||
for ARCH in ${OS_ARCH_ARG_WINDOWS}; do
|
|
||||||
OUTPUT_BIN="bin/kube-explorer-windows-$ARCH.exe"
|
|
||||||
echo "Building binary for windows/$ARCH..."
|
|
||||||
GOARCH=$ARCH GOOS=windows CGO_ENABLED=0 go build -tags embed \
|
|
||||||
-ldflags \
|
|
||||||
"$LD_INJECT_VALUES $LINKFLAGS" \
|
|
||||||
-o ${OUTPUT_BIN}
|
|
||||||
done
|
|
||||||
|
|
||||||
for ARCH in ${OS_ARCH_ARG_DARWIN}; do
|
for ARCH in ${OS_ARCH_ARG_DARWIN}; do
|
||||||
OUTPUT_BIN="bin/kube-explorer-darwin-$ARCH"
|
OUTPUT_BIN="bin/kube-explorer-darwin-$ARCH"
|
||||||
echo "Building binary for darwin/$ARCH..."
|
echo "Building binary for darwin/$ARCH..."
|
||||||
|
@@ -10,7 +10,7 @@ git reset --hard ${GIT_COMMIT}
|
|||||||
|
|
||||||
mkdir -p pkg/ui/ui/dashboard
|
mkdir -p pkg/ui/ui/dashboard
|
||||||
cd pkg/ui/ui/dashboard
|
cd pkg/ui/ui/dashboard
|
||||||
curl -sL https://rancher-dashboard-ui.s3.ap-southeast-2.amazonaws.com/release-2.5/${CATTLE_DASHBOARD_UI_VERSION}.tar.gz | tar xvzf - --strip-components=2
|
curl -sL https://rancher-dashboard-ui.s3.ap-southeast-2.amazonaws.com/release-2.6-cn/kube-explorer-ui/${CATTLE_DASHBOARD_UI_VERSION}.tar.gz | tar xvzf - --strip-components=2
|
||||||
cp index.html ../index.html
|
cp index.html ../index.html
|
||||||
|
|
||||||
popd
|
popd
|
||||||
|
Reference in New Issue
Block a user