Skip to content

Commit 82fe1ce

Browse files
committed
Edits to OCI_CLI blog entry
1 parent 5057f3b commit 82fe1ce

File tree

2 files changed

+34
-28
lines changed

2 files changed

+34
-28
lines changed
Loading

OracleSolaris_OCI/06_Solaris_On_OCI_Using_CLI/README.md

+34-28
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,7 @@ Note: These are the commands needed as of Nov 2022.
1212

1313
1) List the shapes that can be used to launch an instance within the specified compartment and select a shape based on your preference. In this article, we are using the “VM.Standard2.1” shape.
1414

15-
Copy code snippet
16-
Copied to ClipboardError: Could not CopyCopied to ClipboardError: Could not Copy
15+
```
1716
$ oci compute shape list --compartment-id ocid1.compartment.oc1..xxxxxxxxxxxxxxxxxxxxxxxxx
1817
{
1918
"data": [
@@ -92,10 +91,11 @@ $ oci compute shape list --compartment-id ocid1.compartment.oc1..xxxxxxxxxxxxxxx
9291
"resize-compatible-shapes": null,
9392
"shape": "BM.Standard.A1.160"
9493
},
95-
2) Get the "--listing-id" of the latest Oracle Solaris 11.4 image by executing the following command.
94+
```
9695

97-
Copy code snippet
98-
Copied to ClipboardError: Could not CopyCopied to ClipboardError: Could not Copy
96+
2) Get the `--listing-id` of the latest Oracle Solaris 11.4 image by executing the following command.
97+
98+
```
9999
$ oci marketplace listing list --name "Oracle Solaris"
100100
{
101101
"data": [
@@ -170,10 +170,11 @@ $ oci marketplace listing list --name "Oracle Solaris"
170170
}
171171
]
172172
}
173-
3) In the previous command, the "--lisitng-id" is displayed as "id": "61750333", we use this "id" to obtain the "package-version" of the image. I sorted the results by TIMERELEASED in the DESC order to get the latest package version.
173+
```
174+
175+
3) In the previous command, the `--lisitng-id` is displayed as `"id": "61750333"`, we use this `"id"` to obtain the `"package-version"` of the image. I sorted the results by `TIMERELEASED` in the `DESC` order to get the latest package version.
174176

175-
Copy code snippet
176-
Copied to ClipboardError: Could not CopyCopied to ClipboardError: Could not Copy
177+
```
177178
$ oci marketplace package list --listing-id "61750333" --sort-by TIMERELEASED --sort-order DESC
178179
{
179180
"data": [
@@ -310,10 +311,11 @@ $ oci marketplace package list --listing-id "61750333" --sort-by TIMERELEASED --
310311
}
311312
]
312313
}
313-
4) Now, use the listing-id and the package-version to get the “--image-id”.
314+
```
314315

315-
Copy code snippet
316-
Copied to ClipboardError: Could not CopyCopied to ClipboardError: Could not Copy
316+
4) Now, use the `listing-id` and the `package-version` to get the `--image-id`.
317+
318+
```
317319
$ oci marketplace package get --listing-id "61750333" --package-version "11.4.50"
318320
{
319321
"data": {
@@ -362,15 +364,14 @@ $ oci marketplace package get --listing-id "61750333" --package-version "11.4.50
362364
},
363365
"etag": "6af825bd62cf470bdb2626e42979ea310496af7c66f51ef447bade39fbcc93dd--gzip"
364366
}
365-
367+
```
366368

367369
Terms of use agreement
368370
Note: You can find detailed overview about the 'Marketplace components' and 'Agreements' in this blogpost.
369371

370-
5) Terms of use agreement must be signed before launching an instance with that specific "--package-version". The terms of use agreement is required to be signed only once for a specific --package-version. It is not required to sign an addiotional agreement if there is already an agreement in place for that particular "--package-version". We can verify if there is an agreement already in place related to the --compartment-id”, “--listing-id and --package-version.
372+
5) Terms of use agreement must be signed before launching an instance with that specific `--package-version`. The terms of use agreement is required to be signed only once for a specific `--package-version`. It is not required to sign an addiotional agreement if there is already an agreement in place for that particular `--package-version`. We can verify if there is an agreement already in place related to the `--compartment-id`, `--listing-id` and `--package-version`.
371373

372-
Copy code snippet
373-
Copied to ClipboardError: Could not CopyCopied to ClipboardError: Could not Copy
374+
```
374375
$ oci marketplace accepted-agreement list -c ocid1.compartment.oc1..xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx --listing-id 61750333
375376
{
376377
"data": [
@@ -417,12 +418,13 @@ $ oci marketplace accepted-agreement list -c ocid1.compartment.oc1..xxxxxxxxxxxx
417418
}
418419
]
419420
}
420-
In the above image, the command resulted in an agreement that is specific to the package version “11.4.47”. Therefore, the user must accept the terms of use agreement for any other “--package-version” if they want to use it.
421+
```
422+
423+
In the above image, the command resulted in an agreement that is specific to the package version `“11.4.47”`. Therefore, the user must accept the terms of use agreement for any other `--package-version` if they want to use it.
421424

422-
6) List the agreement using the following command by passing "--listing-id" and "--package-version".
425+
6) List the agreement using the following command by passing `--listing-id` and `--package-version`.
423426

424-
Copy code snippet
425-
Copied to ClipboardError: Could not CopyCopied to ClipboardError: Could not Copy
427+
```
426428
$ oci marketplace agreement list --listing-id 61750333 --package-version 11.4.50
427429
{
428430
"data": [
@@ -446,11 +448,11 @@ $ oci marketplace agreement list --listing-id 61750333 --package-version 11.4.50
446448
}
447449
]
448450
}
451+
```
449452
450-
7) Get the agreement using the below command by passing "--agreement-id" retrieved form the previous command.
453+
7) Get the agreement using the below command by passing `--agreement-id` retrieved form the previous command.
451454

452-
Copy code snippet
453-
Copied to ClipboardError: Could not CopyCopied to ClipboardError: Could not Copy
455+
```
454456
$ oci marketplace agreement get --agreement-id 58993510 --listing-id 61750333 --package-version 11.4.50{
455457
"data": {
456458
"author": "ORACLE",
@@ -471,17 +473,19 @@ $ oci marketplace agreement get --agreement-id 58993510 --listing-id 61750333 --
471473
"signature": "eyJzaWduYXR1cmVEaWdlc3QiOiIwNjE4NDZlODljZWUyNDg2Y2ZkNDY1YzYzOWVkNDFiYTg5YzQxN2Q1Y2IxMzRiZTkyMzU3MTVlOWM3NDkxYjY1IiwidGltZVJldHJpZXZlZCI6MTY2OTY4NzQ0NDY0MX0="
472474
}
473475
}
474-
8) Accept the agreement by passing the agreement-id and signature retrieved from the above two commands
476+
```
475477

476-
Copy code snippet
477-
Copied to ClipboardError: Could not CopyCopied to ClipboardError: Could not Copy
478+
8) Accept the agreement by passing the `agreement-id` and `signature` retrieved from the above two commands
479+
480+
```
478481
$ oci marketplace accepted-agreement create --agreement-id 58993510 -c ocid1.compartment.oc1..xxxxxxxxxxxxxxxxxxxx --listing-id 61750333 --package-version 11.4.50 –-signature "eyJzaWduYXR1cmVEaWdlc3QiOiIwNjE4NDZlODljZWUyNDg2Y2ZkNDY1YzYzOWVkNDFiYTg5YzQxN2Q1Y2IxMzRiZTkyMzU3MTVlOWM3NDkxYjY1IiwidGltZVJldHJpZXZlZCI6MTY2OTY4NzQ0NDY0MX0="
479482
$ oci marketplace accepted-agreement create --agreement-id 58993510 -c ocid1.compartment.oc1..xxxxxxxxxxxxxxxxxxxx --listing-id 61750333 --package-version 11.4.50 –-signature "eyJzaWduYXR1cmVEaWdlc3QiOiIwNjE4NDZlODljZWUyNDg2Y2ZkNDY1YzYzOWVkNDFiYTg5YzQxN2Q1Y2IxMzRiZTkyMzU3MTVlOWM3NDkxYjY1IiwidGltZVJldHJpZXZlZCI6MTY2OTY4NzQ0NDY0MX0="
480483
Launching the Instance
484+
```
485+
481486
9) Launch the instance by executing this command: (for this article we have chosen the AD:” ruWb:PHX-AD-1”)
482487

483-
Copy code snippet
484-
Copied to ClipboardError: Could not CopyCopied to ClipboardError: Could not Copy
488+
```
485489
$ oci compute instance launch --compartment-id ocid1.compartment.oc1..xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx --availability-domain ruWb:PHX-AD-1 --subnet-id ocid1.subnet.oc1.phx.xxxxxxxxxxxxxxxxxxxxxxx --image-id ocid1.image.oc1..aaaaaaaajejfad6ddenyfbghbyngp4lhhkh7ie262xjglhsjn5u22owwfcbq --shape VM.Standard2.1 –-ssh-authorized-keys-file ‘/path to your public key/’
486490
{
487491
"data": {
@@ -632,8 +636,10 @@ $ oci compute instance launch --compartment-id ocid1.compartment.oc1..xxxxxxxxxx
632636
"etag": "8c7f5881d3f06d9d01817f92cc9c9953d835680f2172ead208c719a4fb8627fb",
633637
"opc-work-request-id": "ocid1.coreservicesworkrequest.oc1.phx.abyhqljs3mz6h5q765izlo3d6lk6to2fnuqulotvlfsytl4wblhputefu3qa"
634638
}
639+
```
640+
635641
Now, verify the new instance in the OCI console
636642

637-
.image1
643+
![](Images/screenshot_01.png)
638644

639645
Additionally, please visit this Github repository oraclesolaris-contrib for more content related to Oracle Solaris on OCI.

0 commit comments

Comments
 (0)