Skip to content

Add "melange index" to simplify generation of APK index #96

@jdolitsky

Description

@jdolitsky

In the "hello-melange-apko" repo, please see the following section: https://github.com/chainguard-dev/hello-melange-apko#generate-apk-repo-indexes

This is currently an extra step that users running through these steps manually need to run:

docker run --rm -it -v $(pwd):/w -w /w/packages -v $(pwd)/packages:/w/packages \
    --entrypoint sh \
    distroless.dev/melange -c \
        'for d in `find . -type d -mindepth 1`; do \
            ( \
                cd $d && \
                apk index -o APKINDEX.tar.gz *.apk && \
                melange sign-index --signing-key=../../melange.rsa APKINDEX.tar.gz\
            ) \
        done'

We should add a command to handle this, or perhaps a flag that automatically creates and signs the index after the APKs are successfully built.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions