{"id":18497831,"url":"https://github.com/containers/buildsourceimage","last_synced_at":"2025-04-09T00:30:44.659Z","repository":{"id":44881430,"uuid":"196628186","full_name":"containers/BuildSourceImage","owner":"containers","description":"Tool to build a source image based on an existing OCI image","archived":false,"fork":false,"pushed_at":"2025-03-24T16:12:27.000Z","size":176,"stargazers_count":30,"open_issues_count":13,"forks_count":14,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-04-02T09:47:27.911Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/containers.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE-OF-CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-07-12T18:36:51.000Z","updated_at":"2025-01-09T04:10:50.000Z","dependencies_parsed_at":"2024-01-17T10:15:11.258Z","dependency_job_id":"6566decb-4f7a-4e31-9b1f-31e4c5015bc1","html_url":"https://github.com/containers/BuildSourceImage","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/containers%2FBuildSourceImage","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/containers%2FBuildSourceImage/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/containers%2FBuildSourceImage/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/containers%2FBuildSourceImage/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/containers","download_url":"https://codeload.github.com/containers/BuildSourceImage/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247949693,"owners_count":21023368,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-06T13:36:10.431Z","updated_at":"2025-04-09T00:30:44.169Z","avatar_url":"https://github.com/containers.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Build Status](https://api.cirrus-ci.com/github/containers/BuildSourceImage.svg)](https://cirrus-ci.com/github/containers/BuildSourceImage/master)\n[![Container Image Repository on Quay](https://quay.io/repository/ctrs/bsi/status \"Container Image Repository on Quay\")](https://quay.io/repository/ctrs/bsi)\n\n# BuildSourceImage\n\nTool to build a source image.\nThe goal is to make retrieving the source code used to make a container image\neasier for users to obtain, using the standard OCI protocols and image formats.\n\n## Usage\n\n```bash\n$\u003e ./BuildSourceImage.sh -h\nBuildSourceImage.sh version 0.1\nUsage: BuildSourceImage.sh [-D] [-b \u003cpath\u003e] [-c \u003cpath\u003e] [-e \u003cpath\u003e] [-r \u003cpath\u003e] [-o \u003cpath\u003e] [-p \u003cimage\u003e] [-l] [-d \u003cdrivers\u003e]\n\n       -b \u003cpath\u003e        base path for source image builds\n       -c \u003cpath\u003e        build context for the container image. Can be provided via CONTEXT_DIR env variable\n       -e \u003cpath\u003e        extra src for the container image. Can be provided via EXTRA_SRC_DIR env variable\n       -s \u003cpath\u003e        directory of SRPMS to add. Can be provided via SRPM_DIR env variable\n       -o \u003cpath\u003e        output the OCI image to path. Can be provided via OUTPUT_DIR env variable\n       -d \u003cdrivers\u003e     enumerate specific source drivers to run\n       -l               list the source drivers available\n       -p \u003cimage\u003e       push source image to specified reference after build\n       -D               debuging output. Can be set via DEBUG env variable\n       -h               this usage information\n       -v               version\n\n```\n\nNicely usable inside a container:\n\n```bash\n$\u003e mkdir ./output/\n$\u003e podman run -it -v $(pwd)/output/:/output/ -v $(pwd)/SRCRPMS/:/data/ -u $(id -u) quay.io/ctrs/bsi -s /data/ -o /output/\n```\n\n## Examples\n\n* Building from a fetched reference [![asciicast](https://asciinema.org/a/266340.svg)](https://asciinema.org/a/266340)\n* Building from a directory of src.rpms: [![asciicast](https://asciinema.org/a/266341.svg)](https://asciinema.org/a/266341)\n* Building from a directory of src.rpms and pushing it to a simple registry: [![asciicast](https://asciinema.org/a/266343.svg)](https://asciinema.org/a/266343)\n\n## Use Cases\n\n* Build a source image from an existing container image by introspection\n* Build a source code image from a collection of known `.src.rpm`'s\n* Include additional build context into the source image\n* Include extra sources use\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcontainers%2Fbuildsourceimage","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcontainers%2Fbuildsourceimage","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcontainers%2Fbuildsourceimage/lists"}