mirror of
https://github.com/cnrancher/kube-explorer.git
synced 2025-09-02 15:05:14 +00:00
Compare commits
26 Commits
v0.2.9-rc2
...
v0.2.15
Author | SHA1 | Date | |
---|---|---|---|
|
6b3215ba17 | ||
|
cafe8d3b1e | ||
|
72df772c20 | ||
|
585cf9c8a6 | ||
|
f448fc1de0 | ||
|
2838ceb34a | ||
|
40a972eeef | ||
|
88c924a816 | ||
|
d24282849f | ||
|
92aaca7407 | ||
|
c278dbb810 | ||
|
5c2ecdfb97 | ||
|
ecf6faba80 | ||
|
a89b9b46bf | ||
|
30c0ceef73 | ||
|
f6536c289e | ||
|
5347d02990 | ||
|
663e8d7682 | ||
|
dd8291f9e3 | ||
|
55e5418bd0 | ||
|
7c3f7b5401 | ||
|
98ae5fe7c9 | ||
|
f91c8df6e2 | ||
|
6344c0767a | ||
|
bbb5db5fb5 | ||
|
a81fc996c9 |
17
.drone.yml
17
.drone.yml
@@ -70,6 +70,8 @@ steps:
|
|||||||
- sha256
|
- sha256
|
||||||
files:
|
files:
|
||||||
- "bin/*"
|
- "bin/*"
|
||||||
|
title: "${DRONE_TAG}"
|
||||||
|
overwrite: true
|
||||||
when:
|
when:
|
||||||
event:
|
event:
|
||||||
- tag
|
- tag
|
||||||
@@ -94,6 +96,21 @@ steps:
|
|||||||
event:
|
event:
|
||||||
- push
|
- push
|
||||||
|
|
||||||
|
- name: image-scan-head
|
||||||
|
image: aquasec/trivy
|
||||||
|
commands:
|
||||||
|
- trivy image --no-progress --ignore-unfixed --severity HIGH,CRITICAL --scanners vuln --exit-code 1 cnrancher/kube-explorer:head-linux-amd64
|
||||||
|
volumes:
|
||||||
|
- name: docker
|
||||||
|
path: /var/run/docker.sock
|
||||||
|
when:
|
||||||
|
ref:
|
||||||
|
include:
|
||||||
|
- "refs/heads/main"
|
||||||
|
- "refs/heads/v*"
|
||||||
|
event:
|
||||||
|
- push
|
||||||
|
|
||||||
- name: docker-publish
|
- name: docker-publish
|
||||||
pull: default
|
pull: default
|
||||||
image: plugins/docker
|
image: plugins/docker
|
||||||
|
@@ -1,28 +1,23 @@
|
|||||||
FROM golang:1.17
|
FROM registry.suse.com/bci/golang:1.19
|
||||||
|
|
||||||
ARG DAPPER_HOST_ARCH
|
ARG DAPPER_HOST_ARCH
|
||||||
ENV HOST_ARCH=${DAPPER_HOST_ARCH} ARCH=${DAPPER_HOST_ARCH}
|
ENV HOST_ARCH=${DAPPER_HOST_ARCH} ARCH=${DAPPER_HOST_ARCH}
|
||||||
|
|
||||||
RUN apt-get update && \
|
RUN zypper -n install ca-certificates git-core wget curl unzip tar vim less file xz
|
||||||
apt-get install -y ca-certificates git wget curl xz-utils && \
|
RUN zypper install -y -f docker
|
||||||
rm -f /bin/sh && ln -s /bin/bash /bin/sh && \
|
|
||||||
curl -sL https://github.com/upx/upx/releases/download/v3.96/upx-3.96-${ARCH}_linux.tar.xz | tar xvJf - --strip-components=1 -C /tmp && \
|
ENV UPX_VERSION 4.0.2
|
||||||
|
RUN curl -sL https://github.com/upx/upx/releases/download/v${UPX_VERSION}/upx-${UPX_VERSION}-${ARCH}_linux.tar.xz | tar xvJf - --strip-components=1 -C /tmp && \
|
||||||
mv /tmp/upx /usr/bin/
|
mv /tmp/upx /usr/bin/
|
||||||
|
|
||||||
RUN if [ "${ARCH}" == "amd64" ]; then \
|
RUN if [ "${ARCH}" == "amd64" ]; then \
|
||||||
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s v1.43.0; \
|
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s v1.49.0; \
|
||||||
fi
|
fi
|
||||||
|
|
||||||
ENV DOCKER_URL_amd64=https://get.docker.com/builds/Linux/x86_64/docker-1.10.3 \
|
ENV GIT_COMMIT="9fc1f146baae51295bf8d4b3f3a2d24b79fddd43" \
|
||||||
DOCKER_URL_arm=https://github.com/rancher/docker/releases/download/v1.10.3-ros1/docker-1.10.3_arm \
|
|
||||||
DOCKER_URL_arm64=https://github.com/rancher/docker/releases/download/v1.10.3-ros1/docker-1.10.3_arm64 \
|
|
||||||
DOCKER_URL=DOCKER_URL_${ARCH}
|
|
||||||
RUN wget -O - ${!DOCKER_URL} > /usr/bin/docker && chmod +x /usr/bin/docker
|
|
||||||
|
|
||||||
ENV GIT_COMMIT="62d6de019d8e82af5194c2e810e336eb03aa1bd6" \
|
|
||||||
GIT_BRANCH="ke/v0.2" \
|
GIT_BRANCH="ke/v0.2" \
|
||||||
GIT_SOURCE="/go/src/github.com/rancher/steve" \
|
GIT_SOURCE=${GOPATH}/src/github.com/rancher/steve \
|
||||||
CATTLE_DASHBOARD_UI_VERSION=v2.6.5-rc7-kube-explorer-ui-rc1
|
CATTLE_DASHBOARD_UI_VERSION="v2.6.12-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
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
## Traefik Auth
|
## Ingress-Nginx Basic Auth
|
||||||
|
|
||||||
This can be used in the cluster which uses the nginx-ingress.
|
This can be used in the cluster which uses the nginx-ingress.
|
||||||
|
|
||||||
|
@@ -1,6 +1,4 @@
|
|||||||
FROM alpine:3.13
|
FROM registry.suse.com/bci/bci-minimal:15.4
|
||||||
|
|
||||||
COPY kube-explorer entrypoint.sh /usr/bin/
|
COPY kube-explorer entrypoint.sh /usr/bin/
|
||||||
# Hack to make golang do files,dns search order
|
|
||||||
ENV LOCALDOMAIN=""
|
|
||||||
ENTRYPOINT ["entrypoint.sh"]
|
ENTRYPOINT ["entrypoint.sh"]
|
||||||
|
@@ -4,7 +4,7 @@ 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_DARWIN="amd64"
|
OS_ARCH_ARG_DARWIN="amd64 arm64"
|
||||||
|
|
||||||
LD_INJECT_VALUES="-X github.com/rancher/steve/pkg/version.Version=$VERSION
|
LD_INJECT_VALUES="-X github.com/rancher/steve/pkg/version.Version=$VERSION
|
||||||
-X github.com/rancher/steve/pkg/version.GitCommit=$COMMIT"
|
-X github.com/rancher/steve/pkg/version.GitCommit=$COMMIT"
|
||||||
@@ -40,7 +40,9 @@ else
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
for f in $(ls ./bin/); do
|
for f in $(ls ./bin/); do
|
||||||
upx -o $DAPPER_SOURCE/bin/$f bin/$f || true
|
if [[ $f != *darwin* ]]; then
|
||||||
|
upx -o $DAPPER_SOURCE/bin/$f bin/$f || true
|
||||||
|
fi
|
||||||
if [ -f $DAPPER_SOURCE/bin/$f ]; then
|
if [ -f $DAPPER_SOURCE/bin/$f ]; then
|
||||||
echo "UPX done!"
|
echo "UPX done!"
|
||||||
else
|
else
|
||||||
|
Reference in New Issue
Block a user