forked from moby/buildkit
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
78 changed files
with
13,563 additions
and
14 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,88 @@ | ||
apiVersion: builds.katanomi.dev/v1alpha1 | ||
kind: Build | ||
spec: | ||
workspaces: | ||
- description: | | ||
This workspace is shared among all the pipeline tasks to read/write common resources | ||
name: source | ||
tasks: | ||
- name: buildkit-oss-version | ||
workspaces: | ||
- name: source | ||
workspace: source | ||
taskSpec: | ||
description: | | ||
generate oss version | ||
results: | ||
- description: oss version | ||
name: oss-version | ||
steps: | ||
- image: build-harbor.alauda.cn/devops/builder-tools:alpine-v3.8.0 | ||
name: read-oss-file | ||
imagePullPolicy: IfNotPresent | ||
workingDir: $(workspaces.source.path) | ||
resources: | ||
requests: | ||
cpu: 100m | ||
memory: 100Mi | ||
script: | | ||
echo "generate oss version" | ||
echo -n "$(cat ./buildkit_version| xargs echo -e)" | ||
echo -n "$(cat ./buildkit_version| xargs echo -e)" > $(results.oss-version.path) | ||
workspaces: | ||
- name: source | ||
workspace: source | ||
- name: build-buildkit-image | ||
runAfter: | ||
- buildkit-oss-version | ||
timeout: 30m | ||
retries: 0 | ||
taskRef: | ||
kind: ClusterTask | ||
name: alauda-build-image | ||
workspaces: | ||
- name: source | ||
workspace: source | ||
params: | ||
- name: container-image | ||
value: build-harbor.alauda.cn/devops/buildkit | ||
- name: container-image-tag | ||
value: $(tasks.buildkit-oss-version.results.oss-version)-alpine-$(build.git.lastCommit.shortID) | ||
- name: dockerfile | ||
value: Dockerfile | ||
- name: labels | ||
value: | ||
- branch=$(build.git.branch) | ||
- commit=$(build.git.lastCommit.id) | ||
- name: build-extra-args | ||
value: --build-arg app_version=$(build.git.version.docker) --build-arg | ||
commit_id=$(build.git.lastCommit.id) --build-arg GIT_REVISION=$(build.git.lastCommit.id) --build-arg GIT_VERSION=$(build.git.version.docker) | ||
- name: platform | ||
value: | ||
- linux/amd64 | ||
- linux/arm64 | ||
- name: tools-image | ||
value: registry.alauda.cn:60080/devops/builder-tools:v3.8-0-g377a3f9 | ||
- name: verbose | ||
value: "false" | ||
- name: image-scan | ||
runAfter: | ||
- build-buildkit-image | ||
timeout: 30m | ||
retries: 0 | ||
taskRef: | ||
kind: ClusterTask | ||
name: trivy-image-scan | ||
workspaces: | ||
- name: source | ||
workspace: source | ||
when: [] | ||
params: | ||
- name: targets | ||
value: | ||
- $(tasks.build-buildkit-image.results.ociContainerImageBuild-url) | ||
- name: quality-gate | ||
value: "false" | ||
runTemplate: | ||
spec: | ||
taskRunSpecs: [] |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# buildkit 变更记录 | ||
|
||
官方地址:[buildkit](https://github.com/moby/buildkit/tree/v0.13.1) | ||
|
||
- 自动识别 http/https 仓库,默认使用insecure client请求。 | ||
- [DEVOPS-19463](https://jira.alauda.cn/browse/DEVOPS-19463) pull http仓库失败问题 | ||
- [DEVOPS-19601](https://jira.alauda.cn/browse/DEVOPS-19601) 连接自签名https仓库拉取失败问题 |
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
v0.13.1 |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
apiVersion: backstage.io/v1alpha1 | ||
kind: Component | ||
metadata: | ||
name: buildkit | ||
title: buildkit | ||
description: Buildkit 是一个高效的构建镜像的工具,该镜像基于官方版本做了若干参数的调整定制。 | ||
annotations: | ||
# gitlab plugin | ||
gitlab.com/project-slug: devops/builder-buildkit | ||
gitlab.com/instance: gitlab-ce.alauda.cn | ||
# acp cicd plugin | ||
acp.cpaas.io/ci-pipeline: devops/business-build/tools/builder-buildkit | ||
acp.cpaas.io/instance: edge.alauda.cn | ||
# harbor plugin | ||
goharbor.io/repository-slug: devops/buildkit | ||
# sonarqube plugin | ||
sonarqube.org/project-key: "" | ||
# backstage techdocs plugin | ||
backstage.io/techdocs-ref: dir:./buildkit-v0.10.4 | ||
acp.cpaas.io/owner: kychen@alauda.io | ||
|
||
spec: | ||
type: tools | ||
system: system:katanomi-system | ||
lifecycle: production | ||
owner: devops |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.