Skip to content
This repository has been archived by the owner on May 24, 2023. It is now read-only.

WIP: Inject buildpacks at runtime #23

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions deploy/base/task-combined.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -399,6 +399,27 @@ spec:
- name: empty-dir
mountPath: /tekton/home

- name: inject-custom-buildpacks
image: docker.io/library/bash:5.1.4@sha256:b208215a4655538be652b2769d82e576bc4d0a2bb132144c060efc5be8c3f5d6
args: []
script: |
#!/usr/bin/env bash
set -e

echo "--> Injecting custom buildpacks..."
cat >/layers/group.toml <<EOB
[[group]]
id = "heroku/python"
version = "0.0.0"
api = "0.4"
EOB

volumeMounts:
- name: layers-dir
mountPath: /layers
- name: $(params.PLATFORM_DIR)
mountPath: /platform

- name: analyze
image: $(params.LIFECYCLE_IMAGE)
imagePullPolicy: Always
Expand Down
2 changes: 1 addition & 1 deletion deploy/base/toolforge-buildpacks-phases-patch.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
},
{
"op": "replace",
"path": "/spec/steps/8/image",
"path": "/spec/steps/9/image",
"value": "docker-registry.tools.wmflabs.org/toolforge-library-bash:5.1.4"
}
]