Date
1 - 4 of 4
Php build pack offline version availability
Amishi Shah
Hi team,
We are a team at Cisco trying to use the Buildpack for Php-Httpd. We tried couple of ways, 1. Cloning a git repo and creating the build pack, uploading the same and using the same for the app. 2. Downloading the readymade build pack available in the github releases pages and uploading, using the same for the app. What we are looking for is an offline version, both of these build packs connects to internet while we are deploying the app. The details are as below. AMISHISH-M-91EG:webapp ashah$ cf push Using manifest file /Users/ashah/workspace/Symphony/sample_httpd_app/webapp/manifest.yml Using stack cflinuxfs2... OK Creating app sample_app in org admin / space skyfall as admin... OK Using route sample-app.203.35.248.123.xip.io Binding sample-app.203.35.248.123.xip.io to sample_app... OK Uploading sample_app... Uploading app files from: /Users/ashah/workspace/Symphony/sample_httpd_app/webapp Uploading 185, 1 files Done uploading OK Starting app sample_app in org admin / space skyfall as admin... -----> Downloaded app package (4.0K) -------> Buildpack version 4.0.0 Installing HTTPD Downloaded [https://pivotal-buildpacks.s3.amazonaws.com/php/binaries/trusty/httpd/2.4.12/httpd-2.4.12.tar.gz] to [/tmp] Installing PHP PHP 5.5.27 Downloaded [https://pivotal-buildpacks.s3.amazonaws.com/php/binaries/trusty/php/5.5.27/php-5.5.27.tar.gz] to [/tmp] Finished: [2015-07-31 21:28:46.871154] -----> Uploading droplet (51M) 0 of 1 instances running, 1 down 0 of 1 instances running, 1 down 0 of 1 instances running, 1 down 0 of 1 instances running, 1 down 1 of 1 instances running App started OK App sample_app was started using this command `$HOME/.bp/bin/start` Showing health and status for app sample_app in org admin / space skyfall as admin... OK requested state: started instances: 1/1 usage: 64M x 1 instances urls: sample-app.203.35.248.123.xip.io last uploaded: Fri Jul 31 21:28:35 UTC 2015 stack: cflinuxfs2 buildpack: readymade_httpd_buildpack state since cpu memory disk details #0 running 2015-07-31 02:29:39 PM 0.0% 40.3M of 64M 136.6M of 1G Do we have any offline Php-httpd buildpack available? We want the build pack which would be sufficient enough and it works even without the internet connectivity. Your timely response will be really appreciated. Thanks, Amishi Shah |
|
James Bayer
did you try building it with the "cached" option as referenced in the
readme [1]: BUNDLE_GEMFILE=cf.Gemfile bundle exec buildpack-packager cached [1] https://github.com/cloudfoundry/php-buildpack#building On Fri, Jul 31, 2015 at 5:25 PM, Amishi Shah (amishish) <amishish(a)cisco.com> wrote: Hi team, -- Thank you, James Bayer |
|
Amishi Shah
Hey James,
toggle quoted message
Show quoted text
Thanks for replying. Yes for the option 1, I did the same thing for the building. I could see the below on the screen: AMISHISH-M-91EG:php-buildpack ashah$ BUNDLE_GEMFILE=cf.Gemfile bundle exec buildpack-packager cached % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 36.8M 100 36.8M 0 0 3451k 0 0:00:10 0:00:10 --:--:— 3874k For the 2nd Option, I uploaded the buildpack just by downloading the buildpack zip file from https://github.com/cloudfoundry/php-buildpack/releases. Thanks, Amishi Shah From: James Bayer <jbayer(a)pivotal.io<mailto:jbayer(a)pivotal.io>> Reply-To: "Discussions about Cloud Foundry projects and the system overall." <cf-dev(a)lists.cloudfoundry.org<mailto:cf-dev(a)lists.cloudfoundry.org>> Date: Saturday, August 1, 2015 at 7:25 AM To: "Discussions about Cloud Foundry projects and the system overall." <cf-dev(a)lists.cloudfoundry.org<mailto:cf-dev(a)lists.cloudfoundry.org>> Subject: Re: [cf-dev] Php build pack offline version availability did you try building it with the "cached" option as referenced in the readme [1]: BUNDLE_GEMFILE=cf.Gemfile bundle exec buildpack-packager cached [1] https://github.com/cloudfoundry/php-buildpack#building On Fri, Jul 31, 2015 at 5:25 PM, Amishi Shah (amishish) <amishish(a)cisco.com<mailto:amishish(a)cisco.com>> wrote:
Hi team, We are a team at Cisco trying to use the Buildpack for Php-Httpd. We tried couple of ways, 1. Cloning a git repo and creating the build pack, uploading the same and using the same for the app. 2. Downloading the readymade build pack available in the github releases pages and uploading, using the same for the app. What we are looking for is an offline version, both of these build packs connects to internet while we are deploying the app. The details are as below. AMISHISH-M-91EG:webapp ashah$ cf push Using manifest file /Users/ashah/workspace/Symphony/sample_httpd_app/webapp/manifest.yml Using stack cflinuxfs2... OK Creating app sample_app in org admin / space skyfall as admin... OK Using route sample-app.203.35.248.123.xip.io<http://sample-app.203.35.248.123.xip.io> Binding sample-app.203.35.248.123.xip.io<http://sample-app.203.35.248.123.xip.io> to sample_app... OK Uploading sample_app... Uploading app files from: /Users/ashah/workspace/Symphony/sample_httpd_app/webapp Uploading 185, 1 files Done uploading OK Starting app sample_app in org admin / space skyfall as admin... -----> Downloaded app package (4.0K) -------> Buildpack version 4.0.0 Installing HTTPD Downloaded [https://pivotal-buildpacks.s3.amazonaws.com/php/binaries/trusty/httpd/2.4.12/httpd-2.4.12.tar.gz] to [/tmp] Installing PHP PHP 5.5.27 Downloaded [https://pivotal-buildpacks.s3.amazonaws.com/php/binaries/trusty/php/5.5.27/php-5.5.27.tar.gz] to [/tmp] Finished: [2015-07-31 21:28:46.871154] -----> Uploading droplet (51M) 0 of 1 instances running, 1 down 0 of 1 instances running, 1 down 0 of 1 instances running, 1 down 0 of 1 instances running, 1 down 1 of 1 instances running App started OK App sample_app was started using this command `$HOME/.bp/bin/start` Showing health and status for app sample_app in org admin / space skyfall as admin... OK requested state: started instances: 1/1 usage: 64M x 1 instances urls:sample-app.203.35.248.123.xip.io<http://sample-app.203.35.248.123.xip.io> last uploaded: Fri Jul 31 21:28:35 UTC 2015 stack: cflinuxfs2 buildpack: readymade_httpd_buildpack state since cpu memory disk details #0 running 2015-07-31 02:29:39 PM 0.0% 40.3M of 64M 136.6M of 1G Do we have any offline Php-httpd buildpack available? We want the build pack which would be sufficient enough and it works even without the internet connectivity. Your timely response will be really appreciated. Thanks, Amishi Shah _______________________________________________ cf-dev mailing list cf-dev(a)lists.cloudfoundry.org<mailto:cf-dev(a)lists.cloudfoundry.org> https://lists.cloudfoundry.org/mailman/listinfo/cf-dev -- Thank you, James Bayer |
|
Mike Dalessio
Hi Amishi,
The PHP buildpack is emitting misleading log messages here. In reality, if the buildpack is built in "cached" (a.k.a. "offline") mode, then it will not retrieve any of the binary dependencies from the internet. It will either retrieve them from the buildpack itself, or fail. I've created a bug to address these misleading log messages here: https://www.pivotaltracker.com/story/show/100516510 In the meantime, if you stage your app in an unconnected environment, I think you'll see that it retrieves and uses these binaries without attempting to reach the public internet. Apologies for the confusion, -mike On Mon, Aug 3, 2015 at 1:20 PM, Amishi Shah (amishish) <amishish(a)cisco.com> wrote: Hey James, |
|