Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sanity checks #7184

Open
2 tasks
nicholasdille opened this issue Sep 17, 2024 · 0 comments
Open
2 tasks

Sanity checks #7184

nicholasdille opened this issue Sep 17, 2024 · 0 comments

Comments

@nicholasdille
Copy link
Contributor

nicholasdille commented Sep 17, 2024

  • Do deps exist
  • Use FROMs to update build deps:
    grep -l "^FROM ghcr.io/uniget-org/tools/" tools/*/Dockerfile.template \
    | cut -d/ -f2 \
    | while read -r TOOL; do
        make tools/${TOOL}/manifest.json
        DEPS="$(
            grep "^FROM ghcr.io/uniget-org/tools/" tools/${TOOL}/Dockerfile.template \
            | cut -d' ' -f2 \
            | cut -d: -f1 \
            | cut -d/ -f4 \
            | xargs echo -n \
            | jq --slurp --raw-input --compact-output 'split(" ")')"
        cat <<<$(jq --argjson deps "${DEPS}" '.tools[] | .build_dependencies = $deps' tools/${TOOL}/manifest.json) >tools/${TOOL}/manifest.json
    done
  • Are all deps used in FROM covered by previous item
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant