Comments (2)
We currently get the tags we add from the env var VCAP_APPLICATION
, which has the following interesting properties:
{
"application_id": "[uuid-here]",
"application_name": "pjm-hello-world",
"application_version": "[uuid-here]",
"cf_api": "https://api.run.pivotal.io",
"instance_id": "[uuid-here]",
"space_id": "[uuid-here]",
"space_name": "development"
}
So ... no info on the org is directly available from VCAP_APPLICATION
. Poking around other env vars, didn't see anything there either.
Curious as to why org_id
and org_name
aren't listed here ... should bubble this back up through the Cloud Foundry org.
The relevant org data COULD be obtained indirectly, by interacting with the cloud controller directly, or via cf
, but ... that would require full login credentials to be able to get the info, which doesn't seem like a safe thing to do.
Other alternatives would be to automagically add the org name at deployment time, via deployment scripts / manifests / tooling, which would seed the NSOLID_TAGS
env var with the calculated tag.
from nsolid-buildpack-cf-v2.
closing as there's not much we can do in the buildpack itself
from nsolid-buildpack-cf-v2.
Related Issues (2)
- create offline buildpack HOT 3
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 nsolid-buildpack-cf-v2.