-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrecipes.tpl.yaml
More file actions
157 lines (153 loc) · 4.46 KB
/
recipes.tpl.yaml
File metadata and controls
157 lines (153 loc) · 4.46 KB
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
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
build:
com.google.cloud.tools.jib-maven-plugin:
dockercfg: true
cd: true
env:
BUILD_IMAGE_PASSWORD: "{{ .Image.Password }}"
command: mvn
args:
- compile
- com.google.cloud.tools:jib-maven-plugin:3.3.2:build
- -Djib.from.image={{ .Image.Parent }}
- -Djib.from.auth.username={{ .Image.Username }}
- -Djib.from.auth.password=$BUILD_IMAGE_PASSWORD
- -Djib.to.image={{ .Image.Name }}
- -Djib.to.auth.username={{ .Image.Username }}
- -Djib.to.auth.password=$BUILD_IMAGE_PASSWORD
- -Djib.to.tags={{ range $i, $e := .Tags }}{{ if $i }},{{ end }}{{ $e }}{{ end }}
- -Djib.container.format=OCI
- -Djib.container.user=1001:0
{{- if .Cache.Enabled }}
- -Djib.baseImageCache={{ .Cache.Path }}
- -Djib.applicationCache={{ .Cache.Path }}
{{- end }}
- -Dproject.build.outputTimestamp=2023-01-01T00:00:00Z
{{- range $i, $e := .ExtraArgs }}
- "{{ $e }}"
{{- end }}
com.github.Snakdy.container-build-engine:
dockercfg: true
command: container-build-engine
args:
- build
- --image={{ .Image.Name }}
{{- range $i, $e := .Tags }}
- -t={{ $e }}
{{- end }}
{{- range $i, $e := .ExtraArgs }}
- {{ $e }}
{{- end }}
com.github.Snakdy.terrarium:
dockercfg: true
env:
TERRARIUM_DEFAULT_BASE_IMAGE: "{{ .Image.Parent }}"
TERRARIUM_DOCKER_REPO: "{{ .Image.Name }}"
TERRARIUM_CACHE: "{{ .Cache.Path }}"
command: terrarium
args:
- build
{{- range $i, $e := .Tags }}
- -t={{ $e }}
{{- end }}
{{- range $i, $e := .ExtraArgs }}
- {{ $e }}
{{- end }}
- {{ .Context }}
com.github.djcass44.nib:
dockercfg: true
env:
NIB_DEFAULT_BASE_IMAGE: "{{ .Image.Parent }}"
NIB_DOCKER_REPO: "{{ .Image.Name }}"
NIB_CACHE: {{ .Cache.Path }}
command: nib
args:
- build
- -t
- {{ range $i, $e := .Tags }}{{ if $i }},{{ end }}{{ $e }}{{ end }}
{{- range $i, $e := .ExtraArgs }}
- "{{ $e }}"
{{- end }}
- {{ .Context }}
com.github.djcass44.all-your-base:
cd: true
dockercfg: true
command: ayb
args:
- build
- --config=build.yaml
- --cache-dir={{ .Cache.Path }}
- --image={{ .Image.Name }}
{{- range $i, $e := .Tags }}
- --tag={{ $e }}
{{- end }}
com.github.google.ko:
cd: true
dockercfg: true
env:
KO_DEFAULTBASEIMAGE: "{{ .Image.Parent }}"
KO_DOCKER_REPO: "{{ .Image.Name }}"
{{- if .Cache.Enabled }}
KOCACHE: {{ .Cache.Path }}
{{- end }}
GOFLAGS: "-buildvcs=false -trimpath"
command: ko
args:
- build
- --sbom=none
- --bare
- -t
- {{ range $i, $e := .Tags }}{{ if $i }},{{ end }}{{ $e }}{{ end }}
{{- range $i, $e := .ExtraArgs }}
- "{{ $e }}"
{{- end }}
- .{{ if .Go.ImportPath }}/{{ .Go.ImportPath }}{{ end }}
com.github.moby.buildkit:
dockercfg: true
env:
BUILDKITD_FLAGS: --oci-worker-no-process-sandbox
command: buildctl-daemonless.sh
args:
- build
- --frontend
- dockerfile.v0
- --local
- context={{ .Context }}
- --local
- dockerfile={{ .Context }}/
{{- if and (.Dockerfile.File) (ne .Dockerfile.File "Dockerfile") }}
- --opt
- filename={{ .Dockerfile.File }}
{{- end }}
{{- if .Cache.Enabled }}
- --export-cache
- type=registry,ref={{ .Image.Name}}:buildcache,mode=max,ignore-error=true
- --import-cache
- type=registry,ref={{ .Image.Name}}:buildcache
{{- end }}
- --output
- type=image,"name={{ range $i, $e := .FQTags }}{{ if $i }},{{ end }}{{ $e }}{{ end }}",push=true
{{- range $i, $e := .Dockerfile.Args }}
- --opt
- build-arg:{{ $e }}
{{- end }}
{{- range $i, $e := .ExtraArgs }}
- "{{ $e }}"
{{- end }}
dockerfiles:
python/micropipenv@v1:
content:
inline: |
ARG BASE_VERSION=master
ARG BASE_REPO=registry.gitlab.com/av1o/base-images/python-3.12
FROM $BASE_REPO:$BASE_VERSION
RUN mkdir -p /home/somebody/app
WORKDIR /home/somebody/app
ARG MICROPIPENV_DEFAULT_INDEX_URLS
COPY requirements.txt .
RUN pip install micropipenv && \
micropipenv install
COPY . .
ARG APP="app.py"
ENV APP ${APP}
ENV PYTHONUNBUFFERED="true"
ENTRYPOINT ["sh", "-c", "python $APP"]