Comments (6)
We have created an issue in Pivotal Tracker to manage this. You can view the current status of your issue at: https://www.pivotaltracker.com/story/show/112040105.
from ruby-buildpack.
@IkuEisou the ruby buildpack uses curl
for all its HTTP processing.
If you set the environment variable http_proxy
, then curl
should pick it up. You can do that with either your manifest.yml
or with cf set-env
.
Let us know if that works for you.
from ruby-buildpack.
Thank you for your reply.
I has set up environment variable http_proxy and manifest.yml for the sample app as follow.
############################################################
$ cf env hello
Getting env variables for app hello in org DevBox / space sp1 as admin...
OK
System-Provided:
{
"VCAP_APPLICATION": {
"application_id": "0679d8c2-e0c9-4f34-9a5e-d105cbe90f5d",
"application_name": "hello",
"application_uris": [
"hello.10.167.227.48.xip.io"
],
"application_version": "4691ead6-1ffd-4739-a021-ae43eadd2753",
"limits": {
"disk": 1024,
"fds": 16384,
"mem": 256
},
"name": "hello",
"space_id": "2d4b7770-aad9-404b-a906-5777302aa911",
"space_name": "sp1",
"uris": [
"hello.10.167.227.48.xip.io"
],
"users": null,
"version": "4691ead6-1ffd-4739-a021-ae43eadd2753"
}
}
User-Provided:
HTTPS_PROXY: http://10.167.227.38:1080
HTTP_PROXY: http://10.167.227.38:1080
no_proxy: 127.0.0.1,api.10.167.227.48.xip.io,doppler.10.167.227.48.xip.io,hm9000.10.167.227.48.xip.io,uaa.10.167.227.48.xip.io,loggregator.10.167.227.48.xip.io,hello.10.167.227.48.xip.io
Running Environment Variable Groups:
HTTP_PROXY: http://10.167.227.38:1080
Staging Environment Variable Groups:
HTTP_PROXY: http://10.167.227.38:1080
############################################################
But it doesn't work.
If running the "bundle install " on the PC that is the host of the CF, it's OK.
So, it meas that there are no problem at the proxy and the rubygems source.
Cloud you tell me how to find out the cause of the "Bundler::HTTPError " ?
from ruby-buildpack.
@IkuEisou, are you sure that the container has access to the proxy? There maybe a security group setup on the staging of the application -- cf staging-security-groups
and then to see the specific rules cf security-group <name>
. It could be blocking the proxy server from within the container.
You can also prepackage all your rubygems with your application, so when you push it up bundle
does it have to reach out to the internet at all, these are the instructions.
from ruby-buildpack.
I prepackage all of the rubygems with the app, and it works.Thank you very much.
I found that the DEA container can't access to the proxy.So I tried to bind the public_networks and dns security group with my CF deployment, but it doesn't work.
My security group setup on the staging of the application as following.
###############################################################
$ cf staging-security-groups
Acquiring staging security group as admin
OK
public_networks
dns
$ cf security-group public_networks
Getting info for security group public_networks as admin
OK
Name public_networks
Rules
[
{
"destination": "0.0.0.0-9.255.255.255",
"protocol": "all"
},
{
"destination": "11.0.0.0-169.253.255.255",
"protocol": "all"
},
{
"destination": "169.255.0.0-172.15.255.255",
"protocol": "all"
},
{
"destination": "172.32.0.0-192.167.255.255",
"protocol": "all"
},
{
"destination": "192.169.0.0-255.255.255.255",
"protocol": "all"
}
]
No spaces assigned
$ cf security-group dns
Getting info for security group dns as admin
OK
Name dns
Rules
[
{
"destination": "0.0.0.0/0",
"ports": "53",
"protocol": "tcp"
},
{
"destination": "0.0.0.0/0",
"ports": "53",
"protocol": "udp"
}
]
No spaces assigned
$ cf security-group private_networks
Getting info for security group private_networks as admin
OK
Name private_networks
Rules
[
{
"destination": "10.0.0.0-10.255.255.255",
"protocol": "all"
},
{
"destination": "172.16.0.0-172.31.255.255",
"protocol": "all"
},
{
"destination": "192.168.0.0-192.168.255.255",
"protocol": "all"
}
]
No spaces assigned
###############################################################
The IP of the proxy is 10.167.227.38/255.255.255.0 that is the same as the network of CF host.
If the setup of the security group was wrong, how to fix it?
from ruby-buildpack.
@IkuEisou it looks like you might need to add your private_networks
security-group to staging-security-groups
to allow communication in that IP address range.
I'm going to close this issue, though, as this is not a buildpack related issue. If you have more questions about security groups and CF setup, please ask in the cf-dev mailing list.
from ruby-buildpack.
Related Issues (20)
- **Release:** ruby-buildpack 1.8.45 HOT 1
- **Release:** ruby-buildpack 1.8.47
- Add node 16.x to ruby-buildpack HOT 1
- **Release:** ruby-buildpack 1.8.48 HOT 1
- Ruby and JRuby CVEs HOT 6
- Remove rails 5 or earlier fixtures from v2b ruby tests
- Release: ruby-buildpack (Feb) HOT 1
- Release: ruby-buildpack (Mar) HOT 1
- Dependency Deprecation Alert HOT 3
- Ruby is not available in cflinuxfs4 HOT 1
- Release: ruby-buildpack (Apr) HOT 1
- Install bootstrapped ruby into buildpack-specific namespace
- Release: ruby-buildpack (May) HOT 1
- Is there a cflinuxsf4 buildpack with ruby 2.x? HOT 2
- Release: ruby-buildpack (Jun) HOT 1
- CVE-2023-22796 HOT 2
- Release: ruby-buildpack (Jul) HOT 1
- Release: ruby-buildpack (Aug) HOT 1
- Release: ruby-buildpack (Sep) HOT 1
- Release: ruby-buildpack (Oct) HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ruby-buildpack.