Skip to content

Commit 5cc2f95

Browse files
pbuskomodulo11
andcommitted
Add open quests, private buildpacks
Co-authored-by: Johannes Dillmann <[email protected]>
1 parent 742d73b commit 5cc2f95

File tree

1 file changed

+43
-0
lines changed

1 file changed

+43
-0
lines changed

toc/rfc/rfc-draft-cnb-lifecycle.md

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,3 +132,46 @@ This RFC enables only the use of custom buildpacks. CNBs could be added as syste
132132
#### Better SBoM Support
133133

134134
This RFC already introduces some SBoM capabilities offered by CNBs. Yet, it is not complete (runtime OS information is missing) and buried in the layers of the droplet. This could be further improved in future.
135+
136+
### Open Questions
137+
138+
#### Pulling Buildpacks from private registries
139+
140+
Options:
141+
142+
- Require environment variable with docker config content.
143+
144+
```json
145+
{
146+
"auths": {
147+
"https://index.docker.io/v1/": {
148+
"auth": "dXNlcjpwYXNzd29yZA=="
149+
},
150+
"quay.io": {
151+
"auth": "dXNlcjpwYXNzd29yZA=="
152+
}
153+
}
154+
}
155+
```
156+
157+
- Require environment variable pointing to docker config file. CF CLI must parse the file and invoke helpers if needed for required registries.
158+
- Require custom credentials configuration e.g.
159+
160+
```bash
161+
CNB_REGISTRY_CREDS='{"registry":{"user":"password"}}' cf push ...
162+
```
163+
164+
```json
165+
{
166+
"type": "cnb",
167+
"data": {
168+
"buildpacks": ["docker://gcr.io/paketo-buildpacks/java"],
169+
"stack": "cflinuxfs4",
170+
"credentials": {
171+
"registry.io": {
172+
"user": "password"
173+
}
174+
}
175+
}
176+
}
177+
```

0 commit comments

Comments
 (0)