Commit Graph

42 Commits

Author SHA1 Message Date
Martin Jansa
c01273e001 metadata: add whitespace around assignments
With:
https://lists.openembedded.org/g/bitbake-devel/message/17508
there are many WARNINGs from this layer will cover src_uri.inc files
in next commit.

Signed-off-by: Martin Jansa <martin.jansa@gmail.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2025-04-03 17:56:53 +00:00
Bruce Ashfield
351644d9bc skopeo: update to v1.18.0
Bumping skopeo to version v1.18.0-67-ge8d9f916, which comprises the following commits:

    da1bf9f7 chore(deps): update dependency containers/automation_images to v20250324
    7983f20a Remove obsolete build tag syntax
    8d000f45 Use the new maps.Keys and slices.Sorted
    1f49b2c0 Use slices.Backward
    a31470d7 proxy: Add GetLayerInfoPiped
    ec219604 Update github.com/hashicorp/go-multierror
    1a38d976 Update github.com/dsnet/compress
    49569bcf Complete paths for some transports
    e7e09255 Don't complete a space after '<transport>:'
    9c0f31dc In (skopeo inspect), validate the manifest against a digest reference
    9fda7e73 In (skopeo layers), validate the blob against the expected digest
    a0799484 Always close the blob we are reading from a registry
    a5182876 fix(deps): update module golang.org/x/term to v0.30.0
    b8637922 chore(deps): update dependency golangci/golangci-lint to v1.64.8
    56ccf09c ROADMAP: new file
    03fa889d chore(deps): update module golang.org/x/net to v0.36.0 [security]
    15132e6c Update to Go 1.23
    4080a631 fix(deps): update module github.com/containers/common to v0.62.2
    cc743c3c chore(deps): update dependency golangci/golangci-lint to v1.64.7
    91c6aa61 fix(deps): update module github.com/containers/image/v5 to v5.34.2
    d00ea33d fix(deps): update module github.com/containers/storage to v1.57.2
    7bd0dc21 .github: remove cirrus rerun action
    547141ce fix(deps): update module github.com/opencontainers/image-spec to v1.1.1
    a185498c chore(deps): update dependency golangci/golangci-lint to v1.64.6
    fad5a31a chore(deps): update module github.com/go-jose/go-jose/v4 to v4.0.5 [security]
    5744b9b4 chore(deps): update module github.com/go-jose/go-jose/v3 to v3.0.4 [security]
    934ea727 fix(deps): update module github.com/containers/common to v0.62.1
    8a44fe6c fix(deps): update module github.com/containers/image/v5 to v5.34.1
    c7aaed73 Update for cobra API change
    9d73060a fix(deps): update module github.com/spf13/cobra to v1.9.1
    5c968d67 chore(deps): update dependency golangci/golangci-lint to v1.64.5
    841a1b61 chore(deps): update dependency golangci/golangci-lint to v1.64.4
    8c2eff1d chore(deps): update dependency golangci/golangci-lint to v1.64.3
    f88186e6 [skip-ci] Packit/TMT: Run system tests
    ff462b3d PR Labels: apply release label to release- branch PRs
    8c20592d chore(deps): update dependency golangci/golangci-lint to v1.64.2
    20746ae2 Bump Skopeo to v1.19.0-dev
    64361bde Bump Skopeo to v1.18.0
    bd1ac466 Switch to the CNCF Code of Conduct
    59ec5547 fix(deps): update module golang.org/x/term to v0.29.0
    04d65888 fix(deps): update module github.com/containers/common to v0.62.0
    137a912c chore(deps): update dependency containers/automation_images to v20250131
    52895bc6 fix(deps): update module github.com/spf13/pflag to v1.0.6
    b78a4159 fix(deps): update module github.com/containers/image/v5 to v5.34.0
    5eba0614 RPM: include check section to silence rpmlint
    9764c99d RPM: cleanup gobuild macro for CentOS Stream
    a81cb65f fix(deps): update module github.com/containers/storage to v1.57.1
    85fa4dff fix(deps): update module github.com/containers/storage to v1.57.0
    ed0efc69 feat: Add `--retry-delay` Option
    ab53f644 fix(deps): update module github.com/containers/common to v0.61.1
    653db366 fix(deps): update module github.com/containers/image/v5 to v5.33.1
    6483de48 fix(deps): update module github.com/containers/storage to v1.56.1

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2025-03-24 18:42:34 +00:00
Bruce Ashfield
617bca3a4b skopeo: update to v1.17.0
Bumping skopeo to version v1.17.0-41-g0633de63, which comprises the following commits:

    6483de48 fix(deps): update module github.com/containers/storage to v1.56.1
    b5a13bcc systemtest: update quay.io registry image
    eae9e886 chore(deps): update dependency containers/automation_images to v20250107 (#2488)
    b68afb1a fix(deps): update module golang.org/x/term to v0.28.0
    2a47dff7 chore(deps): update dependency golangci/golangci-lint to v1.63.4
    83efeea4 chore(deps): update dependency golangci/golangci-lint to v1.63.3
    deda9663 chore(deps): update dependency golangci/golangci-lint to v1.63.2
    fb777d39 fix(deps): update golang.org/x/exp digest to b2144cd
    568d5d1c chore(deps): update module golang.org/x/net to v0.33.0 [security]
    1866ecbd fix(deps): update module github.com/containers/ocicrypt to v1.2.1
    b116c5bd fix(deps): update module golang.org/x/term to v0.27.0
    27baed91 Fix handling of errorShouldDisplayUsage
    a71a8b4c fix(deps): update golang.org/x/exp digest to 2d47ceb
    4541d649 Packit: remove rhel (epel) jobs
    96f38043 Packit: switch fedora copr targets to fedora-all
    e9755957 fix(deps): update module github.com/stretchr/testify to v1.10.0
    2a3c8ee5 chore(deps): update dependency golangci/golangci-lint to v1.62.2
    f423f01d Update an expected error message
    186e9b4f fix(deps): update module github.com/masterminds/semver/v3 to v3.3.1
    f818827f chore(deps): update dependency golangci/golangci-lint to v1.62.0
    bae8ccd7 fix(deps): update module github.com/moby/sys/capability to v0.4.0
    293ac065 Bump to c/Skopeo v1.18.0-dev
    e354a143 Bump to c/Skopeo v1.17.0
    34f06441 Bump c/common to v0.60.0
    fa1762f5 fix(deps): update module github.com/containers/image/v5 to v5.33.0
    15f69ac6 Trigger a rebuild of the ostree-rs-ext container
    33a629dd Update contrib/cirrus/ostree_ext.dockerfile for DNF 5
    bc57843b update CI images to f41
    8d3fb4b3 cirrus: use dnf remove over erase
    c0cc7ed2 fix(deps): update golang.org/x/exp digest to f66d83c
    602c121f fix(deps): update module github.com/containers/storage to v1.55.1
    7fbdd714 Fix format string inconsistency causing a build failure
    3f66d002 proxy: Add various debug logging
    43d066e0 chore(deps): update dependency containers/automation_images to v20241010
    10a9e24d * Added option to create digest file for syncing images. * Digest file output would have docker reference of source and sha of of the mainfest sync'd with the target. This file would not be created if dry-run flag is enabled * improved the sync document to include the correct output for manifest file. * added new line for the manifest file once all images are sync'd * Ensuring we log on manifest digest if the copy operation was successful. * Check for errors if any once sync process is complete. * Ensure to capture the failure when closing the manifest file. * Ensure we are not writing manifest sha for failed copy of imagesand aborting the process in case write to file fails
    6ad77a1b Packit: constrain downstream koji job to fedora package
    9b960383 fix(deps): update module golang.org/x/term to v0.25.0
    01ad0ed0 fix(deps): update module github.com/containers/common to v0.60.4
    60b5f0e8 fix(deps): update golang.org/x/exp digest to 701f63a
    f240ce07 vendor: switch to moby/sys/capability (#2428)
    ee618142 Document that zstd:chunked is downgraded to zstd when encrypting
    0fd65fb7 fix(deps): update module github.com/containers/common to v0.60.3
    e39efb10 Packit: split out ELN jobs and reuse fedora downstream targets
    7da6ea07 Packit: Enable sidetags for bodhi updates
    6d2672c9 chore(deps): update dependency golangci/golangci-lint to v1.61.0
    b113a2de fix(deps): update module golang.org/x/term to v0.24.0
    9166a97b Use a range expression
    795705e4 Update to Go 1.22
    bebbbaee Restrict Packit targets to those that support Go 1.22
    6b13950b fix(deps): update golang.org/x/exp digest to 9b4947d
    115a6de9 chore(deps): update dependency containers/automation_images to v20240821
    a8170067 Update skopeo-generate-sigstore-key.1.md
    dd5ce5d9 [CI:DOCS] Update dependency golangci/golangci-lint to v1.60.3
    229c9fad fix(deps): update module github.com/masterminds/semver/v3 to v3.3.0
    6e0b7a12 fix(deps): update module github.com/containers/common to v0.60.2
    b9620327 [CI:DOCS] Update dependency golangci/golangci-lint to v1.60.2
    3151e088 fix(deps): update module github.com/containers/image/v5 to v5.32.2
    d3827613 Replace egrep with grep -E
    df598d7f [CI:DOCS] Update dependency golangci/golangci-lint to v1.60.1
    17da5826 fix(deps): update module github.com/containers/common to v0.60.1
    38e29cdf fix(deps): update module github.com/containers/image/v5 to v5.32.1
    84558d45 fix(deps): update module golang.org/x/term to v0.23.0
    39dccc2a The fakeroot package doesn't exist in RHEL.
    d17c8093 Bump Skopeo to v1.17.0-dev
    88aad2e5 Bump Skopeo to v1.16.0

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2025-01-17 19:17:09 +00:00
Bruce Ashfield
7a4ae86e89 skopeo: update to v1.16.0
Bumping skopeo to version v1.16.0, which comprises the following commits:

    88aad2e5 Bump Skopeo to v1.16.0

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2024-08-20 16:49:37 +00:00
Bruce Ashfield
13a0ab610f skopeo: update to v1.15.2
Bumping skopeo to version v1.15.1-8-g80626759, which comprises the following commits:

    0002d9ca [release-1.15] Bump to v1.15.2
    260f444b [release-1.15] Fixes an interoperability issue while listing tags
    cda43af4 [skip-ci] Packit: enable c10s downstream sync
    7e81106f Refer to registry.k8s.io instead of k8s.gcr.io
    e2ea4269 [release-1.15] Bump to v1.15.1
    5267baab [release-1.15] Freeze the fedora-minimal image reference
    cd5f7090 [release-1.15] CVE-2024-3727
    99e3c448 Bump to v1.15.0
    6d6d5b7b chore(deps): update module google.golang.org/protobuf to v1.33.0 [security]
    78ddfd9d fix(deps): update module github.com/containers/ocicrypt to v1.1.10
    e46c71c3 chore(deps): update module gopkg.in/go-jose/go-jose.v2 to v2.6.3 [security]
    549fc862 chore(deps): update module github.com/go-jose/go-jose/v3 to v3.0.3 [security]
    cca855ac [CI:DOCS] Migrate skopeo container image
    2ffc4ec3 fix(deps): update module github.com/containers/common to v0.58.0
    086701bd fix(deps): update module github.com/containers/image/v5 to v5.30.0
    96443048 fix(deps): update module github.com/containers/storage to v1.53.0
    a80f634f fix(deps): update module golang.org/x/term to v0.18.0
    4d80bf8c fix(deps): update github.com/containers/image/v5 digest to faa4f4f
    2db09313 Move a go.mod dependency entry to the right section
    95f6eac4 Avoid a warning by gopls / VSCode
    dbf465d6 fix typo
    55abe69d update docs based on review
    439dd5f4 docs: make sure that CGO_ENABLED='1'
    f0b07848 [CI:DOCS] Update dependency golangci/golangci-lint to v1.56.2
    8b6774b4 fix(deps): update module github.com/opencontainers/image-spec to v1.1.0
    e294a380 [CI:DOCS] Update dependency golangci/golangci-lint to v1.56.1
    c3e2b202 Update c/image after https://github.com/containers/image/pull/2273
    8f2a7c65 Also change the MIME type in manifest when decompressing a layer
    812a02af Replace decompress-dirs.sh with Go code
    09f282e4 Split decompressDir from runDecompressDirs
    9fd98112 [CI:DOCS] Update dependency golangci/golangci-lint to v1.56.0
    122bf968 fix(deps): update module github.com/containers/common to v0.57.4
    149fec0a fix(deps): update golang.org/x/exp digest to 1b97071
    d77f7153 fix(deps): update module github.com/containers/common to v0.57.3
    c941d813 Update github.com/containers/image/v5 to post-v5.29.2 main
    b412ed6e Run codespell on code
    58ff9fdb fix(deps): update module github.com/containers/storage to v1.52.0
    177d4adb add kubasobon:semver changes
    4baf4fe9 fix(deps): update module github.com/opencontainers/image-spec to v1.1.0-rc6
    e32dfefb Bump to v1.15.0-dev

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2024-07-16 16:45:42 +00:00
Bruce Ashfield
a5fee65b68 skopeo: update to v1.14.2
Bumping skopeo to version v1.14.1-4-g1c2ab995, which comprises the following commits:

    c3e474e4 [release-1.14] Bump Skopeo to v1.14.3-dev
    b673eb60 [release-1.14] Bump Skopeo to v1.14.2
    18cc81ab [release-1.14] Bump c/image to v5.29.2, c/common to v0.57.3

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2024-03-15 17:17:19 +00:00
Bruce Ashfield
5d211f85b4 skopeo: update to 1.14.1
Bumping skopeo to version v1.14.1-4-g695538a3, which comprises the following commits:

    4baf4fe9 fix(deps): update module github.com/opencontainers/image-spec to v1.1.0-rc6
    e32dfefb Bump to v1.15.0-dev
    45b7bf5e Bump to v1.14.1
    b7ec87a1 fix(deps): update module github.com/containers/common to v0.57.2
    92edbcb7 fix(deps): update module github.com/containers/image/v5 to v5.29.1
    5684cd12 chore(deps): update dependency containers/automation_images to v20240102
    c7053312 Fix libsubid detection
    e51dbbd8 fix(deps): update module golang.org/x/term to v0.16.0
    852cca63 fix(deps): update golang.org/x/exp digest to 02704c9
    d1cb2e2c chore(deps): update dependency containers/automation_images to v20231208
    fe83b6fe [skip-ci] Update actions/stale action to v9
    f346045d fix(deps): update module github.com/containers/common to v0.57.1
    48d11dac fix(deps): update golang.org/x/exp digest to 6522937

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2024-03-15 17:17:19 +00:00
Bruce Ashfield
ba9cbc0914 skopeo: update to 1.14.0
Bumping skopeo to version v1.14.0-10-ga85eaac9, which comprises the following commits:

    48d11dac fix(deps): update golang.org/x/exp digest to 6522937
    87eef310 DOCS: add Gentoo in install.md
    f50dc204 DOCS: Update to add Arch Linux in install.md
    9f52e728 fix(deps): update module golang.org/x/term to v0.15.0
    efd76e74 Bump to v1.14.1-dev
    6abf96bb Bump to v1.14.0
    14496ba4 fix(deps): update module github.com/containers/common to v0.57.0
    fa85e47b chore(deps): update dependency containers/automation_images to v20231116
    e4b67e78 fix(deps): update module github.com/containers/image/v5 to v5.29.0
    edefdb66 Add documentation and smoke tests for the new --compat-auth-file options
    518181e5 Update c/image and c/common to latest
    56b96a4d fix(deps): update module github.com/containers/storage to v1.51.0
    a8e7d94e fix(deps): update module golang.org/x/term to v0.14.0
    50cffa38 fix(deps): update module github.com/spf13/cobra to v1.8.0
    0c2cca96 [CI:DOCS] Update dependency golangci/golangci-lint to v1.55.2
    6b2a26f1 [CI:DOCS] Update dependency golangci/golangci-lint to v1.55.1
    6ef8acff fix(deps): update github.com/containers/common digest to 3e5caa0
    5d4e89cc chore(deps): update module google.golang.org/grpc to v1.57.1 [security]
    5307dd66 fix(deps): update module github.com/containers/ocicrypt to v1.1.9
    03c94252 Update github.com/klauspost/compress to v1.17.2
    91611a3a chore(deps): update module github.com/docker/docker to v24.0.7+incompatible [security]
    a9c7c505 Fix ENTRYPOINT documentation, drop others.
    70551db8 Remove unused environment variables in Cirrus
    a2eb508b [CI:DOCS] Update dependency golangci/golangci-lint to v1.55.0
    1fa360a6 chore(deps): update dependency containers/automation_images to v20231004
    fa3e62f2 chore(deps): update module golang.org/x/net to v0.17.0 [security]
    dc4fa672 copy: Note support for `zstd:chunked`
    538dd6f3 fix(deps): update module golang.org/x/term to v0.13.0
    611db7c3 fix(deps): update module github.com/docker/distribution to v2.8.3+incompatible
    43e1a96e fix(deps): update github.com/containers/common digest to 745eaa4
    5fad766c Packit: switch to @containers/packit-build team for copr failure notification comments
    d8b3a17f Packit: tag @lsm5 on copr build failures
    57034826 vendor of containers/common
    7db8fbde fix(deps): update module github.com/opencontainers/image-spec to v1.1.0-rc5
    4d921585 fix(deps): update module github.com/containers/common to v0.56.0
    9e89e18f Cirrus: Remove multi-arch skopeo image builds
    32c8a05a fix(deps): update module github.com/containers/image/v5 to v5.28.0
    679615f5 Increase the golangci-lint timeout
    c1e7c974 fix(deps): update module github.com/containers/storage to v1.50.2
    9563e3b8 fix(deps): update module github.com/containers/storage to v1.50.1
    427e58f5 fix(deps): update golang.org/x/exp digest to 9212866
    7c39f363 Fix a man page link
    897619f6 fix(deps): update github.com/containers/image/v5 digest to 58d5eb6
    2976f4f8 GHA: Closed issue/PR comment-lock test
    46979914 fix(deps): update module github.com/containers/common to v0.55.4
    3249973d fix(deps): update module github.com/containers/storage to v1.49.0
    b87a1b3e rpm: spdx compatible license field
    b0d587a9 chore(deps): update dependency golangci/golangci-lint to v1.54.2
    7ced0fb0 chore(deps): update dependency containers/automation_images to v20230816
    4b952d61 Packit: set eln target correctly
    6b827fa7 packit: Build PRs into default packit COPRs
    fec950c2 DOCS: Update Go version requirement info
    449ac9bb DOCS: Add information about the cross-build
    78187ca8 fix(deps): update module github.com/containers/ocicrypt to v1.1.8
    df117e28 fix(deps): update module github.com/containers/common to v0.55.3
    4ee2946b Update c/image after https://github.com/containers/image/pull/2070
    0e3efc64 chore(deps): update dependency golangci/golangci-lint to v1.54.1
    46fcbd3a chore(deps): update dependency containers/automation_images to v20230809
    e98561e2 fix(deps): update golang.org/x/exp digest to 352e893
    4f5ba65a chore(deps): update dependency containers/automation_images to v20230807
    5abce03c Update to Go 1.19
    276b8095 fix(deps): update module golang.org/x/term to v0.11.0
    60ee543f Update c/image for golang.org/x/exp
    ab892075 RPM: define gobuild macro for rhel/centos stream
    f236b5ef Fix handling the unexpected return value combination from IsRunningImageAllowed
    c40f1485 Close the PolicyContext, as required by the API
    e90ad861 Use globalOptions.getPolicyContext instead of an image-targeted SystemContext
    a4aa15f4 Packit: remove pre-sync action
    a0a340a1 fix(deps): update module github.com/containers/common to v0.55.2
    f7dc0847 proxy: Change the imgid to uint64
    a39972ca [CI:BUILD] Packit: install golist before updating downstream spec
    2945e9e0 Update module golang.org/x/term to v0.10.0
    5f87f6ab Bump to v1.14.0-dev
    cb1e9012 Bump to v1.13.0

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2024-01-04 02:52:53 +00:00
Bruce Ashfield
4e602f8949 skopeo: mark incompatible with mips
When building skopeo for mips(64), we get the following errors:

| go.go:(.text+0xdd07fc): relocation R_MIPS_26 against `a local symbol' cannot be used when making a shared object; recompile with -fPIC
| go.go:(.text+0xdd0830): relocation R_MIPS_26 against `a local symbol' cannot be used when making a shared object; recompile with -fPIC
| go.go:(.text+0xdd0864): relocation R_MIPS_26 against `a local symbol' cannot be used when making a shared object; recompile with -fPIC
| collect2: error: ld returned 1 exit status

Tag the recipe as incompatible with mips to avoid having it built
at all.

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2023-09-28 01:23:12 +00:00
Bruce Ashfield
08435d20b1 recipes/classes/scripts: Drop SRCPV usage
bitbake has been enhanced such that SRCPV is no longer needed in
PV to handle updating git hashes and task signatures.

We can simplify our PV by dropping SRCPV

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2023-08-24 01:38:21 +00:00
Bruce Ashfield
78f1c22f61 skopeo: update to 1.13.1
Bumping skopeo to version v1.13.1-4-g416218f5, which comprises the following commits:

    882b087b Packit: remove pre-sync action
    3162e17e [release-1.13] Bump to v1.13.2-dev
    8ace37a4 [release-1.13] Bump to v1.13.1
    cac20311 [release-1.13] Bump c/common to v0.55.2
    d5b1f34e [release-1.13 backport] [CI:BUILD] Packit: install golist before updating downstream spec
    85d99af2 [release-1.13] Bump to v1.13.1-dev
    8b9999e1 Bump to v1.13.0

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2023-08-24 01:38:21 +00:00
Bruce Ashfield
58ef402d44 skopeo: update to 1.13.0
Bumping skopeo to version v1.13.0, which comprises the following commits:

    8b9999e1 Bump to v1.13.0
    4de3a90f proxy: Policy verification of OCI Image before pulling
    e9303879 Update module github.com/opencontainers/image-spec to v1.1.0-rc4
    3d8d2128 Update module github.com/containers/common to v0.55.1
    bfa04ea2 Update module github.com/containers/common to v0.54.0
    1d5458fa Update module github.com/containers/image/v5 to v5.26.0
    290a7630 [CI:BUILD] RPM: fix ELN builds
    d72d53cc Update module github.com/containers/storage to v1.47.0
    0297033e Packit: easier to read distro conditionals
    03a19132 Update dependency golangci/golangci-lint to v1.53.3
    c04ee48b Help Renovate manage the golangci-lint version
    37a81ea7 Minor: Cleanup renovate configuration
    e2174f17 Update dependency containers/automation_images to v20230614
    ceeeb67e Update module golang.org/x/term to v0.9.0
    411e9838 [CI:BUILD] Packit: add jobs for downstream Fedora package builds
    deee28a9 Update module github.com/sirupsen/logrus to v1.9.3
    574b2cc4 Update dependency containers/automation_images to v20230601
    73e7618d Update golang.org/x/exp digest to 2e198f4
    1c738806 Update github.com/containers/image/v5 digest to e14c1c5
    2e07073c Update module github.com/stretchr/testify to v1.8.4
    c06aa5c6 Update module github.com/stretchr/testify to v1.8.3

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2023-08-01 14:42:25 -04:00
Peter Marko
489fa21681 skopeo: convert CVE_CHECK_IGNORE to new CVE_STATUS format
See https://git.openembedded.org/openembedded-core/commit/?id=34f682a24b7075b12ec308154b937ad118d69fe5

Signed-off-by: Peter Marko <peter.marko@siemens.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2023-08-01 14:41:46 -04:00
Bruce Ashfield
e215f05c27 skopeo: restructure recipe to fix buildpaths warnings
Like many of the other go recipes, the method of symlinking vendor
packages ends up recording the path in the binary. -trimpath can't
fix those embedded paths, so we switch skopeo to be link the other
recipes and position our source in a way that doesn't require the
symlinking, and hence no QA warning.

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2023-06-15 17:42:31 -04:00
Bruce Ashfield
05e51d92d5 skopeo: update to 1.12.0
Note: this has trimpath issues, and needs to be re-worked to not use
symlinked vendor directories.

Bumping skopeo to version v1.12.0-25-gcf502780, which comprises the following commits:

    c06aa5c6 Update module github.com/stretchr/testify to v1.8.3
    ac75f71f Update dependency containers/automation_images to v20230517
    21b1dfee Update module github.com/sirupsen/logrus to v1.9.2
    ead979a9 Update module github.com/docker/distribution to v2.8.2+incompatible
    12b24fce Trigger an update of the ostree_ext container image
    44ed4cea Update c/image with https://github.com/containers/image/pull/1944
    9213943e Update module github.com/containers/common to v0.53.0
    2825ffd9 Update module golang.org/x/term to v0.8.0
    86eea6ce Update dependency containers/automation_images to v20230426
    03e18aa9 Update golang.org/x/exp digest to 47ecfdc
    7b587697 Emphasize the semantics of --preserve-digests a tiny bit
    1e6b333f Improve the static build documentation a tiny bit
    95e8cce2 Bump to v1.12.1-dev
    a5529097 Release 1.12.0
    5f0314f3 Update module github.com/containers/common to v0.52.0
    66157589 Update module github.com/containers/storage to v1.46.1
    7c66b740 Add (make tools) to install (for now only) golangci-lint, use it in Cirrus
    d4bd787e Use golangci-lint instead of golint
    c538340e Finally, eliminate hack/make.sh
    f8f5a25f Actually fail if (go vet) fails
    aebab492 Speed up validate-git-marks by about a factor of three
    4298692d Don't use hack/make.sh for validate-git-marks
    7e35ad54 Test all files by validate-git-marks
    789257f7 Simplify the package list of (go vet)
    bee51e5e Don't use hack/make.sh for validate-gofmt
    85fef036 Run gofmt on all files, not just the changed ones
    82268ea8 Don't use hack/make.sh for validate-lint
    694b1565 Lint many more files in validate-lint
    43090b29 Don't use hack/make.sh for validate-vet
    225f239a Remove no-longer-necessary module options
    98b01af0 Fix Makefile dependencies
    835d71a3 Remove some outright unused code from hack/make*
    30ecd8f0 Cross-link the top-level and subcommand option lists
    4be583c8 Fix error handling of signature.NewEphemeralGPGSigningMechanism
    e8414097 chore(deps): update dependency containers/automation_images to v20230405
    4f5e8214 Avoid use of a deprecated capability.NewPid
    ca0f8418 fix(deps): update module github.com/spf13/cobra to v1.7.0
    b0d339f0 fix(deps): update module github.com/containers/image/v5 to v5.25.0
    03ca2871 fix(deps): update module golang.org/x/term to v0.7.0
    4ca2058d Use multiple fingerprint function Allow comma separated fingerprint list
    c54f2025 Review comments (to be squashed later
    9b1f1fa1 Rename argument. Only use any with public key file. Double check fingerprint is in public key file.
    3097b7a4 Verify signatures from a trust store
    bfe82593 Update c/image from the main branch
    468ac655 Update module github.com/containers/common to v0.51.2
    7481aae6 Update dependency containers/automation_images to v20230330
    454f8559 systemtests: Fix 040-local-registry-auth about XDG_RUNTIME_DIR
    bbdcb79c [CI:BUILD] Packit: trigger builds on commit to main branch
    cd4f2ee5 [skip-ci] Update actions/stale action to v8
    b2ede999 Make the installation instructions more prominent in README.md
    8ea5fd44 Update dependency containers/automation_images to v20230320
    aa9862a7 Update module github.com/containers/common to v0.51.1
    0ad54d6d Cirrus: Update CI VM images
    20447df1 bump golang.org/x/net to v0.8.0
    3481a5b9 Update module golang.org/x/term to v0.6.0
    bcc0d54e Simplify inspectOptions.writeOutput a bit more
    c345785d Factor out the output of data in (skopeo inspect)
    2a6a944c Use io.WriteString
    9a02c1eb Update module github.com/stretchr/testify to v1.8.2
    f1c03ef1 Update module github.com/containers/storage to v1.45.4
    64daedca Update golang.org/x/exp digest to 5e25df0
    c07f2098 Fix formatting of inspect examples
    313f142c Use common library reporter
    4beb3f0a Fix some warnings
    1c3d49f0 Fix tabelating output in (skopeo inspect --format)
    fb0be613 Corrected typo in skopeo-sync and updated description
    2ef9cf69 Replace gopkg.in/check.v1 by github.com/stretchr/testify/suite/
    0ba164f0 Update c/image after https://github.com/containers/image/pull/1842
    012e1144 [CI:BUILD] Packit: initial enablement
    5435c808 Renovate: c/common rule moved to defaults
    643a2359 Update c/image after https://github.com/containers/image/pull/1816
    2c6e15b5 Run codespell on codebase
    df708d16 [CI:DOCS] Disable dependabot
    2acac8a6 Update module golang.org/x/term to v0.5.0
    f9e2c676 Update golang.org/x/exp digest to 46f607a
    47c7902e Remove unnecessary blank lines
    c1a57ca1 Pre-allocate an array
    2a7b1327 Simplify a condition
    e7ab33e6 Rename a variable to avoid an underscore
    e90c381a Add missing comment punctuation
    70c06b4a Fix, or remove, comments using lint syntax
    9137ac56 Simplify an increment
    efc6e837 Reformat import statements
    a8b9e4e3 Use %w when wrapping errors
    99215e40 Remove a duplicate word
    afa031e8 Use net/netip.Addr instead of net.IP
    891ba3d4 s/interface{}/any/g
    f2b3a9c0 Use golang.org/x/exp
    f1a6d427 Use strings.Cut
    22955d05 go mod tidy -go=1.18
    007f01c6 [CI:BUILD] enable debuginfo for el8 copr builds
    036bf598 [CI:BUILD] copr: fix el8 build and enable debuginfo
    f9406bb0 Cirrus: Use human-readable CI VM Images
    b41b85ab Update module gopkg.in/yaml.v2 to v3
    d2fbec35 Add unit tests for tlsVerifyConfig's yaml.Unmarshaler
    9e24a195 [CI:DOCS] Fix up language in README

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2023-06-15 17:42:31 -04:00
Bruce Ashfield
d74219e96b skopeo: update to 1.11.2
Bumping skopeo to version v1.11.2-1-gd79588e6, which comprises the following commits:

    d79588e6 Bump to v1.11.3-dev
    dc1e14f7 Release 1.11.2
    902506dd bump golang.org/x/net to v0.7.0
    b2884205 [release-1.11] Bump to v1.11.2-dev
    fb1ade6d [release-1.11] Bump to v1.11.1
    40dd6507 Update to c/image 5.24.1

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2023-04-05 22:59:52 -04:00
Bruce Ashfield
d51e06f053 skopeo: update to 1.11.0-tip
Bumping skopeo to version v1.11.0-102-g1e70fee2, which comprises the following commits:

    ca0f8418 fix(deps): update module github.com/spf13/cobra to v1.7.0

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2023-04-05 22:59:52 -04:00
Chen Qi
a1bb5d0ab0 container-host-config: provide /etc/containers/policy.json
The /etc/containers/policy.json[1] file is used to specify verification
policy. For now, we can see it's used by both cri-o and skopeo. To avoid
conflict, we use container-host-config to provide this file and make both
skopeo and cri-o depend on it.

[1] https://github.com/containers/image/blob/main/docs/containers-policy.json.5.md

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2023-02-21 10:11:47 -05:00
Bruce Ashfield
82698d9234 skopeo: use container-host bbclass to provide configuration
Instead of providing storage and registries configuration files
in this package, we inherit container-host which will provide a
common definition of these configs.

This allows multiple packages to ensure that the configuration
files are present, and not conflict in their installation.

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2023-02-17 15:21:53 -05:00
Bruce Ashfield
20fde9bbee skopeo: update to 1.11.0
We drop a patch that is now part of the release.

Bumping skopeo to version v1.11.0-39-g95680f3c, which comprises the following commits:

    643a2359 Update c/image after https://github.com/containers/image/pull/1816
    2c6e15b5 Run codespell on codebase
    df708d16 [CI:DOCS] Disable dependabot
    2acac8a6 Update module golang.org/x/term to v0.5.0
    f9e2c676 Update golang.org/x/exp digest to 46f607a
    47c7902e Remove unnecessary blank lines
    c1a57ca1 Pre-allocate an array
    2a7b1327 Simplify a condition
    e7ab33e6 Rename a variable to avoid an underscore
    e90c381a Add missing comment punctuation
    70c06b4a Fix, or remove, comments using lint syntax
    9137ac56 Simplify an increment
    efc6e837 Reformat import statements
    a8b9e4e3 Use %w when wrapping errors
    99215e40 Remove a duplicate word
    afa031e8 Use net/netip.Addr instead of net.IP
    891ba3d4 s/interface{}/any/g
    f2b3a9c0 Use golang.org/x/exp
    f1a6d427 Use strings.Cut
    22955d05 go mod tidy -go=1.18
    007f01c6 [CI:BUILD] enable debuginfo for el8 copr builds
    036bf598 [CI:BUILD] copr: fix el8 build and enable debuginfo
    f9406bb0 Cirrus: Use human-readable CI VM Images
    b41b85ab Update module gopkg.in/yaml.v2 to v3
    d2fbec35 Add unit tests for tlsVerifyConfig's yaml.Unmarshaler
    9e24a195 [CI:DOCS] Fix up language in README
    cc958d3e Move to v1.11.1-dev
    9d036f30 Bump to v1.11.0
    83bcd136 [CI:DOCS] Format manual page documents
    afbdaf8e Update module github.com/containers/common to v0.51.0
    c9114248 Update module github.com/containers/image/v5 to v5.24.0
    0fad1193 Add (skopeo generate-sigstore-key)
    48b9d94c Update c/image after https://github.com/containers/image/pull/1810
    80e3fd10 Touch up conscious language issues
    9f04dfde Partially fix removal of temporary data in (make test-system)
    36c480f6 Don't affect $XDG_RUNTIME_DIR of Podman starting the registry
    850bc49d Update module github.com/containers/storage to v1.45.3
    a98c1372 Fix storage.conf setup in test-system
    19815502 Fix (test-integration), in a container without CI
    67a8bef6 Cirrus: Fix c/image CI testing
    63da8390 Bump github.com/containers/ocicrypt from 1.1.6 to 1.1.7
    1fac61ef Cirrus: Add a common intra-test reset function
    292962d3 Fix unnecessary use of podman in CI test
    e239f32a Cirrus: Update to F37 CI VM Images
    ee804858 Cirrus: Remove redundant package install attempt
    0698e82b fix(deps): update module github.com/containers/storage to v1.45.1
    bb1ac893 Add support for Fulcio and Rekor, and --sign-by-sigstore=param-file
    03b5bdec Update c/image after https://github.com/containers/image/pull/1787
    1133a2a3 fix(deps): update module github.com/containers/storage to v1.45.0
    d0cf39d8 Cirrus: Skip OSX CI on release-branches
    f17eafe8 Correctly use the stdout parameter in some places
    58bccf38 fix(deps): update module golang.org/x/term to v0.4.0

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2023-02-17 15:21:29 -05:00
Bruce Ashfield
2119189361 treewide: bulk update patches with status field
While the insane.bbclass upstream-status check hasn't been made
default, users of meta-virtualization may have it enabled in their
distros .. so the effect is the same. We must have this tracking
tag in out patches.

This is a bulk update to add the tag and silence the QA message.

As packages get updated, the normal/routine process of checking
the patches will continue, and the status fields may (or may not)
get more useful.

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2023-01-27 10:32:06 -05:00
Jose Quaresma
67e8b34d99 skopeo: fix build with btrfs-progs 6.1
| # github.com/containers/storage/drivers/btrfs
| vendor/github.com/containers/storage/drivers/btrfs/btrfs.go:387:11: args.lim.max_referenced undefined (type _Ctype_struct_btrfs_qgroup_limit has no field or method max_referenced)
| recipe skopeo-v1.8.0+gitAUTOINC+b95e081162-r0: task do_compile: Failed

Signed-off-by: Jose Quaresma <jose.quaresma@foundries.io>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2023-01-10 13:58:07 -05:00
Bruce Ashfield
0510eb580c skopeo: update to v1.10.0
Bumping skopeo to version v1.10.0-77-g4517ea0b, which comprises the following commits:

    58bccf38 fix(deps): update module golang.org/x/term to v0.4.0
    f0c08985 [skip-ci] Update actions/stale action to v7
    92e3146a proxy: Fix leak of blobs from containers-storage
    960713da vendor: Bump golang.org/x/net to 4.0
    b51f8ea2 proxy: Ensure images are closed when proxy is shutting down
    9c6cbc94 Add an example for creating a docker-archive file
    3eb9d71d proxy: Add GetLayerInfo API
    46d48295 fix(deps): update module golang.org/x/term to v0.3.0
    3212bbed [skip-ci] GHA/Cirrus-cron: Fix execution order
    40ba7a27 Update skopeo-inspect man page example
    278be5a5 README: Update example to show newly exposed LayerData
    b5ac5349 [CI:BUILD] Cirrus: Migrate OSX task to M1
    35532b24 Adds sync with tag suffix example
    1af1d9c2 GHA: Add cirrus-cron auto-rerun job
    bdf19302 Adds `--append-suffix` flag to sync
    563c91a2 fix(deps): update module github.com/containers/storage to v1.44.0
    e1fdb4da Cirrus: Add reverse-deps. test to verify proxy ext
    d06bf27e [skip-ci] Update actions/stale action to v6
    8410bfdd fix(deps): update module golang.org/x/term to v0.2.0
    16d4a81b Renovate: Override global no-rebase option
    2b55a723 chore(deps): update actions/stale to v3
    f968b2a8 fix(deps): update module github.com/spf13/cobra to v1.6.1
    fe5c4091 Close a HTTP response body
    d5327bce fix(deps): update module golang.org/x/term to v0.1.0
    6d3d9a3b fix(deps): update module github.com/stretchr/testify to v1.8.1
    5c69302d Update to c/image main branch
    6d564d4d bump to v1.11.0-dev
    4c0e5650 chore(deps): add renovate.json
    757ec5db proxy: Bump semver for OpenImageOptional
    08b27fc5 proxy: Add `OpenImageOptional`
    9b6f5b6e Add a workaround for public.ecr.aws not implementing tag list at all
    632cebd7 Update AWS workaround to use Golang types
    ea9aa68b Reorganize the "list tags failed" logic in inspect.go a bit
    c476d626 Remove a (skopeo inspect) workaround for IBM Bluemix
    fce2cf9c Fix an error message to refer to repo, not a single image
    9724da1f Remove a special case for failing to list tags in (skopeo sync)
    955a59c8 Update tests for changed error texts
    ae50898b Include c/image after https://github.com/containers/image/pull/1299
    f3aee25c Fold a long line.
    1983173b Remove single-use "wanted" variables
    4ccfb033 Bump github.com/spf13/cobra from 1.5.0 to 1.6.0
    a4951550 Bump github.com/containers/ocicrypt from 1.1.5 to 1.1.6
    e021b675 Bump github.com/opencontainers/image-spec from 1.1.0-rc1 to 1.1.0-rc2
    5eace407 Bump to v1.10.1-dev
    ee60474d Release v1.10.0
    7ebff0f5 Update for https://github.com/klauspost/pgzip/pull/50
    787e1087 Revert addition of -compat=1.17 to (go mod tidy)
    ee84302b Update vendor containers/(common,image)
    89ae387d [CI:DOCS] Add quay-description update reminder
    feabfac2 Bump github.com/containers/storage from 1.42.0 to 1.43.0
    18a95f94 Fix documentation in the default registries.d content.
    9b40f0be default.yaml should have all options commented
    166b587a warn about ineffective destination opts in sync cmd
    0a42c33a document imageDestOptions.warnAboutIneffectiveOptions()
    90c50338 warn users about --dest-compress and --dest-decompress misuse
    d3ff6e26 warn users about --dest-compress and --dest-decompress misuse
    3a05dca9 Don't abort sync if the registry returns invalid tags
    d9dfc448 add inspect layersData
    ba23a916 Stop using docker/docker/pkg/homedir in tests
    4b9ffac0 Update for c/image's update of github.com/gobuffalo/pop
    f36752a2 Don't include git commit from a parent directory in the --version output
    4e2dee43 Remove unused GIT_BRANCH definition
    3450c11a Point at --all in the --preserve-digests option documentation
    3a808c2e Talk about "registry repositories" in (skopeo sync) documentation
    04169cac Fix looking for commands with GNU make 4.2.1
    a99bd0c9 Fix a comment
    fa2b15ff Reformat with Go 1.19's gofmt
    9e79da5e Fix running tests on macOS
    a863a0dc Optimize upstream skopeo container image build
    67a4e044 GHA: Re-use identical workflow from buildah repo
    e95123a2 Bump to v1.9.3-dev
    ca1b0f34 Release v1.9.2
    73a668e9 Bump github.com/containers/common from 0.49.0 to 0.49.1
    eafd7e55 Cirrus: Update CI VM images to match podman CI
    b9cf626e [CI:DOCS] Cirrus: Use the latest imgts container
    63dabfcf Bump to v1.9.2-dev
    2eac0f46 Release v1.9.1
    b7e7374e Stop using deprecated names from c/common/pkg/retry
    08846d18 Update to github.com/containers/common v0.49.0
    049163fc Update to github.com/containers/image/v5 v5.22.0
    b42e6648 Bump github.com/containers/storage from 1.41.0 to 1.42.0
    ee477d88 Bump github.com/sirupsen/logrus from 1.8.1 to 1.9.0
    f1485781 Bump to v1.9.1-dev
    a03cba7c Release v1.9.0
    b000ada3 Update for the renames of sigstore to lookaside
    f2b4071b Add --sign-by-sigstore-private-key to (skopeo copy) and (skopeo sync)
    06be7a15 Vendor in c/image with sigstore support
    61593fcc Revert "Change a repo used for sync tests"
    62158a58 Vendor unreleased c/image with OCI artifact support

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2023-01-10 13:58:07 -05:00
Bruce Ashfield
f6f4f2c1c3 skopeo: reprodicibility enable trimpath and strip
Skopeo is throwing TMPDIR QA warnings due to paths being built
into the binaries. We fix this by creating a new variable to
pass -trimpath into the build, and also by defining the linker
flags -w -s to strip source/path information from the binaries.

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2022-09-13 12:56:27 -04:00
Andrei Gherzan
538e94e674 skopeo: Mark CVE-2019-10214 as fixed
This CVE was fixed[1] in the container image go library skopeo is using
(vendoring). The current version of the image go module is v5.20.0 while
the fix landed since v3.0.0[2].

See RedHat's resolution[3] for more details.

[1] https://github.com/containers/image/issues/654
[2] a3d69a4a89
[3] https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2019-10214

Signed-off-by: Andrei Gherzan <andrei.gherzan@huawei.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2022-08-25 22:54:25 -04:00
Bruce Ashfield
e75695455b skopeo: update to v1.8.0
We drop our gpme patch, since it is no longer needed.

Bumping skopeo to version v1.8.0-75-gb95e0811, which comprises the following commits:

    61593fcc Revert "Change a repo used for sync tests"
    62158a58 Vendor unreleased c/image with OCI artifact support
    7900440a Use errors.As() instead of direct type checks
    c654871b Remove uses of pkg/errors
    7abcca93 Modify error messages on failures to close
    f7df4a08 Introduce noteCloseFailure, use it for reporting of cleanup errors
    33116235 Bump github.com/stretchr/testify from 1.7.5 to 1.8.0
    89089f3a Update IRC information
    ba6af16e Use bytes.ReplaceAll instead of bytes.Replace(..., -1)
    2024e2e2 Update & fix skopeo multiarch image Containerfiles
    774ff9d1 Cirrus: Migrate multiarch build off github actions
    899d3686 Bump github.com/stretchr/testify from 1.7.4 to 1.7.5
    2f77d213 Bump github.com/stretchr/testify from 1.7.2 to 1.7.4
    2009d1c6 Bump github.com/spf13/cobra from 1.4.0 to 1.5.0
    fe022809 [CI:DOCS] skopeo.spec.rpkg: Fix syntax highlighting
    71d450cb [CI:DOCS] Makefile: include cautionary note for rpm target
    37388544 CoPR: Autobuild rpm on rhcontainerbot/podman-next
    38f4b9d0 Enable schema1 support on the test registries
    1b5fb465 Update for docker/distribution CLI change
    e9ed5e04 Use an updated CI image
    bbdabebd Change a repo used for sync tests
    92c0d0c0 Use testing.T.Setenv instead of os.Setenv in tests
    a3a72342 Update go.mod to Go 1.17
    e9379d15 Bump github.com/docker/docker
    69840fd0 Bump github.com/stretchr/testify from 1.7.1 to 1.7.2
    63622bc7 Bump github.com/containers/ocicrypt from 1.1.4 to 1.1.5
    6b584598 Cirrus: use Ubuntu 22.04 LTS
    00a58e48 Update to github.com/opencontainers/runc >= 1.1.2
    263a5f01 fix make completions for all POSIX shells
    0a3be734 Update to gopkg.in/yaml.v3 v3.0.0
    0ad7ec24 Updated skopeo logo with new artwork
    014d47f3 [CI:DOCS] Pin actions to a full length commit SHA
    d78bc827 shell completion: add completion for transports names
    6c2a415f shell completion: add install instructions docs
    9bed0a9e shell completion: add Makefile target
    ebc5573e Stop calling gpgme-config
    1ebb2520 Update c/image
    9b4c1f15 Remove cgo_pthread_ordering_workaround.go
    6863fe2d add completion command to generate shell completion scripts
    3eca480c Bump github.com/docker/docker
    149dea8d Bump github.com/containers/storage from 1.40.2 to 1.41.0
    804f7c24 Avoid hard-coding the location of bash
    e47765ed Config files live in /usr/local/etc on FreeBSD
    13ceb93b Bump github.com/docker/docker
    cd4607f9 Move to v1.8.1-dev
    37727a45 Bump to v1.8.0
    75d94e79 Bump ocicrypt to v1.1.4
    737ed9c2 Vendor in containers/storage v1.40.2
    3c286dd1 Vendor in containers/(common, storage, image)
    b8b0e993 [CI:DOCS] install.md: include distro package info links
    d9035db6 [CI:DOCS] install.md: remove Kubic package info for Ubuntu
    916a395d Cirrus: Update to F36 w/ netavark+aardvark-dns
    8960ab3c Update vendor of containers/(common,storage,image)
    d9d3ceca Use filepath.WalkDir instead of filepath.Walk
    23a46057 Extract four copies of the same loop into a function
    4811c07d Update users of deprecated io/ioutil
    4ef35a38 Add option to specify the identity for signing
    38ae81fa Bump containers/image to include sign identity option
    9b09b6eb delete non-existent option in the cmdline example
    c233a6dc Add dry-run mode to skopeo-sync
    e6802c4d Update skopeoimage/README.md that tags are v-prefixed
    80871786 Bump to v1.7.1-dev
    f45ae950 Release 1.7.0
    3bc06242 Bump github.com/prometheus/client_golang to v1.11.1
    89cd1951 Bump github.com/containers/common from 0.47.4 to 0.47.5
    7f6b0e39 Bump github.com/containers/storage from 1.38.2 to 1.39.0
    f6bf5746 Bump github.com/docker/docker
    a9cc9b91 Improve the (skopeo delete) man page
    ac7edc7d Bump github.com/containers/ocicrypt from 1.1.2 to 1.1.3
    c819bc17 Update the command to install golint
    6a2f38d6 Formally record that we require Go 1.15
    2019b79c Use check.C.MkDir() instead of manual ioutil.TempDir() calls
    f79cc8ae Update to Go 1.14 and revendor
    ac4c291f Use assert.ErrorContains
    5aaf3a9e Bump github.com/stretchr/testify from 1.7.0 to 1.7.1
    bd524670 Simplify the proxy server a bit
    693de29e Add various missing error handling
    f44ee2f8 Remove assignments to an unused variable
    a7190099 Rename "self" receiver
    7ba56f3f Add support for docker-archive: to skopeo list-tags
    ad3e8f40 Bump github.com/spf13/cobra from 1.3.0 to 1.4.0
    0703ec6c Bump github.com/docker/docker
    52002728 Update github.com/containerd/containerd

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2022-08-09 14:26:28 -04:00
Chen Qi
ce03a8868f skopeo: clean up depends and fix CGO settings
According to https://github.com/containers/skopeo/blob/main/install.md#building-from-source,
the ostree dependency is not needed.

Also, adjust the CGO_CFLAGS and CGO_LDFALGS to use target
flags instead of the SDK ones.

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2022-06-20 12:09:46 -04:00
Bruce Ashfield
3b75599096 skopeo: update to 1.6.1
Bumping skopeo to version v1.6.1-10-g3e2defd6, which comprises the following commits:

    52002728 Update github.com/containerd/containerd
    0ad25b2d Bump github.com/containers/image/v5 from 5.19.1 to 5.20.0
    8cbfcc82 do not recommend upgrading all packages
    370be7e7 Improve a comment in the 010-inspect.bats test
    73edfb82 Move to v1.7.0-dev
    49084d2c Bump to v1.6.1
    23183072 Work around systemd-resolved's handling of .invalid domains
    3be97ce2 Beautify a few calls
    49d9fa9f Only look for the layer digests in the Layers field.
    77363128 Don't expect the config blob to be listed in (skopeo inspect)
    0f363498 Cirrus: Use updated VM images
    27b77f2b Bump c/common to v0.47.4
    de714082 tests: skip sif test on RHEL
    697ef595 Bump to v1.6.1-dev
    e4b79d77 Release v1.6.0
    162bbab3 Bump version of containers/image and containers/common
    004519f1 Improve the documentation of boolean flags
    9db60ec0 Document where various fields of (skopeo inspect) come from
    cb74933b Improve the documentation of the argument to (skopeo inspect)
    7f4db3db Update vendor of containers/storage and containers/common
    a4476c35 add a SIF systemtest
    042f4816 Update vendor of containers/common
    bd8ed664 Github workflow: Fix yaml syntax
    b51707d5 Bump github.com/containers/storage from 1.38.0 to 1.38.1
    bb49923a prompt-less signing via passphrase file
    cd58349b Github-workflow: Report both failures and errors
    2858904e Run codespell on code
    923c58a8 Update the vendor of containers/common
    1bf18b7e Bump github.com/containers/storage from 1.37.0 to 1.38.0
    d32c56b4 Update github.com/containerd/containerd to 1.5.9
    6007e792 Fix the pseudo-version of github.com/opencontainers/image-spec
    5aa06a51 Update github.com/opencontainers/runc to v1.0.3
    f6a84289 Bump github.com/spf13/cobra from 1.2.1 to 1.3.0
    c5b45c6c Bump github.com/docker/docker
    c582c484 Add option to preserve digests on copy
    2046bfda Add option to preserve digests on copy
    e7dc5e79 proxy: Also bump compatible semver
    3606b2d1 proxy: Add a GetFullConfig method
    5c82c772 Update github.com/containerd/containerd to v1.5.8
    37d801c9 Update opencontainers/image-spec
    d9401546 Add an option to allow copying image indexes alone
    4dcd28df Use a dynamic temp dir for test

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2022-03-21 17:31:28 -04:00
Bruce Ashfield
0846bddaef skopeo: update to v1.5.2
Bumping skopeo to version v1.5.2-3-g1d24e657, which comprises the following commits:

    4dcd28df Use a dynamic temp dir for test
    789ee8be Bump to 1.5.3-dev
    8a88191c Release 1.5.2
    69728fdf Update to c/image v5.17.0
    47066f2d Cirrus: Bump Fedora to release 35 & Ubuntu to 21.10
    adfa1d4e Bump github.com/docker/docker
    05a2ed49 proxy: Uncapitalize all errors
    e9535f86 tests: Add new "procutils" that exposes PDEATHSIG
    fa86297c proxy_test: Test `GetConfig`
    2bb6f27d proxy_test: Add helper to read all from a reply
    f90725d8 proxy_test: Add a helper method to call without fd
    644074cb proxy: Add support for manifest lists
    83416068 tests/integration/proxy_test: New test that exercises `proxy.go`
    a3adf36d proxy: Use float → int helper for pipeid
    6510f101 proxy: Add a helper to return a byte array
    e7b7be57 proxy: Add an API to fetch the config upconverted to OCI
    942cd6ec Fix bug that prevented useful diagnostics on registry fail
    41de7f2f use fedora:latest in contrib/skopeoimage/*/Dockerfile
    c264cec3 Move to v1.5.2-dev
    2b357d82 Bump to v1.5.1
    4acc9f0d main: Error out if an unrecognized subcommand is provided
    7885162a move optional-flag code to c/common/pkg/flag
    36d860eb Add --dest-precompute-digests option for docker
    c8777f3b bump containers/image to 2541165
    985d4c09 Add instructions to generate static binaries
    11b59898 Add new `experimental-image-proxy` hidden command
    2144a37c issue#785 inspect command - introduce a way to skip querying available tags for an image
    60c98cac Document container images as an alternative to installing packages
    89ecd5a4 Introduce --username and --password to pass credentials
    119eeb83 Move to v1.5.1-dev
    209a9931 Bump to v1.5.0
    3e4d4a48 Bump github.com/containers/image/v5 from 5.16.0 to 5.16.1
    3a97a0c0 Bump github.com/docker/docker
    ff88d3fc Remove leftover Nix packaging files
    e19b57c3 Update github.com/containerd/containerd to v1.5.7
    b950f83c issue#1466 - Introduce a --keep-going option to allow "sync" command to continue syncing even after a particular image sync fails
    12d01037 Bump github.com/containers/storage from 1.36.0 to 1.37.0
    e0c53dfd Update installation doc with latest steps
    aba57a88 Makefile: drop nix support
    93c42bcd Bump github.com/containers/common from 0.45.0 to 0.46.0
    c0f07d3d Bump github.com/containers/common from 0.44.1 to 0.45.0
    0ce7081e Bump github.com/containers/common from 0.44.0 to 0.44.1
    52dafe8f Update to github.com/vbauerster/mpb v7.1.5
    ee8b8e77 Explain the usage of DISABLE_DOCS in the installation doc
    1d204fb1 Update VM Images + Drop prior-ubuntu references
    61310777 issue#1411 Introduce DISABLE_DOCS to skip doc generation while building from source
    ed96bf04 Bump github.com/containers/common from 0.43.2 to 0.44.0
    a837fbe2 Bump github.com/containers/storage from 1.35.0 to 1.36.0
    9edeb69f Remove the extra (defaults to true) help msg
    a2d083ca Bump github.com/containers/image/v5 from 5.15.2 to 5.16.0
    0e87d4d1 Run (gofmt -s -w)
    c399909f Update non-module dependencies
    102e2143 Bump github.com/containers/image/v5 from 5.15.1 to 5.15.2
    7d5ef9d9 Bump github.com/containers/common from 0.43.1 to 0.43.2
    70eaf171 Add OWNERS file
    61969472 Bump github.com/containers/image/v5 from 5.15.0 to 5.15.1
    ec1ac5d0 Bump github.com/containers/storage from 1.34.0 to 1.34.1
    082db20f Bump github.com/containers/common from 0.43.0 to 0.43.1
    8dce403b Add codespell fixes
    f6ae7865 systemtests: if registry times out, show container logs
    9acb8b6a Bump github.com/containers/common from 0.42.1 to 0.43.0
    a23b9f53 Bump github.com/containers/storage from 1.33.2 to 1.34.0
    be821b4f Bump github.com/containers/storage from 1.33.1 to 1.33.2
    ab87b15f Cirrus: Run checks directly on the host
    1aa98bab Github: Add workflow to monitor Cirrus-Cron builds
    fbf96998 Bump github.com/docker/docker
    a3bb1cc5 Bump github.com/containers/common from 0.42.0 to 0.42.1
    0667a1e0 Bump to 1.4.1-dev

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2021-11-30 14:59:07 -05:00
Bruce Ashfield
0a7ae8bc50 global: convert github SRC_URIs to use https protocol
github is removing git:// access, and fetches will start experiencing
interruptions in service, and eventually will fail completely.

bitbake will also begin to warn on github src_uri's that don't use
https. So we convert the meta-virt instances to use protocol=https
(done using the oe-core contrib conversion script)

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2021-11-02 09:57:03 -04:00
Bruce Ashfield
80065eb29f skopeo: refresh storage.conf
Our storage.conf is a bit stale and is throwing warnings during
load (due to thin provisioning changing). We refreshin it from
the skopeo repository.

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2021-10-20 09:45:54 -04:00
Bruce Ashfield
d80fdc6726 skoeo: update to 1.4.x release series
updating to the 1.4.x release series, we refresh our Makefile patch
and pick up the following commits:

    6b2aa5da [release-1.4] Bump to v1.4.2-dev
    130f32f0 [release-1.4] Bump to v1.4.1
    6f99811c [release-1.4] Bump c/image 5.15.2 c/storage 1.34.1 c/common 0.42.1
    a9f5f10c [release-1.4] Bump c/storage 1.34.0, c/image 5.15.1 and c/common 0.43.0
    a44da449 Release 1.4.0
    3d9340c8 vendor-in-container: update to golang:1.16
    961d5da7 Accept repositories on login/logout
    fb03e033 update c/common, c/image, c/storage
    d70ea890 Update on Building on Ubuntu
    ce6035b7 Add timeouts when waiting on OpenShift or the registry to start
    3a8d3cb5 Add docs and bash completions
    aeb61f65 Add support for decompressing while copying to dir://
    76eb9bc9 Update to enabled containers/image version
    a1f9318e Fix two instances of unused err found by go-staticcheck
    d82c6621 Bump github.com/containers/storage from 1.32.6 to 1.33.0
    f0c49b5c Multi-arch image build: Daily version-tag push
    5e550664 CONTRIBUTING: small fixes to commands
    726d982c Fix --tls-verify
    bb447f2f Test both imageOptions and imageDestOptions in TestTLSVerifyFlags
    2a98df6b Split testing of --tls-verify into separate TestTLSVerifyFlags
    a6cf2f42 Add the --tls-verify option to (skopeo logout)
    285a5cb6 Fix using images from rate-limited docker hub
    02bacf57 Use Fedora container for doccheck
    ae0595c5 Man page validation: part 2 of 2
    ec73ff3d docs: Adding info re container signatures
    e460b9aa [CI:DOCS] Multi-arch image workflow: Make steps generic
    ee054863 Update nix pin with `make nixpkgs`
    2476e99c Cirrus: Freshen CI images
    76103a6c Bump github.com/containers/common from 0.40.1 to 0.41.0
    990908bf Bump github.com/containers/storage from 1.32.5 to 1.32.6
    ede29c91 Remove an unnecessary break
    75f0183e Remove an unnecessary Sprintf
    7ace4265 Fix TestDockerRepositoryReferenceParser
    3d4fb09f Remove unused code
    4efeb71e Set cobra.Command.CompletionOption already in createApp
    a0ce5421 Bump version to v1.4.0-dev
    f80bf8a3 Revert "integration tests: disable `ls` for logs"
    c39b3dc2 CONTRIBUTING: update vendoring instructions
    8eaf0329 disable `completion` command
    aeb75f38 Bump github.com/spf13/cobra from 1.2.0 to 1.2.1
    83603a79 Bump github.com/spf13/cobra from 1.1.3 to 1.2.0
    6d6c8b56 Update tests for removal of error and Error from error messages
    09282bcf Fix some comments in man-page-checker
    09ca3ba4 Improve the description of (skopeo list-tags)
    22908fb3 Include the mandatory --output option in synopsis of (skopeo standalone-sign)
    a3725128 Support **non-replaceable strings** in synopsis
    e4d13920 Use (make validate-local) in the validate target
    e716b2fa man page checker - part 1 of 2
    97eaace7 Cirrus: Rename cross -> osx task, add cross task.
    30c0eb03 Bump github.com/containers/ocicrypt from 1.1.1 to 1.1.2
    5918513e Cirrus: Add vendor + tree status check
    b20c2d45 Run unit tests as well, not integration tests twice
    d0f7339b Bump github.com/containers/storage from 1.32.4 to 1.32.5
    012ed661 Reintroduce the GNU semantics of DESTDIR
    c30b904c Add --retry-times to markdown docs
    9fbb9abc Workaround quay.io image build failure
    4417dc44 Update brew to avoid 403 on accessing https://homebrew.bintray.com
    93b819a7 Fix automation re: master->main rename
    e7c5e9f7 Bump github.com/containers/storage from 1.32.3 to 1.32.4
    1eac38e3 Bump github.com/containers/common from 0.40.0 to 0.40.1
    b1e78efa Bump github.com/containers/storage from 1.32.2 to 1.32.3
    298f7476 Bump github.com/containers/image/v5 from 5.13.1 to 5.13.2
    5778d9bd Fix documentation of the --format option of skopeo copy and skopeo sync
    df170047 Bump github.com/containers/common from 0.39.0 to 0.40.0
    ad4ec8b4 Cirrus: New VM Images w/ podman 3.2.1
    abdc4a7e Bump github.com/containers/image/v5 from 5.12.0 to 5.13.1
    bcc18ebf Update nix pin with `make nixpkgs`
    9b9ef675 Fix multi-arch build version check
    9a5f009e [CI:DOCS] Fix docs links due to branch rename
    865407ca Bump github.com/containers/storage from 1.32.1 to 1.32.2
    10c4c877 Update nix pin with `make nixpkgs`
    e32f3f17 Bump github.com/docker/docker
    76110014 Fix wrong directory name
    a0b6ea28 Support [CI:DOCS] mode
    e5cb7ce1 install.md Building Docs needs MacOS section
    c8060838 Bump github.com/containers/storage from 1.32.0 to 1.32.1
    cac3f2b1 Bump github.com/containers/common from 0.38.4 to 0.39.0
    6452a9b6 Multi-arch github-action workflow unification
    184f0eee Bump github.com/containers/storage from 1.31.1 to 1.31.2
    65ed9920 Move to v1.3.1-dev

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2021-08-27 10:50:45 -04:00
Bruce Ashfield
d876cfc5bf global: overrides syntax conversion
OEcore/bitbake are moving to use the clearer ":" as an overrides
separator.

This is pass one of updating the meta-virt recipes to use that
syntax.

This has only been minimally build/runtime tested, more changes
will be required for missed overrides, or incorrect conversions

Note: A recent bitbake is required:

    commit 75fad23fc06c008a03414a1fc288a8614c6af9ca
    Author: Richard Purdie <richard.purdie@linuxfoundation.org>
    Date:   Sun Jul 18 12:59:15 2021 +0100

        bitbake: data_smart/parse: Allow ':' characters in variable/function names

        It is becomming increasingly clear we need to find a way to show what
        is/is not an override in our syntax. We need to do this in a way which
        is clear to users, readable and in a way we can transition to.

        The most effective way I've found to this is to use the ":" charater
        to directly replace "_" where an override is being specified. This
        includes "append", "prepend" and "remove" which are effectively special
        override directives.

        This patch simply adds the character to the parser so bitbake accepts
        the value but maps it back to "_" internally so there is no behaviour
        change.

        This change is simple enough it could potentially be backported to older
        version of bitbake meaning layers using the new syntax/markup could
        work with older releases. Even if other no other changes are accepted
        at this time and we don't backport, it does set us on a path where at
        some point in future we could
        require a more explict syntax.

        I've tested this patch by converting oe-core/meta-yocto to the new
        syntax for overrides (9000+ changes) and then seeing that builds
        continue to work with this patch.

        (Bitbake rev: 0dbbb4547cb2570d2ce607e9a53459df3c0ac284)

        Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2021-08-02 17:17:53 -04:00
Bruce Ashfield
803e7080ce skopeo: update to 1.31 release tag/branch
Switching to the release 1.31 branch, and picking up two minor
version bump commits. This isn't much different than our previous
build from master/main, but it is worth following the release
branch for now.

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2021-07-12 09:35:02 -04:00
Bruce Ashfield
ae44f7f504 skopeo: switch to 'main' branch
Skopeo has migrated from master to main, so we adjust our branch
accordingly.

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2021-07-12 09:25:12 -04:00
hongxu
c1bd680e12 skopeo: fix native skopeo failed if no libdevmapper.so.1.02 on host
If host does not install libdevmapper.so.1.02, run native skopeo failed:
...
$ tmp-glibc/sysroots/x86_64/usr/sbin/skopeo -h
|tmp-glibc/sysroots/x86_64/usr/sbin/skopeo.real: error while loading
shared libraries: libdevmapper.so.1.02: cannot open shared object file: No such file or directory
...

Create wrapper to set LD_LIBRARY_PATH which using native
libdevmapper.so.1.02

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2021-07-07 15:42:51 -04:00
Xu, Yanfei
bbf7ddbe02 skopeo: add native and nativesdk support
1.Add native and nativesdk support.

2.Replace "multipath-tools" with "libdevmapper" and "lvm2". Because
the really direct DEPENDS package is "libdevmapper" and "lvm2". Log
of do_comopile as below:

-----------------[cut here]---------------------
DEBUG: Executing shell function do_compile
NOTE: make -j 40 BUILDTAGS= bin/skopeo
CGO_CFLAGS="-I/...../usr/include"
CGO_LDFLAGS="-L/...../usr/lib
-lgpgme -lgpg-error -lassuan" GO111MODULE=on go build -mod=vendor
"-buildmode=pie" -ldflags '-X
main.gitCommit=8efffce8befc2de87670ba75d6c86ada61e869fd ' -gcflags ""
-tags "" -o bin/skopeo ./cmd/skopeo
Package devmapper was not found in the pkg-config search path.
Perhaps you should add the directory containing `devmapper.pc'
to the PKG_CONFIG_PATH environment variable
No package 'devmapper' found
pkg-config: exit status 1
make: *** [Makefile:134: bin/skopeo] Error 2

Signed-off-by: Yanfei Xu <yanfei.xu@windriver.com>

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2021-06-24 12:40:18 -04:00
Bruce Ashfield
b22003973b skope: update to 1.3.x
Updating skopeo to the 1.3.x series. Along with the version bump, we
patch the Makefile to stop using gpgme-config and instead using
pkg-config, since OE taints gpgme-config and the build will break if
we call it directly.

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2021-06-04 08:43:08 -04:00
Bruce Ashfield
ce6815f6ce skopeo: bump to 1.2.3 -dev
Pulling in the small set of commits that move us to the
1.2.3-dev cycle:

  5a117bfc Bump c/storage to v1.24.8 and c/image to v5.10.5 for RHEL 8.4 in release-1.2
  560a34af Bump to v1.2.3-dev
  b94b7dc0 Bump to Skopeo v1.2.2
  f78bf42c Bump c/common c/image and c/storage to latest
  b4210c0b Fix gating test in release-1.2 port #1169

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2021-04-16 10:43:34 -04:00
Bruce Ashfield
c3fe6ab427 skopeo: update to v1.2.2
Updating to 1.2.2, which along with the following commits, needed
a slight tweak to the build target, and the location of the binary.
Otherwise, everything remains the same.

   af2d2b41 Bump vendor/modules.txt in release-1.2
   8237787b Bump golang.org/x/crypto to the latest
   2294113c Bump to v1.2.2-dev
   bdb117de Bump to v1.2.1
   fe57e80c Update nix pin with `make nixpkgs`
   3c33cb45 Add a smoke test for signedIdentity:remapIdentity
   f94d85aa Split copyWithSignedIdentity from TestCopyVerifyingMirroredSignatures
   6ee4b2dc integration test: sync k8s.gcr.io/pause instead of docker.io/alpine
   b3a15e72 integration test: use fedora-minimal for most manifest list tests
   f771cb0d Update vendor of containers/common and containers/storage
   c4fb9364 Fix reading the after-sync list of tags in SyncSuite.TestYamlUntagged
   74420528 Bump github.com/containers/common from 0.31.1 to 0.31.2
   fc78c93a fix creds sync from yaml
   4987a672 Spelling
   131b2b8c Bump github.com/containers/common from 0.31.0 to 0.31.1
   6b260e16 Update nix pin with `make nixpkgs`
   8cc9fcae update debian/ubuntu docs
   0fb1121f Bump gopkg.in/yaml.v2 from 2.3.0 to 2.4.0
   f36f7dbf Bump github.com/containers/storage from 1.24.1 to 1.24.3
   07c0e6a5 Bump github.com/containers/common from 0.30.0 to 0.31.0
   13ef9174 Bump github.com/containers/image/v5 from 5.8.1 to 5.9.0
   8cd57ef8 Bump github.com/containers/common from 0.27.0 to 0.30.0
   f3a8a736 Update to macOS 10.14
   4597c095 update OSX Travis env before running tests
   2ec251c2 Update installation docs for debian and ubuntu
   e717a591 Update install.md
   901f7e9c vendor in containers/storage v1.24.1 containers/image v5.8,1
   4b4ad628 Fix naming and language
   6b007c70 Add information about multi-arch image to README
   5d73dea5 Add --format option to skopeo inspect
   82e461ff Switch to using errors.Wrapf rather then fmt.Errorsf
   e30abff3 Bump github.com/containers/image/v5 from 5.6.0 to 5.8.0
   58c9eccf Bump github.com/containers/common from 0.26.0 to 0.27.0
   958c361c Support namespaced logins for quay.io
   72e8af59 install: make commands copy-pasteable
   873fbee0 Fix #858 Add --all sync flag to emulate copy --all
   1a3eb478 Fix #858 Add support for digests in sync
   bc0ecfc8 Bump github.com/containers/storage from 1.23.9 to 1.24.0
   19f9a6ad Update nix pin with `make nixpkgs`
   6d7d0e7d Bump github.com/containers/storage from 1.23.5 to 1.23.9
   39f8117c add multi-arch builds for  upstream and stable skopeo image via Travis
   e709329b Avoid overriding LDFLAGS in Makefile
   35daba11 Dockerfile: install openssl
   65c5b0bf integration tests: disable `ls` for logs
   cd884fa5 Travis: bump go to 1.15.x
   3a724640 Use osusergo build tag for static build
   a7f4b26f Update install.md
   98fdb042 Fix `skopeo login` example in README
   a75daba3 Bump github.com/containers/common from 0.24.0 to 0.26.0
   67d72d27 Bump github.com/spf13/cobra from 1.0.0 to 1.1.1
   035e2549 install.md: mention Nix/NixOS
   0954077f Update install.md
   bde39ce9 Update install.md
   a422316d Update README.md
   21aa04e3 Make Makefile a little easier to use
   50ff352e Update nix pin with `make nixpkgs`
   69f51ac1 Bump github.com/containers/common from 0.23.0 to 0.24.0
   f9773889 Add Subject Alternative Name to local openssl cert
   4ba7d501 Makefile: add a local-cross target
   12729c4d Bump github.com/sirupsen/logrus from 1.6.0 to 1.7.0
   1c45df1e Bump github.com/containers/common from 0.22.0 to 0.23.0
   248a1dd0 include OBS install steps for CentOS
   3a75b51b Move to v1.2.1-dev
   2b4097bc Bump to v1.2.0
   467b462b Keep options order in code and add missing bash completions
   242b573f Adding periods
   2d5f12b9 Add --registry-token tests to utils_tests.go
   3c73c0c0 Add --registry-token flags to support Bearer token authentication
   ec17cfcb Update nix pin with `make nixpkgs`
   1d0b1671 Bump github.com/containers/image/v5 from 5.5.2 to 5.6.0
   05d172a1 Bump github.com/containers/common from 0.21.0 to 0.22.0
   62bafb10 Fix problems found by codespell
   4eda1d09 Bump github.com/containers/storage from 1.23.4 to 1.23.5
   23cb1b7f Remove an obsolete documentation of (make binary-static)
   c1f984a1 Bump github.com/containers/storage from 1.23.3 to 1.23.4
   8767e73f Bump github.com/containers/common from 0.20.3 to 0.21.0
   07146219 Update nix pin with `make nixpkgs`
   3bb23e35 use base image golang for build
   c8c8d5db Bump github.com/containers/storage from 1.23.1 to 1.23.2
   ad3d4aec Fix skopeo-login docs typo
   69116421 Bump github.com/containers/storage from 1.23.0 to 1.23.1
   3ede91cc Bump github.com/containers/common from 0.20.2 to 0.20.3
   5ad62b94 Bump github.com/containers/image/v5 from 5.5.1 to 5.5.2
   b05933fb Bump github.com/containers/common from 0.18.0 to 0.20.2
   e5f54909 -buildmode=pie is not supported for some arch
   915f40d1 Build static binary with `buildGoModule`
   0c2c7f40 Update docs/skopeo.1.md
   135ce431 Add oci-archive to transport list, and link to the authoritative man page
   c750be01 Use an inter-registry copy as the example for (skopeo copy)
   84d051fc Use c/common retry package
   56f8222e Add an extra clarification to skopeo-copy(1)
   c24363cc Bump github.com/containers/storage from 1.21.2 to 1.22.0
   4fb724fb Make InspectOutput an external object
   e23b7800 Fix make clean to actually remove binaries
   d9058b30 Switch containers/libpod->containers/podman
   26e6db1c Dockerfile.build: Upgrade to Ubuntu 20.04
   b7cdcb00 Bump github.com/containers/common from 0.16.0 to 0.18.0
   4012d0e3 Bump github.com/containers/storage from 1.21.1 to 1.21.2
   84c53d10 Retry on skopeo subcommands
   960b610f Bump github.com/containers/common from 0.15.2 to 0.16.0
   ebc43826 vendor golang.org/x/text@v0.3.3
   8f5eb45b Bump github.com/containers/storage from 1.21.0 to 1.21.1
   5e2264d2 Bump github.com/containers/storage from 1.20.2 to 1.21.0
   19f9a5c2 Bump github.com/hashicorp/go-multierror from 1.0.0 to 1.1.0
   0858caff Retry skopeo inspect command
   2e343342 Bump github.com/containers/ocicrypt from 1.0.2 to 1.0.3
   0382b016 Fix macOS builds in Travis
   142142c0 Bump github.com/containers/common from 0.15.1 to 0.15.2
   52b3a5ba Bump github.com/containers/common from 0.14.3 to 0.15.1
   b17fb08f update enc/dec docs to be consistent with buildah
   dd2e70e9 nix run -f channel:nixos-20.03
   91dc0f3f Bump github.com/containers/common from 0.14.0 to 0.14.3
   0e2611d3 Run htpasswd from our build-container instead of registry:2
   0f458eec Add nix derivation for static builds
   6b960ec0 Cleanup Dockerfile builds
   fdc58131 Move to v1.1.1-dev
   63085f5b Bump to v1.1.0
   dd7dd753 vendor github.com/containers/image/v5@v5.5.1
   b70dfae2 vendor github.com/containers/common v0.14.0
   9bafa7e8 Bump github.com/containers/common from 0.13.0 to 0.13.1
   6198daeb Correct a typo in docs/skopeo-sync.1.md
   9e99ad99 Bump github.com/containers/common from 0.12.0 to 0.13.0
   c36502ce Bump github.com/stretchr/testify from 1.6.0 to 1.6.1
   4eaaf312 Bump github.com/containers/storage from 1.20.1 to 1.20.2
   5284f6d8 Bump github.com/stretchr/testify from 1.5.1 to 1.6.0
   ae97c667 Bump github.com/containers/common from 0.11.4 to 0.12.0
   8b4b9543 Fix error handling on invalid regex
   c103d652 Drop redundant fmt.Sprintf inside erorrs.Wrapf/Errorf
   c5183d0e Use MatchString instead of Match with a manual conversion
   16b43525 Use reference.Tagged to extract the tag from a reference
   35f3595d Inline isTagSpecified into its only caller
   0ee81dc9 Use a reference.Named, not types.ImageReference, in imagesToCopy
   80588509 Clarify imagesToCopy control flow
   97ec6873 Work with a reference.Named, not strings, in imagesToCopyFromRegistry
   d16cd399 Use a reference.Named, not types.ImageReference, in imagesToCopyFromRepo
   7439f94e Remove the repoReference parameter of imagesToCopyFromRepo
   44338073 Don't use path.Join to form repository names
   56c6325b Share the logrus.WithFields settings over the loop bodies
   0ae9db5d Clarify control flow when handling the tags list
   677c29bf Only create a SystemContext once per registry
   72376c41 Fix the recently added example in the man page.
   322625ee Use a separate field for the "sync images with tag matching regex" feature
   9c1936fd Add upstream and testing container images
   a51af64d Bump github.com/containers/storage from 1.19.2 to 1.20.1
   a31d6069 Bump github.com/containers/common from 0.11.2 to 0.11.4
   2330455c there is a brew formula for skopeo
   bec7f697 Add tags to support regular expressions in yaml conf add relevant test cases and documentation update the sync doc
   60ecaffb Add Skopeo Stable Image Dockerfile for Quay
   2fe7087d Move to v1.0.1-dev
   bd162028 Bump to v1.0.0
   5093d5b5 Update skopeo readme and man page
   1b2de8ec Update docs/skopeo-sync.1.md
   ab230050 Add links to configuration man pages
   4244d682 Bump github.com/opencontainers/go-digest from 1.0.0-rc1 to 1.0.0
   3247c0d2 Bump gopkg.in/yaml.v2 from 2.2.8 to 2.3.0
   eb024319 Bump github.com/containers/storage from 1.19.1 to 1.19.2
   b79a37ea v0.11.2 containers/common
   0ec2610f Add skopeo login&logout
   e21d6b36 Update containers/image to v5.4.4
   a6ab2291 Add tests for using signatures with mirrors
   8f845aac Update c/image for https://github.com/containers/image/pull/912
   439ea830 Add Security Policy
   8d252f82 fix copy doc
   46fbbbd2 Use cobra in skopeo
   a6abdb85 Bump github.com/sirupsen/logrus from 1.5.0 to 1.6.0
   02407d98 Fix TestCopyAtomicExtension
   116add9d Bump github.com/containers/storage from 1.18.2 to 1.19.0
   5f8d3fc6 Move to v0.2.1-dev
   1119299c Bump to v0.2.0
   cf4dff47 Fix for yet another breaking podman change
   17848a18 Run (go mod tidy) before (go mod vendor)
   2873d8ec Revert "Bump github.com/urfave/cli from 1.22.1 to 1.22.4"
   702165af Fix (make vendor)
   8c8d9bd2 Bump github.com/urfave/cli from 1.22.1 to 1.22.4
   5b479b10 Bump containers/image to v5.4.3
   f68b53af make vendor: run `tidy` after `vendor`
   65692366 vendor c/image v5.4.2
   0eef946e Bump github.com/containers/image/v5 from 5.4.0 to 5.4.1
   82e79e3f Remove dependency on buildah
   325327dc Bump github.com/containers/image/v5 from 5.3.1 to 5.4.0
   6e3f4c99 Update on #834: force runc only when cgroupsv1
   27b330f6 Revert the removal of buildah dependency
   f231b777 Update docs/skopeo.1.md
   55044627 Add example with repository Fixes #854
   aa20fbfd Skopeo should support for BigFilesTemporaryDir (SystemContext)
   274efdf2 Update containers/image v5.3.1
   33616424 Bump github.com/containers/storage from 1.16.5 to 1.16.6
   970af7d1 Bump github.com/containers/image/v5 from 5.2.1 to 5.3.0
   1e7fe55b Use fully-qualified image names
   081e4834 Bump github.com/containers/common from 0.5.0 to 0.6.1
   bd59677a Bump github.com/containers/storage from 1.16.3 to 1.16.5
   dda59750 Bump github.com/containers/common from 0.4.4 to 0.5.0
   ebeb1c3f Bump github.com/containers/storage from 1.16.2 to 1.16.3
   33ebce08 Bump github.com/containers/common from 0.4.3 to 0.4.4
   0752e837 Bump github.com/containers/common from 0.4.2 to 0.4.3
   406d3eb1 Bump github.com/containers/storage from 1.16.1 to 1.16.2
   bae33781 Add Ubuntu/Debian install instructions
   7dcfc183 Bump github.com/containers/storage from 1.16.0 to 1.16.1
   4e45fcc5 Mention CentOS/RHEL in installation instructions
   2e65e64c CI: force Podman to use runc
   ef1b005c Bump github.com/containers/common from 0.2.1 to 0.4.2
   7be2a1bf Bump github.com/stretchr/testify from 1.5.0 to 1.5.1
   f489ba7b bump to a supported ubuntu release
   df2966b7 add support for REGISTRY_AUTH_FILE
   8d1a4649 Partial image encryption support
   377ba25c Bump github.com/stretchr/testify from 1.4.0 to 1.5.0
   1d136f05 Bump github.com/containers/storage from 1.15.8 to 1.16.0
   7b9629d6 Bump github.com/containers/common from 0.2.0 to 0.2.1
   07c89b49 Fix wrong import of docker reference
   a9854e11 Remove the list_tags integration test since it does not cover much not already tested by the upstream container/images repo or local unit tests
   36fdc062 Updates based on code review to simplify logic and tests
   5554964a Fix inconsistency in manpage example for list-tags
   b0cfab1d Fix formatting on test
   cce44c45 Adds "list-tags" command to list tags with no known tag required. Fixes #276
   f8302650 Bump github.com/containers/common from 0.1.4 to 0.2.0
   ba8417ed Add Code of Conduct
   759dc98b bump to v0.1.42-dev
   7d080caa v0.1.41
   b6e7fbdf Bump github.com/containers/image/v5 from 5.2.0 to 5.2.1
   b59c018a Bump gopkg.in/yaml.v2 from 2.2.7 to 2.2.8
   e3f9f55c Bump github.com/containers/common from 0.0.7 to 0.1.4
   2c0a4c9c Remove the reference to openshift/api
   a7297d4d vendor github.com/containers/image/v5@v5.2.0
   7cbb8ad3 Manually update buildah to v1.13.1
   4489ddd8 add specific authfile options to copy (and sync) command.
   c6a731bb Adds override-variant to man pages
   222beaf4 Adds the --override-variant command line flag
   6c7dc9b7 Bump github.com/containers/buildah from 1.11.6 to 1.12.0
   27b3e218 Add context to --encryption-key / --decryption-key processing failures
   17b921cb Bump github.com/containers/storage from 1.15.2 to 1.15.3
   2f2dc646 Bump github.com/containers/buildah from 1.11.5 to 1.11.6
   b0da0858 remove direct reference on c/image/storage
   7d3c3ce5 Makefile: set GOBIN
   21613f19 Bump gopkg.in/yaml.v2 from 2.2.2 to 2.2.7
   afaa9e7f Bump github.com/containers/storage from 1.15.1 to 1.15.2
   9c402f37 Introduce the sync command
   8ccd7b99 openshift cluster: remove .docker directory on teardown
   04bc64f5 Bump github.com/containers/storage from 1.14.0 to 1.15.1
   73248bd6 document installation via apk on alpine
   c6bc2367 Fix typos in doc for image encryption
   39ff039b Image encryption/decryption support in skopeo
   88fd1172 make vendor-in-container
   5f3219a8 Bump github.com/containers/buildah from 1.11.4 to 1.11.5
   23d9383a Travis: use go v1.13
   af073483 Use a Windows Nano Server image instead of Server Core for multi-arch testing
   81caa0fa Increase test timeout to 15 minutes
   dd66c1d3 Run the test-system container without --net=host
   6991ba85 Mount /run/systemd/journal/socket into test-system containers
   db877dca Don't unnecessarily filter out vendor from (go list ./...) output
   8eba94f2 Use -mod=vendor in (go {list,test,vet})
   05ae513b Bump github.com/containers/buildah from 1.8.4 to 1.11.4
   876595e6 Bump github.com/urfave/cli from 1.20.0 to 1.22.1
   140b47e8 skopeo: drop support for ostree
   cd8c0085 Don't critically fail on a 403 when listing tags
   d83d0819 Revert "Temporarily work around auth.json location confusion"
   ce2db022 Remove references to atomic
   df92a33c Remove references to storage.conf
   b21a5970 Dockerfile: use golang-github-cpuguy83-go-md2man
   a18a5eae bump version to v0.1.41-dev
   be6146b0 release skopeo v0.1.40
   8f24d281 vendor containers/image v5.0.0
   2553a230 systemtest: inspect container image different from current platform arch
   7d251f5a copy: add a --all/-a flag
   58248412 System tests: various fixes
   4962559e Temporarily work around auth.json location confusion
   7922028d Update to c/image v4.0.1
   51b54191 systemtest: copy: docker->storage->oci-archive
   1c243a5b systemtest/010-inspect.bats: require only PATH
   8d1bb150 systemtest: add simple env test in inspect.bats
   8c96dca3 bash completion: add comments to keep scattered options in sync
   1d8f5f29 bash completion: use read -r instead of disabling SC2207
   b31f0da5 bash completion: support --opt arg completion
   a02e57dd bash-completion: use replacement instead of sed
   a000c194 bash completion: disable shellcheck SC2207
   86e35643 bash completion: double-quote to avoid re-splitting
   c61a5ea2 bash completions: use bash replacement instead of sed
   89bb6158 bash completion: remove unused variable
   646e197e bash-completions: split decl and assignment to avoid masking retvals
   699c2556 bash completion: double-quote fixes
   0c579aca bash completion: hard-set PROG=skopeo
   bc8281c0 bash completion: remove unused variable
   91510e39 bash completion: use `||` instead of `-o`
   7b0db25a bash completion: rm eval on assigned variable
   a36d81c5 copy: add --dest-compress-format and --dest-compress-level
   976dd83a flag: add optionalIntValue
   a1c5a1f4 Makefile: use go proxy
   43b014c8 inspect --raw: skip the NewImage() step
   f1d8451b update OCI image-spec to 775207bd45b6cb8153ce218cc59351799217451f
   a778e595 inspect.go: inspect env variables
   0f1ded2a ostree: use both image and & storage buildtags
   89d6d0c7 bump to v0.1.40-dev

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2021-02-06 13:54:48 -05:00
Stefan Agner
753ca26b41 skopeo: add default set of configuration files
Add a default registries.conf and storage.conf. Those config files
are used by several projects of the containers group like buildah or
podman. Provide it as part of skopeo like the other distributions do.

Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2019-10-13 11:16:40 -04:00
Stefan Agner
9b234f5245 skopeo: add skopeo
skopeo is a command line utility that performs various operations on
container images and image repositories.

skopeo can work with OCI images as well as the original Docker v2
images.

The recipe originates from from meta-overc commit a497792. It has
been updated with the new project URL and v0.1.39.

Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
2019-10-02 14:13:35 -04:00