Skip to content

Commit 5fff344

Browse files
authored
Merge pull request #1035 from oracle-devrel/mt-changes
changes with Alex
2 parents 90e5933 + 4b5743d commit 5fff344

File tree

19 files changed

+178
-165
lines changed

19 files changed

+178
-165
lines changed

app-dev/developer-tools-and-lowcode/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
We play with the OCI services and Oracle Software. Here is the list of our favorite components we have expertise in. Our skills include WebLogic Server, WebCenter Content, developer tools, frameworks, low code platforms, data management, and blockchain.
44

5+
Reviewed: 08.05.2024
6+
57
# Team Publications
68

79
- [About Setting up a custom content management system secured by Oracle Blockchain Platform](https://docs.oracle.com/en/solutions/oracle-blockchain-platform-cms/index.html#GUID-D346CE74-FE02-4255-B1A6-82672474A259)[February 2023]
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,17 @@
1+
# Blockchain
12

3+
Reviewed: 08.05.2024
4+
5+
# Team Publications
6+
7+
- [Implement a metaverse instance on OCI](https://docs.oracle.com/en/solutions/oci-metaverse-instance/index.html#GUID-B1943B07-C5BA-4C0E-9911-87CB1DDF1585)
8+
- This reference architecture utilizes current metaverse technology and understanding to best deploy it to OCI.
9+
10+
11+
# License
12+
13+
Copyright (c) 2024 Oracle and/or its affiliates.
14+
15+
Licensed under the Universal Permissive License (UPL), Version 1.0.
16+
17+
See [LICENSE](https://github.com/oracle-devrel/technology-engineering/blob/main/LICENSE) for more details.

app-dev/developer-tools-and-lowcode/blockchain/metaverse/README.md

Lines changed: 0 additions & 26 deletions
This file was deleted.

app-dev/devops-and-containers/devops/README.md

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,36 +2,31 @@
22

33
OCI DevOps, OCI Resource Manager, Visual Builder Studio, Open Source tools
44

5+
Reviewed: 08.05.2024
56

6-
# Table of Contents
7-
8-
1. [Team Publications](#team-publications)
9-
2. [Useful Links](#useful-links)
10-
3. [Reusable Assets Overview](#reusable-assets-overview)
11-
12-
## Team Publications
7+
# Team Publications
138

149
- [Deploying Jenkins on Oracle Container Engine for Kubernetes](https://docs.oracle.com/en/solutions/oci-jenkins-oke/index.html#GUID-23A8EB94-DFFC-4D5C-897F-5F59423447D2)
1510

1611

17-
## Useful Links
12+
# Useful Links
1813

1914
- [A DevOps Engineer's guide to OCI](https://docs.oracle.com/en-us/iaas/Content/GSG/Reference/getting-started-as-devops.htm)
2015
- [Selecting an appropriate CI/CD architecture](https://docs.oracle.com/en/solutions/select-cicd-architecture/index.html#GUID-A7048F76-5D10-4541-A105-CCF1CEFABEE1)
2116

22-
### OCI DevOps
17+
## OCI DevOps
2318

2419
- [OCI DevOps Build Pipeline collection](https://github.com/oracle-devrel/oci-devops-examples)
2520
- [OCI CLI documentation](https://docs.oracle.com/iaas/tools/oci-cli/latest/oci_cli_docs/)
2621
- [Deploying a Helm chart with Provenance liveLab](https://apexapps.oracle.com/pls/apex/r/dbpm/livelabs/view-workshop?wid=3664&clear=RR,180&session=109957900717640)
2722
- [Sample build-spec.yaml](./devops-graalvm-native-image/build-spec.yaml) and [associated Dockerfile](./devops-graalvm-native-image/Dockerfile) to use with OCI Devops. These are very configurable and show the installing of specific versions of software (GraalVM and Maven) into the build environment, creating of a native image executable using the installed software, determining version information dynamically and creating a docker image. The example used is the Quarkus getting-started example, but the build command should be the same for all quarkus examples, for Helidon and others you may need to change it slightly. This also assumes that the projects code base is in a sub directory of the gir repo (callsed getting-started in this case) you will need to modify the PROJECT_PATH_TO_BUILD to reflect a different location. To use this in a devops build pipeline place the Dockerfile and build-spec.yml in your projects code root (where the pom.xml file is). Adjust the PROJECT_PATH_TO_BUILD in the build spec and other variables as needed, add the files to your git repo. Change the output stage names for the image if needed. Configure the git repo as the primary GIT repo for the projects build stage and specify the build-spec.yaml file location.
2823

29-
### Terraform
24+
## Terraform
3025

3126
- [OCI Terraform provider](https://registry.terraform.io/providers/oracle/oci/latest/docs)
3227
- [Oracle quick start - automated deployments](https://github.com/oracle-quickstart)
3328

34-
### Ansible
29+
## Ansible
3530

3631
- [Getting starter - Ansible with OCI](https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/ansiblegetstarted.htm#Getting_Started_with_Oracle_Cloud_Infrastructure_and_Ansible)
3732
- [OCI Ansible Collection documentation](https://docs.oracle.com/en-us/iaas/tools/oci-ansible-collection/latest)

app-dev/devops-and-containers/functions/README.md

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,14 @@
22

33
OCI Functions
44

5+
Reviewed: 08.05.2024
56

6-
# Table of Contents
7-
8-
1. [Team Publications](#team-publications)
9-
2. [Useful Links](#useful-links)
10-
11-
## Team Publications
7+
# Team Publications
128

139
- [Building a minimal and secure container for serverless functions](https://medium.com/@comes94/building-a-minimal-and-secure-container-for-serverless-functions-with-micronaut-and-graalvm-4765da26e6a8)
1410

1511

16-
## Useful Links
12+
# Useful Links
1713

1814
- [Functions sample repository](https://github.com/oracle-samples/oracle-functions-samples)
1915
- [Functions quickstart](https://docs.oracle.com/en-us/iaas/Content/Functions/Tasks/functionsquickstartguidestop.htm)
Lines changed: 12 additions & 121 deletions
Original file line numberDiff line numberDiff line change
@@ -1,128 +1,19 @@
1-
<!--
2-
Copyright (c) 2024 Oracle and/or its affiliates.
3-
4-
The Universal Permissive License (UPL), Version 1.0
5-
6-
Subject to the condition set forth below, permission is hereby granted to any
7-
person obtaining a copy of this software, associated documentation and/or data
8-
(collectively the "Software"), free of charge and under any and all copyright
9-
rights in the Software, and any and all patent rights owned or freely
10-
licensable by each licensor hereunder covering either (i) the unmodified
11-
Software as contributed to or provided by such licensor, or (ii) the Larger
12-
Works (as defined below), to deal in both
13-
14-
(a) the Software, and
15-
(b) any piece of software and/or hardware listed in the lrgrwrks.txt file if
16-
one is included with the Software (each a "Larger Work" to which the Software
17-
is contributed by such licensors),
18-
19-
without restriction, including without limitation the rights to copy, create
20-
derivative works of, display, perform, and distribute the Software and make,
21-
use, sell, offer for sale, import, export, have made, and have sold the
22-
Software and the Larger Work(s), and to sublicense the foregoing rights on
23-
either these or other terms.
24-
25-
This license is subject to the following condition:
26-
The above copyright notice and either this complete permission notice or at
27-
a minimum a reference to the UPL must be included in all copies or
28-
substantial portions of the Software.
29-
30-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
31-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
32-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
33-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
34-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
35-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
36-
SOFTWARE.
37-
-->
38-
39-
## OCI queue overview
40-
[Document queue-overview](files/queue_overview.pdf)
41-
42-
### Author
43-
<a href="https://github.com/mikarinneoracle">mikarinneoracle</a>
44-
45-
## OCI Queue example in NodeJS with GitHub Actions
46-
47-
### OCI Queue
48-
49-
Create Queue and copy the Queue <i>OCID</i> and <i>Messages endpoint</i>:
50-
51-
<p>
52-
<img src="files/endpoint.png" width="800" />
53-
54-
<p>
55-
When using another <code>region</code> than <code>EU_FRANKFURT_1</code> please modify the
56-
<a href="index.js#L48">
57-
<code>index.js</code></a> Line #48 accordingly:
58-
59-
<pre>
60-
const region = common.Region.EU_FRANKFURT_1;
61-
</pre>
62-
63-
### Policies
1+
# OCI Queue
642

65-
Setup policies for your user in the tenancy
3+
TEXT
664

67-
e.g. <code>Allow &lt;USER_GROUP&gt; to manage queues in compartment &lt;COMPARTMENT&gt;</code>
5+
Reviewed: 08.05.2024
686

69-
More on OCI Queue IAM policies: https://docs.oracle.com/en-us/iaas/Content/queue/policy-reference.htm
7+
# Team Publication
708

71-
### Secrets
9+
- [Document queue-overview](example-usage/files/queue_overview.pdf)
7210

73-
Setup secrets to run this example with GitHub Actions:
74-
75-
<ul>
76-
<li><b>OCI_TENANCY</b>: OCI Tenancy OCID</li>
77-
<li><b>OCI_USER</b>: OCI User OCID</li>
78-
<li><b>OCI_FINGERPRINT</b>: OCI User Fingerprint</li>
79-
<li><b>OCI_KEY</b>: OCI User Private Key</li>
80-
<li><b>OCI_PASSPHRASE</b>: OCI User Private Key passphrase (optional)</li>
81-
<li><b>Q_ID</b>: OCI Queue OCID</li>
82-
<li><b>Q_ENDPOINT</b>: OCI Queue Messages endpoint</li>
83-
</ul>
84-
85-
### Run Action
86-
87-
Monitor the GitHub action to run:
88-
89-
<p>
90-
<img src="files/action.png" width="800" />
91-
92-
<p>
93-
This example will poll for messages in the queue and finally writes a new message to it.
94-
95-
### View messages in the Queue
96-
97-
<img src="files/messages.png" width="800" />
98-
99-
### Running locally
100-
101-
Clone this repo, setup npm and <code>oci cli</code> and modify <a href="index.js#L46">index.js</a> line 46 by uncommenting it and removing/commenting lines 49-56 and replace lines 59-60
102-
with Queue details :
103-
104-
<pre>
105-
// Use this locally instead of env vars and region:
106-
const provider = new common.ConfigFileAuthenticationDetailsProvider();
107-
108-
// Q settings
109-
const queueId = 'ocid1.queue.oc1.eu-frankfurt-1.ama....a5z4ic2tslq';
110-
const endpoint = 'https://cell-1.queue......oci.oraclecloud.com';
111-
</pre>
112-
113-
Then run:
114-
115-
<pre>
116-
npm install
117-
node index.js
118-
</pre>
119-
120-
### Sending messages to Queue
11+
# License
12+
13+
Copyright (c) 2024 Oracle and/or its affiliates.
14+
15+
Licensed under the Universal Permissive License (UPL), Version 1.0.
16+
17+
See [LICENSE](https://github.com/oracle-devrel/technology-engineering/blob/main/LICENSE) for more details.
12118

122-
You can manually send messages to the queue using the OCI Queue Console
123-
<code>Actions/Send Message</code> and then see them being received by re-running the build.
12419

125-
<p>
126-
You can also play with the queue's <code>Dead Letter Queue</code> settings to see how many
127-
times the same message is being received (default is 5). To do this comment the
128-
<a href="index.js#L99">line 99 of the index.js</a> and re-run the build by committing the change.
Lines changed: 104 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,104 @@
1+
# OCI Queue Example usage
2+
3+
TEXT
4+
5+
Author: [mikarinneoracle](https://github.com/mikarinneoracle)
6+
7+
Reviewed: 08.05.2024
8+
9+
# When to use this asset?
10+
11+
# How to use this asset?
12+
13+
## OCI Queue
14+
15+
Create Queue and copy the Queue <i>OCID</i> and <i>Messages endpoint</i>:
16+
17+
<p>
18+
<img src="files/endpoint.png" width="800" />
19+
20+
<p>
21+
When using another <code>region</code> than <code>EU_FRANKFURT_1</code> please modify the
22+
<a href="index.js#L48">
23+
<code>index.js</code></a> Line #48 accordingly:
24+
25+
<pre>
26+
const region = common.Region.EU_FRANKFURT_1;
27+
</pre>
28+
29+
## Policies
30+
31+
Setup policies for your user in the tenancy
32+
33+
e.g. <code>Allow &lt;USER_GROUP&gt; to manage queues in compartment &lt;COMPARTMENT&gt;</code>
34+
35+
More on OCI Queue IAM policies: https://docs.oracle.com/en-us/iaas/Content/queue/policy-reference.htm
36+
37+
## Secrets
38+
39+
Setup secrets to run this example with GitHub Actions:
40+
41+
<ul>
42+
<li><b>OCI_TENANCY</b>: OCI Tenancy OCID</li>
43+
<li><b>OCI_USER</b>: OCI User OCID</li>
44+
<li><b>OCI_FINGERPRINT</b>: OCI User Fingerprint</li>
45+
<li><b>OCI_KEY</b>: OCI User Private Key</li>
46+
<li><b>OCI_PASSPHRASE</b>: OCI User Private Key passphrase (optional)</li>
47+
<li><b>Q_ID</b>: OCI Queue OCID</li>
48+
<li><b>Q_ENDPOINT</b>: OCI Queue Messages endpoint</li>
49+
</ul>
50+
51+
## Run Action
52+
53+
Monitor the GitHub action to run:
54+
55+
<p>
56+
<img src="files/action.png" width="800" />
57+
58+
<p>
59+
This example will poll for messages in the queue and finally writes a new message to it.
60+
61+
## View messages in the Queue
62+
63+
<img src="files/messages.png" width="800" />
64+
65+
## Running locally
66+
67+
Clone this repo, setup npm and <code>oci cli</code> and modify <a href="index.js#L46">index.js</a> line 46 by uncommenting it and removing/commenting lines 49-56 and replace lines 59-60
68+
with Queue details :
69+
70+
<pre>
71+
// Use this locally instead of env vars and region:
72+
const provider = new common.ConfigFileAuthenticationDetailsProvider();
73+
74+
// Q settings
75+
const queueId = 'ocid1.queue.oc1.eu-frankfurt-1.ama....a5z4ic2tslq';
76+
const endpoint = 'https://cell-1.queue......oci.oraclecloud.com';
77+
</pre>
78+
79+
Then run:
80+
81+
<pre>
82+
npm install
83+
node index.js
84+
</pre>
85+
86+
### Sending messages to Queue
87+
88+
You can manually send messages to the queue using the OCI Queue Console
89+
<code>Actions/Send Message</code> and then see them being received by re-running the build.
90+
91+
<p>
92+
You can also play with the queue's <code>Dead Letter Queue</code> settings to see how many
93+
times the same message is being received (default is 5). To do this comment the
94+
<a href="index.js#L99">line 99 of the index.js</a> and re-run the build by committing the change.
95+
96+
# License
97+
98+
Copyright (c) 2024 Oracle and/or its affiliates.
99+
100+
Licensed under the Universal Permissive License (UPL), Version 1.0.
101+
102+
See [LICENSE](https://github.com/oracle-devrel/technology-engineering/blob/main/LICENSE) for more details.
103+
104+

0 commit comments

Comments
 (0)