This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @Get("/") | |
| @Produces(MediaType.APPLICATION_JSON) | |
| public HttpResponse<Object> index() { | |
| Map<String, Object> meta = new HashMap<>(); | |
| meta.put("configValue", this.testConfigValue); | |
| return HttpResponse.ok(meta); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @Get("/") | |
| @Produces(MediaType.APPLICATION_JSON) | |
| public HttpResponse<Object> index() { | |
| Map<String, Object> meta = new HashMap<>(); | |
| meta.put("configValue", this.testConfigValue); | |
| meta.put("applicationEnvironment", applicationContext.getEnvironment().getActiveNames()); | |
| meta.put("id", serviceInstance.getId()); | |
| meta.put("region", serviceInstance.getRegion()); | |
| meta.put("instanceId", serviceInstance.getInstanceId()); | |
| meta.put("host", serviceInstance.getHost()); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| dependencyManagement { | |
| imports { | |
| mavenBom 'io.micronaut:micronaut-bom:1.2.0.RC1' | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "data": { | |
| "compartment-id": "ocid1.compartment.oc1….", | |
| "defined-tags": {}, | |
| "description": "A compartment for cloud native microservices", | |
| "freeform-tags": {}, | |
| "id": "ocid1.compartment.oc1….", | |
| "inactive-status": null, | |
| "is-accessible": null, | |
| "lifecycle-state": "ACTIVE", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| oci iam compartment create --compartment-id [OCID of ‘root’ compartment] --name cloud-native-microservices --description "A compartment for cloud native microservices" --region us-ashburn-1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| oci iam compartment list --compartment-id [OCID of ‘root’ compartment] –all |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| oci iam user create --name docker-user --description "A user for OCIR" --region us-ashburn-1 --compartment-id [OCID of ‘root’ compartment] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "data": { | |
| "capabilities": { | |
| "can-use-api-keys": true, | |
| "can-use-auth-tokens": true, | |
| "can-use-console-password": true, | |
| "can-use-customer-secret-keys": true, | |
| "can-use-smtp-credentials": true | |
| }, | |
| "compartment-id": "ocid1.tenancy.oc1", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| oci iam auth-token create --user-id [OCID of new user] --description "auth token for docker-user" --region us-ashburn-1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "data": { | |
| "description": "auth token for docker-user", | |
| "id": "ocid1.credential.oc1", | |
| "inactive-status": null, | |
| "lifecycle-state": "ACTIVE", | |
| "time-created": "2019-06-20T18:41:41.366000+00:00", | |
| "time-expires": null, | |
| "token": "[Token String]", | |
| "user-id": "ocid1.user.oc1" |