Skip to content

Commit 95b54dd

Browse files
committed
konflux: arm64 build
Signed-off-by: Haoyu Sun <hasun@redhat.com>
1 parent c203677 commit 95b54dd

5 files changed

Lines changed: 4035 additions & 4 deletions

File tree

.tekton/lightspeed-stack-pull-request.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,12 @@ spec:
3131
- name: build-platforms
3232
value:
3333
- linux/x86_64
34+
- linux-c6gd2xlarge/arm64
3435
# todo: change on-push pipeline,too
3536
- name: build-source-image
3637
value: 'true'
3738
- name: prefetch-input
38-
value: '[{"type": "rpm", "path": "."}, {"type": "pip", "path": ".", "allow_binary": "true", "requirements_files": ["requirements.txt", "requirements.hermetic.txt"]}]'
39+
value: '[{"type": "rpm", "path": "."}, {"type": "pip", "path": ".", "allow_binary": "true", "requirements_files": ["requirements.x86_64.txt", "requirements.aarch64.txt", "requirements.hermetic.txt"]}]'
3940
- name: hermetic
4041
value: 'true'
4142
- name: dockerfile

.tekton/lightspeed-stack-push.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,11 @@ spec:
2828
- name: build-platforms
2929
value:
3030
- linux/x86_64
31+
- linux-c6gd2xlarge/arm64
3132
- name: build-source-image
3233
value: 'true'
3334
- name: prefetch-input
34-
value: '[{"type": "rpm", "path": "."}, {"type": "pip", "path": ".", "allow_binary": "true", "requirements_files": ["requirements.txt", "requirements.hermetic.txt"]}]'
35+
value: '[{"type": "rpm", "path": "."}, {"type": "pip", "path": ".", "allow_binary": "true", "requirements_files": ["requirements.x86_64.txt", "requirements.aarch64.txt", "requirements.hermetic.txt"]}]'
3536
- name: hermetic
3637
value: 'true'
3738
- name: dockerfile

Containerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ COPY ${LSC_SOURCE_DIR}/pyproject.toml ${LSC_SOURCE_DIR}/LICENSE ${LSC_SOURCE_DIR
3030
# PIP_FIND_LINKS=/cachi2/output/deps/pip
3131
# PIP_NO_INDEX=true
3232
RUN if [ -f /cachi2/cachi2.env ]; then \
33-
. /cachi2/cachi2.env && uv venv --seed --no-index --find-links ${PIP_FIND_LINKS} && . .venv/bin/activate && pip install --no-index --find-links ${PIP_FIND_LINKS} -r requirements.txt; \
33+
. /cachi2/cachi2.env && uv venv --seed --no-index --find-links ${PIP_FIND_LINKS} && . .venv/bin/activate && pip install --no-index --find-links ${PIP_FIND_LINKS} -r requirements.$(uname -m).txt; \
3434
else \
3535
uv sync --locked --no-dev --group llslibdev; \
3636
fi

0 commit comments

Comments
 (0)