-
Notifications
You must be signed in to change notification settings - Fork 122
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This has two packages, pretend-baselayout and replayout. Replayout replaces pretend-baselayout and has a dependency on it. This also makes those artifacts reproducible via: $ ./hack/update-packages.sh My plan is to check in some actual images built from these packages, and the tzdata package is just a little too big to be comfy doing that. Also drop some things from .gitignore that are very annoying. Signed-off-by: Jon Johnson <[email protected]>
- Loading branch information
1 parent
6a1ded5
commit 81ad5fd
Showing
25 changed files
with
442 additions
and
196 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,9 +20,3 @@ bin/ | |
.idea | ||
tmp/ | ||
_output | ||
|
||
# Development files | ||
apko.yaml | ||
output.tar | ||
sbom-*.cdx | ||
sbom-*.spdx.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#!/usr/bin/env bash | ||
|
||
# Copyright 2023 Chainguard, Inc. | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
set -ex | ||
|
||
(cd internal/cli/testdata && \ | ||
melange build --arch arm64 --arch amd64 -r https://packages.wolfi.dev/os -k https://packages.wolfi.dev/os/wolfi-signing.rsa.pub --signing-key ./melange.rsa pretend-baselayout.melange.yaml && \ | ||
melange build --arch arm64 --arch amd64 -r https://packages.wolfi.dev/os -k https://packages.wolfi.dev/os/wolfi-signing.rsa.pub --signing-key ./melange.rsa replayout.melange.yaml) | ||
(cd internal/cli && | ||
apko lock ./testdata/apko.yaml) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,101 @@ | ||
{ | ||
"version": "v1", | ||
"contents": { | ||
"keyring": [ | ||
{ | ||
"name": "./testdata/melange.rsa.pub", | ||
"url": "./testdata/melange.rsa.pub" | ||
} | ||
], | ||
"repositories": [ | ||
{ | ||
"name": "./testdata/packages/x86_64", | ||
"url": "./testdata/packages/x86_64/APKINDEX.tar.gz", | ||
"architecture": "x86_64" | ||
}, | ||
{ | ||
"name": "./testdata/packages/aarch64", | ||
"url": "./testdata/packages/aarch64/APKINDEX.tar.gz", | ||
"architecture": "aarch64" | ||
} | ||
], | ||
"packages": [ | ||
{ | ||
"name": "pretend-baselayout", | ||
"url": "./testdata/packages/x86_64/pretend-baselayout-1.0.0-r0.apk", | ||
"version": "1.0.0-r0", | ||
"architecture": "x86_64", | ||
"signature": { | ||
"range": "bytes=0-684", | ||
"checksum": "sha1-e4mtQNHHROPVjqH3vNZUtKTu5Uc=" | ||
}, | ||
"control": { | ||
"range": "bytes=685-964", | ||
"checksum": "sha1-cs+Hlyu5sY+1mmwKPedcRWj8E24=" | ||
}, | ||
"data": { | ||
"range": "bytes=965-2899", | ||
"checksum": "sha256-6Gbikm5tHIqetbTVz/wPcmtCcrO17ed1vPM6xuR0IrU=" | ||
}, | ||
"checksum": "Q1cs+Hlyu5sY+1mmwKPedcRWj8E24=" | ||
}, | ||
{ | ||
"name": "replayout", | ||
"url": "./testdata/packages/x86_64/replayout-1.0.0-r0.apk", | ||
"version": "1.0.0-r0", | ||
"architecture": "x86_64", | ||
"signature": { | ||
"range": "bytes=0-684", | ||
"checksum": "sha1-UCaIAliqYaIrol8/H5PAi8J5ihg=" | ||
}, | ||
"control": { | ||
"range": "bytes=685-974", | ||
"checksum": "sha1-ADqt8AXOdbDPVa9UeGNJngcURrk=" | ||
}, | ||
"data": { | ||
"range": "bytes=975-2848", | ||
"checksum": "sha256-irIVeq+6d/ZEIg59H1sjgVycwhfmwYwD79+Gv5DJXb0=" | ||
}, | ||
"checksum": "Q1ADqt8AXOdbDPVa9UeGNJngcURrk=" | ||
}, | ||
{ | ||
"name": "pretend-baselayout", | ||
"url": "./testdata/packages/aarch64/pretend-baselayout-1.0.0-r0.apk", | ||
"version": "1.0.0-r0", | ||
"architecture": "aarch64", | ||
"signature": { | ||
"range": "bytes=0-683", | ||
"checksum": "sha1-HFPvVMM/+d7Rm+XbuxpEyWM4wR4=" | ||
}, | ||
"control": { | ||
"range": "bytes=684-961", | ||
"checksum": "sha1-IhHX8PA1MiPcnOa5ig/Wjr/qhbU=" | ||
}, | ||
"data": { | ||
"range": "bytes=962-2900", | ||
"checksum": "sha256-HxWjXtCvMsSYOmhE5OUPz9KQ4kpm0Ywg17OzSf3Ikl4=" | ||
}, | ||
"checksum": "Q1IhHX8PA1MiPcnOa5ig/Wjr/qhbU=" | ||
}, | ||
{ | ||
"name": "replayout", | ||
"url": "./testdata/packages/aarch64/replayout-1.0.0-r0.apk", | ||
"version": "1.0.0-r0", | ||
"architecture": "aarch64", | ||
"signature": { | ||
"range": "bytes=0-688", | ||
"checksum": "sha1-1N7VDS5GSkkT4bzQ5ZJ5VzWiR6w=" | ||
}, | ||
"control": { | ||
"range": "bytes=689-977", | ||
"checksum": "sha1-twZgE0XMokZ89rlCxtGjp+XgtIc=" | ||
}, | ||
"data": { | ||
"range": "bytes=978-2849", | ||
"checksum": "sha256-Mkciu4YKl5ibdvTTg7BQOBSN2xVT1GC5VBZ3/D4qz24=" | ||
}, | ||
"checksum": "Q1twZgE0XMokZ89rlCxtGjp+XgtIc=" | ||
} | ||
] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,97 @@ | ||
{ | ||
"version": "v1", | ||
"contents": { | ||
"keyring": [ | ||
{ | ||
"name": "./testdata/melange.rsa.pub", | ||
"url": "./testdata/melange.rsa.pub" | ||
} | ||
], | ||
"repositories": [ | ||
{ | ||
"name": "./testdata/packages/x86_64", | ||
"url": "./testdata/packages/x86_64/APKINDEX.tar.gz", | ||
"architecture": "x86_64" | ||
}, | ||
{ | ||
"name": "./testdata/packages/aarch64", | ||
"url": "./testdata/packages/aarch64/APKINDEX.tar.gz", | ||
"architecture": "aarch64" | ||
} | ||
], | ||
"packages": [ | ||
{ | ||
"name": "pretend-baselayout", | ||
"url": "./testdata/packages/x86_64/pretend-baselayout-1.0.0-r0.apk", | ||
"version": "1.0.0-r0", | ||
"architecture": "x86_64", | ||
"signature": { | ||
"range": "bytes=0-684", | ||
"checksum": "sha1-e4mtQNHHROPVjqH3vNZUtKTu5Uc=" | ||
}, | ||
"control": { | ||
"range": "bytes=685-964", | ||
"checksum": "sha1-cs+Hlyu5sY+1mmwKPedcRWj8E24=" | ||
}, | ||
"data": { | ||
"range": "bytes=965-2899", | ||
"checksum": "sha256-6Gbikm5tHIqetbTVz/wPcmtCcrO17ed1vPM6xuR0IrU=" | ||
} | ||
}, | ||
{ | ||
"name": "replayout", | ||
"url": "./testdata/packages/x86_64/replayout-1.0.0-r0.apk", | ||
"version": "1.0.0-r0", | ||
"architecture": "x86_64", | ||
"signature": { | ||
"range": "bytes=0-684", | ||
"checksum": "sha1-UCaIAliqYaIrol8/H5PAi8J5ihg=" | ||
}, | ||
"control": { | ||
"range": "bytes=685-974", | ||
"checksum": "sha1-ADqt8AXOdbDPVa9UeGNJngcURrk=" | ||
}, | ||
"data": { | ||
"range": "bytes=975-2848", | ||
"checksum": "sha256-irIVeq+6d/ZEIg59H1sjgVycwhfmwYwD79+Gv5DJXb0=" | ||
} | ||
}, | ||
{ | ||
"name": "pretend-baselayout", | ||
"url": "./testdata/packages/aarch64/pretend-baselayout-1.0.0-r0.apk", | ||
"version": "1.0.0-r0", | ||
"architecture": "aarch64", | ||
"signature": { | ||
"range": "bytes=0-683", | ||
"checksum": "sha1-HFPvVMM/+d7Rm+XbuxpEyWM4wR4=" | ||
}, | ||
"control": { | ||
"range": "bytes=684-961", | ||
"checksum": "sha1-IhHX8PA1MiPcnOa5ig/Wjr/qhbU=" | ||
}, | ||
"data": { | ||
"range": "bytes=962-2900", | ||
"checksum": "sha256-HxWjXtCvMsSYOmhE5OUPz9KQ4kpm0Ywg17OzSf3Ikl4=" | ||
} | ||
}, | ||
{ | ||
"name": "replayout", | ||
"url": "./testdata/packages/aarch64/replayout-1.0.0-r0.apk", | ||
"version": "1.0.0-r0", | ||
"architecture": "aarch64", | ||
"signature": { | ||
"range": "bytes=0-688", | ||
"checksum": "sha1-1N7VDS5GSkkT4bzQ5ZJ5VzWiR6w=" | ||
}, | ||
"control": { | ||
"range": "bytes=689-977", | ||
"checksum": "sha1-twZgE0XMokZ89rlCxtGjp+XgtIc=" | ||
}, | ||
"data": { | ||
"range": "bytes=978-2849", | ||
"checksum": "sha256-Mkciu4YKl5ibdvTTg7BQOBSN2xVT1GC5VBZ3/D4qz24=" | ||
} | ||
} | ||
] | ||
} | ||
} |
4 changes: 2 additions & 2 deletions
4
internal/cli/testdata/tzdata.yaml → internal/cli/testdata/apko.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
-----BEGIN RSA PRIVATE KEY----- | ||
MIIJJwIBAAKCAgEAuE9aHvpBoe7HNnWxhp2px+HGjbPhzP0CyQYMNMcHjd76UcaP | ||
wWNTVqJI8JMT2u72mPsEXpC+J6KqjIggJoOaQYg87oYEdthoJZjyDaKzezNZKndz | ||
VQkg4RfQPiCPQk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9NsbowP+pkt6Woqfh | ||
uHAkHSNN9JvrYEwI1xNQkw1Sv71OJzX86R+0yf48/ww+OiY7774I8p5l7rTgOxeT | ||
Q/YKAxx8q56usx4DMC591PXEBHJkNc75x0jlbar7NH7ZmxTJFdlfTHZSRfCLS45V | ||
5cGsNrDUMWjKiU7Kigh43ViYL3ApV06yxFYeyjrj0wkZ9JVc3r51Xa6IdUP2o+nK | ||
/4qIHmFnAEWC4wQlKMelFuZe85TiRC/wEnM3dZMpOq8atdNI65UZeKvqFMKYPlqc | ||
B9ypAoIBACwYLGXqloJIwwdCnWuCCrJf8Npkk1eqkB+aO5vJ/YDHKULwgrmKjqN+ | ||
H4/gwsCiRnm7TBYPEgkhraYdrULu9BkqyO8w6jUvJ/2y1eN39FuNFyD5cw+riSND | ||
d+JpeUs588Jd3mJR4Co24JYKaK8PxNoAOjMjP9PXD8AlSv7+edNMMNZ0VpsoWs/s | ||
Zl6/u69Mub8dtPD5XaeuO6YZ8dNPnm8vqKaKM9t0GABcEfs/4gY/PkJXxY8mWxv1 | ||
jKonpeoaUKmKmBs8fl8t8zYENZrXL6fIplsh/1VrymNGT2hHrGp7ISz2yy9oxUhc | ||
oyfKEqnYNB43OzHU+BX7hzONfBdGkBECggEACsfXS/ey47myNEfIvMOa64ZA+VDC | ||
QGGGL1hwyKp+0DXwmoj/U6pkEu9EZcYF3OXTVYRIdA6+Hxks6JQRgmrNlID/vPC3 | ||
lfpvnRXWVJ5cDd68v6fooHOT/Hjg5hlVpXXM8Gsd+mBQtPrYbpnVvYqH7FVUkyfN | ||
3nbLV3q3QsTvA3BR1swSMSbDzO03adUZJ1zO01BtlYn787L1RHMdNdEfKld/XTVd | ||
yuxGbAfzOTWGJB2+qV4RzbN1xTEJGdgKgX7zrq+7cpnz8njiIU2xB34Tm+Nlb43I | ||
IvNCFo4H/f1TAP3rru4AGv6cAu1w6c+8mpzqpqk+OZ2evtvSgHVZ01DFIg== | ||
-----END RSA PRIVATE KEY----- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
-----BEGIN PUBLIC KEY----- | ||
MIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEAuE9aHvpBoe7HNnWxhp2p | ||
x+HGjbPhzP0CyQYMNMcHjd76UcaPwWNTVqJI8JMT2u72mPsEXpC+J6KqjIggJoOa | ||
QYg87oYEdthoJZjyDaKzezNZKndzVQkg4RfQPiCPQkm4r9v6So0MCDa4rwRYnqrf | ||
s3Je9/wi8B/wG1sz7P4wOG23djxpORDsMI9CyZhnAKfNg/uqmF/sxEwOL4FaDZMg | ||
0oo7Kx3FjtqqKTV8uFbCDsTxV3CR0pm3WJdX9TNfjXLXfp2a6QDYk1JoYl++UUHK | ||
+7izMXro6xgY7OPT+F48/YNYxS/ciH90DmN7ysJnQ2otZHSqhOkJV4UrYCKBHY55 | ||
XjpDe7+nmwXaqVyAlCS6pDqHeYUUpYTpnv4b9bbst9NtYPRY8W00Oc5Cs3KdHeV6 | ||
LqvHAGwNTZziv91UTpi0hMf27I+MLaXx+jNWm5j40a+ZyswLAQSLI+u3LxfPlHda | ||
lhpaQw+CoM3ucX9rcnJaBgowXclDAAvRNIj7EJNW5sk+3SbpmKKDkrD7Cl0rMSrd | ||
1dixDZZPzA8UtwheNTmV+I+0r1kQMcNYcB8iUKsoWIpaur0CBCww02WTHpOMcMGw | ||
+rVr/wzPP3Iqo1+EVrzVI5kSnZ7VLRtO5VdMLw0PlIK4ShJ+X5OtVtWnJ9jIiLaI | ||
se0tr8lpqU40eV862X+jKz0CAwEAAQ== | ||
-----END PUBLIC KEY----- |
Oops, something went wrong.