-
Notifications
You must be signed in to change notification settings - Fork 1
/
make-env.yaml
105 lines (98 loc) · 2.83 KB
/
make-env.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
vars:
goOS: $(shell go env GOOS)
goArch: $(shell go env GOARCH)
dockerArch: x86_64
tools:
yq:
http:
url: 'https://{{ .Vars.mirror }}/{{ .Vars.version }}/yq_{{ .Vars.goOS }}_{{ .Vars.goArch }}.tar.gz'
tar:
compression: gzip
path: './yq_{{ .Vars.goOS }}_{{ .Vars.goArch }}'
vars:
mirror: github.com/mikefarah/yq/releases/download
version: v4.44.1
ginkgo:
go:
module: github.com/onsi/ginkgo/v2
subPath: ginkgo
version: '{{ .Vars.version }}'
vars:
version: $(shell go mod edit -print | grep ginkgo | cut -d ' ' -f2)
kubectl:
http:
url: '{{ .Vars.mirror }}/{{ .Vars.version }}/bin/{{ .Vars.goOS }}/{{ .Vars.goArch }}/kubectl'
vars:
mirror: https://dl.k8s.io/release
version: v1.25.11
helm:
http:
url: 'https://get.helm.sh/helm-{{ .Vars.version }}-{{ .Vars.goOS }}-{{ .Vars.goArch }}.tar.gz'
tar:
compression: gzip
path: '{{ .Vars.goOS }}-{{ .Vars.goArch }}/helm'
vars:
mirror: https://dl.k8s.io/release
version: v3.12.2
docker:
http:
url: '{{ .Vars.mirror }}/{{ .Vars.dockerArch }}/docker-{{ .Vars.version }}.tgz'
tar:
compression: gzip
path: docker/docker
vars:
mirror: https://download.docker.com/linux/static/stable
version: 27.1.0
docker-buildx:
http:
url: '{{ .Vars.mirror }}/{{ .Vars.version }}/buildx-{{ .Vars.version }}.{{ .Vars.goOS }}-{{ .Vars.goArch }}'
vars:
mirror: https://github.com/docker/buildx/releases/download
version: v0.16.1
kind:
http:
url: '{{ .Vars.mirror }}/{{ .Vars.version }}/kind-{{ .Vars.goOS }}-{{ .Vars.goArch }}'
vars:
mirror: https://github.com/kubernetes-sigs/kind/releases/download
version: v0.17.0
helm-hog:
go:
module: github.com/meln5674/helm-hog
version: 3af9ec621dcc359e38e966a255571a39beefe624
toolSets:
all-test-tools:
- ginkgo
all-e2e-tools:
- ginkgo
- kubectl
- helm
- docker
- kind
- helm-hog
all-helm-tools:
- yq
- helm
- helm-hog
- docker
- kind
dockerfile:
from: docker.io/library/golang:1.20.4
goImage: docker.io/library/golang:1.19
curlImage: docker.io/alpine/curl:8.8.0
args:
CHROME_IMAGE: docker.io/chromedp/headless-shell
CHROME_VERSION: 116.0.5845.14
extraStages: |
FROM ${CHROME_IMAGE}:${CHROME_VERSION} AS chrome
preCopy: |
RUN \
apt-get update -y \
&& apt-get install -y libnspr4 libnss3 libexpat1 libfontconfig1 libuuid1 \
&& apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
COPY --from=chrome /headless-shell/ /headless-shell/
postCopy: |
RUN mkdir -p /usr/lib/docker/cli-plugins \
&& ln -s ${LOCALBIN}/docker-buildx /usr/lib/docker/cli-plugins/
ENV LANG=en-US.UTF-8
ENV PATH=/headless-shell:$PATH
ENV RUNNING_IN_CONTAINER=1