Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Chu Peng 楚鹏
minikube
提交
5659a1df
M
minikube
项目概览
Chu Peng 楚鹏
/
minikube
与 Fork 源项目一致
从无法访问的项目Fork
通知
2
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
M
minikube
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
5659a1df
编写于
3月 17, 2020
作者:
P
Priya Wadhwa
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Remove cloudbuild stuff, run preload generation in jenkins
上级
2778bd1c
变更
4
显示空白变更内容
内联
并排
Showing
4 changed file
with
29 addition
and
9 deletion
+29
-9
Makefile
Makefile
+0
-4
deploy/preload/cloudbuild.yaml
deploy/preload/cloudbuild.yaml
+0
-4
hack/jenkins/minikube_cross_build_and_upload.sh
hack/jenkins/minikube_cross_build_and_upload.sh
+1
-1
hack/jenkins/preload_generation.sh
hack/jenkins/preload_generation.sh
+28
-0
未找到文件。
Makefile
浏览文件 @
5659a1df
...
@@ -523,10 +523,6 @@ kic-base-image: ## builds the base image used for kic.
...
@@ -523,10 +523,6 @@ kic-base-image: ## builds the base image used for kic.
docker rmi
-f
$(REGISTRY)
/kicbase:
$(KIC_VERSION)
-snapshot
||
true
docker rmi
-f
$(REGISTRY)
/kicbase:
$(KIC_VERSION)
-snapshot
||
true
docker build
-f
./hack/images/kicbase.Dockerfile
-t
$(REGISTRY)
/kicbase:
$(KIC_VERSION)
-snapshot
--build-arg
COMMIT_SHA
=
${VERSION}
-
$(COMMIT)
--target
base .
docker build
-f
./hack/images/kicbase.Dockerfile
-t
$(REGISTRY)
/kicbase:
$(KIC_VERSION)
-snapshot
--build-arg
COMMIT_SHA
=
${VERSION}
-
$(COMMIT)
--target
base .
.PHONY
:
preload-generator-image
preload-generator-image
:
docker build
-t
gcr.io/k8s-minikube/preload-generator
-f
deploy/preload/Dockerfile deploy/preload
.PHONY
:
upload-preloaded-images-tar
.PHONY
:
upload-preloaded-images-tar
upload-preloaded-images-tar
:
out/minikube
#
Upload the preloaded images for oldest supported
,
newest supported
,
and default kubernetes versions to GCS.
upload-preloaded-images-tar
:
out/minikube
#
Upload the preloaded images for oldest supported
,
newest supported
,
and default kubernetes versions to GCS.
go run ./hack/preload-images/
*
.go
go run ./hack/preload-images/
*
.go
...
...
deploy/preload/cloudbuild.yaml
已删除
100644 → 0
浏览文件 @
2778bd1c
steps
:
-
image
:
gcr.io/cloud-builders/docker
args
:
[
"
build"
,
"
-t"
,
"
preload-generator"
,
"
-f"
,
"
deploy/preload/Dockerfile"
,
"
deploy/preload"
]
-
image
:
preload-generator
hack/jenkins/minikube_cross_build_and_upload.sh
浏览文件 @
5659a1df
deploy/preload/Dockerfile
→
hack/jenkins/preload_generation.sh
浏览文件 @
5659a1df
# Copyright 2020 The Kubernetes Authors All rights reserved.
#!/bin/bash
# Copyright 2016 The Kubernetes Authors All rights reserved.
#
#
# Licensed under the Apache License, Version 2.0 (the "License");
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# you may not use this file except in compliance with the License.
...
@@ -12,36 +14,15 @@
...
@@ -12,36 +14,15 @@
# See the License for the specific language governing permissions and
# See the License for the specific language governing permissions and
# limitations under the License.
# limitations under the License.
# Download gcloud
# This script builds all the minikube binary for all 3 platforms as well as Windows-installer and .deb
FROM
alpine:3.10 as download-gcloud
# This is intended to be run on a new release tag in order to build/upload the required files for a release
ENV
GCLOUD_VERSION 276.0.0
ENV
GCLOUD_URL https://dl.google.com/dl/cloudsdk/channels/rapid/downloads/google-cloud-sdk-${GCLOUD_VERSION}-linux-x86_64.tar.gz
RUN
wget
-O
gcloud.tar.gz
"
${
GCLOUD_URL
}
"
RUN
tar
-zxf
gcloud.tar.gz
FROM
gcr.io/gcp-runtimes/ubuntu_16_0_4
# Install python and make
RUN
apt-get update
&&
\
apt-get
install
--no-install-recommends
--no-install-suggests
-y
\
python make
&&
\
rm
-rf
/var/lib/apt/lists/
*
# Install docker
COPY
--from=docker:18.09.6 /usr/local/bin/docker /usr/local/bin/
# Install gcloud dependencies
set
-eux
-o
pipefail
COPY
--from=download-gcloud google-cloud-sdk/ /google-cloud-sdk/
# Finish installation of gcloud
RUN
CLOUDSDK_PYTHON
=
"python2.7"
/google-cloud-sdk/install.sh
\
--usage-reporting
=
false
\
--bash-completion
=
false
\
--disable-installation-options
ENV
PATH=$PATH:/google-cloud-sdk/bin
RUN
gcloud auth configure-docker
#
Install go
#
Make sure the right golang version is installed based on Makefile
COPY
--from=golang:1.14 /usr/local/go /usr/local/go
WANT_GOLANG_VERSION
=
$(
grep
'^GO_VERSION'
Makefile |
awk
'{ print $3 }'
)
ENV
PATH=$PATH:/usr/local/go/bin
./hack/jenkins/installers/check_install_golang.sh
$WANT_GOLANG_VERSION
/usr/local
CMD
make upload-preloaded-images-tar
make upload-preloaded-images-tar
make clean
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录