Comments (4)
Oi Guilherme,
Sure I can help you.
When doing the connection, which OCI region are you trying to reach? I am trying to understand the IP address 169.254.169.254, and I cannot find the OCI Region you are trying to get.
Can you please provide me with the instructions you are using to make the connection?
In my case, I am trying to reach Ashburn, so I am executing
export OCI_REGION="us-ashburn-1"
export OCI_NOSQL_COMPID="ocid1.compartment.oc1..xxxx"
./mvnw clean spring-boot:run
In this version, I am using instance principals, so the application must be run from an OCI instance (VM) having access to the Oracle NoSQL Cloud service (via Internet Gateway or Service Gateway)
from demo-graphql-nosql-spring.
BTW, If you need support for on-premise, CloudSim, or other connections mode to OCI; Let me know, it is easy to implement. A few minutes to change and test the connection
e.g on-premise non-secure (including kvlite) use the branch on-premise
(https://github.com/dario-vega/demo-graphql-nosql-spring/tree/on-premise)
git clone https://github.com/dario-vega/demo-graphql-nosql-spring.git --branch on-premise
from demo-graphql-nosql-spring.
Hi Dario,
I did it work!
Yes, I was trying to run locally (on-premise).
I used SignatureProvider instead of Instance Principal. See my config class below:
@Bean
public NosqlDbConfig nosqlDbConfig() throws java.io.IOException {
File privateKey = ResourceUtils.getFile("classpath:svc_m2g_nosql_key.pem");
NoSQLHandleConfig noSQLHandleConfig = new NoSQLHandleConfig(
new SignatureProvider(
"ocid1.tenancy.oc1..aaa...", //tenantId
"ocid1.user.oc1..aaa...", //userId
"94:10:42:...", // fingerprint of the key
privateKey,
null, // passphrase for the (encrypted) private key
Region.SA_SAOPAULO_1
)
);
noSQLHandleConfig.setDefaultCompartment("ocid1.compartment.oc1..aaa...");
return new NosqlDbConfig(noSQLHandleConfig);
}
from demo-graphql-nosql-spring.
Great, I will close this issue. Feedback is welcome. As you can see, it is still under construction. It is supposed to be a Tutorial, so I tried to show a simple use case (reusing existing spring tutorials). You can also use it for on-premises, as shown above - branch on-premise.
Muito Obrigado,
Dario
If you want, maybe you can join our DevRel slack workspace http://bit.ly/odevrel-slack, and we can discuss it. In this public slack workspace, you can find a slack channel dedicated called oracle-nosql
and more (there is also a channel desenvolvedores-brasil
and desarrolladores-latinoamerica
) or you can send me a direct message (Dario VEGA).
from demo-graphql-nosql-spring.
Related Issues (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 demo-graphql-nosql-spring.