-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathContainerfile.component2
More file actions
31 lines (28 loc) · 1.81 KB
/
Copy pathContainerfile.component2
File metadata and controls
31 lines (28 loc) · 1.81 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
FROM registry.access.redhat.com/ubi9/ubi:9.8-1780376557
LABEL \
name="konflux-test-product2" \
com.redhat.component="konflux-test-product2" \
description="Test description for component2" \
summary="Test summary for component2" \
io.k8s.description="Test io.k8s description for component2" \
io.k8s.display-name="konflux-test-product2" \
io.openshift.tags="konflux-test-product2"
RUN mkdir -p /releases && \
# Download real macOS binaries (unsigned) to test with only
curl -L https://github.com/jqlang/jq/releases/download/jq-1.7.1/jq-macos-amd64 -o /tmp/darwin-amd64 && \
curl -L https://github.com/jqlang/jq/releases/download/jq-1.7.1/jq-macos-arm64 -o /tmp/darwin-arm64 && \
# Download real Windows binary (unsigned)
curl -L https://github.com/jqlang/jq/releases/download/jq-1.7.1/jq-windows-amd64.exe -o /tmp/windows-amd64.exe && \
chmod +x /tmp/darwin-amd64 /tmp/darwin-arm64 /tmp/windows-amd64.exe && \
# Compress the real binaries as tar.gz
tar -czf /releases/ktp2-darwin-amd64.tar.gz -C /tmp darwin-amd64 && \
tar -czf /releases/ktp2-darwin-arm64.tar.gz -C /tmp darwin-arm64 && \
tar -czf /releases/ktp2-windows-amd64.tar.gz -C /tmp windows-amd64.exe && \
# Keep simple text for Linux (won't be signed anyway)
echo 'hello world component2' > /tmp/linux-amd64 && tar -czf /releases/ktp2-linux-amd64.tar.gz -C /tmp linux-amd64 && \
echo 'hello world component2' > /tmp/linux-arm64 && tar -czf /releases/ktp2-linux-arm64.tar.gz -C /tmp linux-arm64 && \
# Create fake disk image files directly in /releases/ (no tar.gz wrapping)
echo 'fake ISO content for amd64' > /releases/install.iso.gz && \
echo 'fake QCOW content for amd64' > /releases/disk.qcow2 && \
# Clean up
rm /tmp/darwin-amd64 /tmp/darwin-arm64 /tmp/windows-amd64.exe /tmp/linux-amd64 /tmp/linux-arm64