{"id":21273321,"url":"https://github.com/sclorg/buildpacks","last_synced_at":"2025-08-24T03:33:00.201Z","repository":{"id":69908505,"uuid":"361867386","full_name":"sclorg/buildpacks","owner":"sclorg","description":"Cloud Native Buildpacks and Builders based on Red Hat Universal Base Image","archived":false,"fork":false,"pushed_at":"2021-06-09T12:11:20.000Z","size":12,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-03-15T12:44:51.087Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sclorg.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-04-26T19:18:28.000Z","updated_at":"2023-06-07T13:34:30.000Z","dependencies_parsed_at":"2023-04-24T20:48:52.689Z","dependency_job_id":null,"html_url":"https://github.com/sclorg/buildpacks","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/sclorg/buildpacks","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sclorg%2Fbuildpacks","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sclorg%2Fbuildpacks/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sclorg%2Fbuildpacks/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sclorg%2Fbuildpacks/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sclorg","download_url":"https://codeload.github.com/sclorg/buildpacks/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sclorg%2Fbuildpacks/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262352621,"owners_count":23297689,"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-21T09:13:32.010Z","updated_at":"2025-06-28T00:05:40.746Z","avatar_url":"https://github.com/sclorg.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Cloud native buildpacks based on Red Hat universal base container image\n\nThis is just a proof of concept for running [Cloud native buildpacks](https://buildpacks.io/) on UBI using some bits from [S2I Python container](https://github.com/sclorg/s2i-python-container) and [S2I Ruby container](https://github.com/sclorg/s2i-ruby-container).\n\n## Disclaimer\n\nThis is just a proof of concept to check whether we are able to transfer scripts from S2I container images to CNB. Because the builder here is universal, the build and run images are large and they are not suitable for production use. We are looking for [RFC 0069](https://github.com/buildpacks/rfcs/blob/main/text/0069-stack-buildpacks.md) to be implemented which will allow us to install different sets of RPM packages into the build and run images. In the meantime, we just experiment with the universal images.\n\n## Buildpacks\n\nThis example project currently implements two buildpacks – Python and Ruby.\n\nFor buildpacks settings, use `.environment` file in the root of you application – the same way you use `.s2i/environment` for S2I images. The file is sourced in all buildpacks at the very beginning of the build phase.\n\n### Python\n\n#### Available features\n\n* dependencies installation from `requirements.txt`, `Pipfile.lock` or `setup.py`\n* Gunicorn support\n* `APP_SCRIPT`, `APP_FILE` or `APP_MODULE` settings. See [S2I documentation](https://github.com/sclorg/s2i-python-container/tree/master/3.6#environment-variables) for more information.\n\n#### Example applications\n\n* setup-requirements-test-app - uses Gunicorn, the name of the module is taken from `setup.py`\n* standalone-test-app - uses Gunicorn but runs as a Python script which is configured via the `.environment` file\n* uwsgi-test-app - uses uWSGI (compiled from sources), Flask and shell script to execute the server\n\n### Ruby\n\n#### Available features\n\n* dependencies installation from `Gemfile` and `Gemfile.lock`\n* detection of Puma or Rackup commands\n\n#### Example applications\n\n* puma-test-app - uses Gemfile to define dependencies, Sinatra as a web framework and Puma as a web server \n* rack-test-app - uses Gemfile.lock to define dependencies,  Sinatra as a web framework and Rack as a web server\n\n## Usage\n\nUse can play with this content with podman or in a virtual Centos 8 prepared for Vagrant with Docker CE. The virtual machine contains everything you need. For local usage, don't forget to download [pack CLI tool](https://github.com/buildpacks/pack).\n\nBuildpacks currently implement only a subset of S2I container images' functionalities – see the example apps in the `apps` folder.\n\nThe `build.sh` script rebuilds all the container images, the builder image with buildpacks on top of them and then all the application images with the builder. \n\n### Podman (on Fedora)\n\nFirst, make podman available via an unix socket to behave like a running Docker daemon:\n\n```\npodman system service --time 0 \u0026\nexport DOCKER_HOST=unix:///run/user/1000/podman/podman.sock\n```\n\nThen you can run `build.sh` to build the images and example applications. The script uses `docker` so make sure you have podman-docker alias installed.\n\nIn case of any troubles with SELinux, switch from unix socket to TCP.\n\n```\npodman system service --time=0 tcp:0.0.0.0:1234\nexport DOCKER_HOST=tcp://127.0.0.1:1234\n```\n\nAnd then, every call to `pack` should have `--docker-host=tcp://127.0.0.1:1234 --network=host`.\n\n### Docker in a virtual machine\n\nUse `vagrant up` to start and provision a virtual machine and then run `build.sh` in the virtual machine.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsclorg%2Fbuildpacks","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsclorg%2Fbuildpacks","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsclorg%2Fbuildpacks/lists"}