{"id":31904380,"url":"https://github.com/cloudfoundry-community/container-info-buildpack","last_synced_at":"2025-10-13T13:49:29.023Z","repository":{"id":10639073,"uuid":"12865168","full_name":"cloudfoundry-community/container-info-buildpack","owner":"cloudfoundry-community","description":"A buildpack that allows exploring around the Cloud Foundry runtime container.  Useful when creating other buildpacks to discover the staging and runtime environment setup / restrictions","archived":false,"fork":false,"pushed_at":"2014-08-04T11:47:38.000Z","size":1555,"stargazers_count":14,"open_issues_count":3,"forks_count":6,"subscribers_count":20,"default_branch":"master","last_synced_at":"2024-04-14T22:47:39.590Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"release-monitoring/anitya","license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cloudfoundry-community.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-09-16T11:02:02.000Z","updated_at":"2024-02-09T14:25:57.000Z","dependencies_parsed_at":"2022-09-25T03:41:40.389Z","dependency_job_id":null,"html_url":"https://github.com/cloudfoundry-community/container-info-buildpack","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/cloudfoundry-community/container-info-buildpack","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudfoundry-community%2Fcontainer-info-buildpack","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudfoundry-community%2Fcontainer-info-buildpack/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudfoundry-community%2Fcontainer-info-buildpack/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudfoundry-community%2Fcontainer-info-buildpack/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cloudfoundry-community","download_url":"https://codeload.github.com/cloudfoundry-community/container-info-buildpack/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloudfoundry-community%2Fcontainer-info-buildpack/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279015347,"owners_count":26085686,"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","status":"online","status_checked_at":"2025-10-13T02:00:06.723Z","response_time":61,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":"2025-10-13T13:48:50.570Z","updated_at":"2025-10-13T13:49:29.011Z","avatar_url":"https://github.com/cloudfoundry-community.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"container-info-buildpack\n========================\n\nA buildpack that allows exploring around the Cloud Foundry runtime container.  Useful when creating other buildpacks to discover the staging and runtime environment setup / restrictions\n\nIt use:\n - for web-ui part:\n  - [AngularJS](https://angularjs.org/) (for [MVVM](http://khanlou.com/2014/03/model-view-whatever/))\n  - [Bower](http://bower.io/) (a package manager for the web)\n  - [Grunt](http://gruntjs.com/) (a javascript task runner)\n  - [Openresty](http://openresty.org/) (Nginx server with lua scripting)\n - for buildpack himself\n  - [Forego](https://github.com/ddollar/forego) (a [foreman](https://github.com/ddollar/foreman) port in go, foreman is use to run `Procfile`)\n\n_NB!_ By default login for the web-ui is `admin/admin` feel free to change it by placing a `.htpasswd` at your root app folder. (Prefer use the command `htpasswd` to create this file)\n\n### Using\n\n#### For a simple test:\n\nPush a new \"empty\" app\n```bash\n$ mkdir container_info \u0026\u0026 cd container_info\n$ touch container-info\n$ cf push container-info-test -m 64M  -b https://github.com/cloudfoundry-community/container-info-buildpack.git\n```\nOn the webpage default logins are: `admin/admin`\n\n#### To test your custom buildpack compile phase:\n 1. Create a folder with source test\n 2. Create a file or other things which will needs your detect script\n 3. Push the app in your cloudfoundry with this buildpack `https://github.com/cloudfoundry-community/container-info-buildpack.git`\n 4. Go to the root with your favorite browser and login with `admin/admin`\n 5. Go to buildpack page\n 6. Put your buildpack url (could be a `.git` url ending or `.tgz` or `.zip`)\n 7. See if everythings are ok or not\n\n## Cloud Foundry Extensions - Offline Mode\n\nThe primary purpose of extending the heroku buildpack is to cache system dependencies for firewalled or other non-internet accessible environments. This is called 'offline' mode.\n\n'offline' buildpacks can be used in any environment where you would prefer the dependencies to be cached instead of fetched from the internet.\n\nThe list of what is cached is maintained in [bin/package](bin/package).\n\nUsing cached system dependencies is accomplished by overriding curl during staging. See [bin/compile](bin/compile#L44-48)\n\n\n## Building\n1. Make sure you have fetched submodules\n\n  ```bash\n  git submodule update --init\n  ```\n\n1. Build the buildpack\n\n  ```bash\n  bin/package [ online | offline ]\n  ```\n\n1. Use in Cloud Foundry\n\n    Upload the buildpack to your Cloud Foundry and optionally specify it by name\n\n    ```bash\n    cf create-buildpack container-info-offline container-info_buildpack-offline-v.zip 1\n    cf push my_app -b container-info-offline\n    ```\n\n## UI\n\nGiving you a web app through which you can \"explore\" the container environment\n\n![Web UI](https://f.cloud.github.com/assets/227505/1314712/904f38ba-327a-11e3-97ea-0698d80a82b9.png)\n\n## Rebuild web-ui in the buildpack\n\nIf you are contributing on the buildpack and particulary in the web-ui part you will have some trouble.\nYou should know that you must work on `web-ui/app` not the `dist` one.\n\nWhen you finished to work on the web-ui you need to package it to make it go in `dist` folder to do this you need 3 things:\n\n - First install [node.js](http://nodejs.org/)\n - Install `bower` with npm with this command `npm install -g bower`\n - Install `grunt` with npm with this command `npm install -g grunt`\n\nOk now you have your tools, next step is to go in command line to the folder `web-ui`.\nAnd now do these commands:\n```bash\n$ npm install\n$ bower install\n$ grunt --force\n```\n\nYour dist folder is ready to be use, you've done.\n\n## Contributing\n\nFeel free to fork this project and post issues or/and pull request on the side of this page.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcloudfoundry-community%2Fcontainer-info-buildpack","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcloudfoundry-community%2Fcontainer-info-buildpack","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcloudfoundry-community%2Fcontainer-info-buildpack/lists"}