You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -129,6 +129,81 @@ Copy that and use it to run one more command:
129
129
130
130
The output of the command will have the details of the VNIC, including the Public IP address. Copy that, navigate to it in a web browser and you should see the WordPress setup page.
131
131
132
+
![Screenshot of: Wordpress setup page][9]
133
+
134
+
### Leveraging Command Parameter JSON for complex input
135
+
136
+
As you can see in the **CREATE** command that was just run, several of the command parameters require complex JSON input. While it is possible to pass directly into the CLI, a preferred approach is to leverage JSON command parameter input. Generating the outline is simple enough and can be done for each of the more complex parameters. It looks like this:
This will create a JSON file with all of the paramaters available (optional and required) when defining one or more containers for your resource. You can do the same for *shape-config* and *vnics*, resulting in 3 JSON files to pass through the CLI command. The following examples illustrate the minimum configuration required within each file to complete this tutorial. You can, of course, experiment with additional parameter input once you get the hang of this.
Once you have created and populated the three files, you can simply pass the JSON file as input to your command parameters, resulting in a much cleaner command.
There you have it, and well done! You've just completely provisioned OCI Container Instances with related network resources, all from the command line interface! When you're ready to try something a little different, check out the next article on automating Container Instances using Terraform.
title: Automated Deployment and Testing with Container Instances
3
+
parent:
4
+
- tutorials
5
+
- ci-automation
6
+
sidebar: series
7
+
tags:
8
+
- open-source
9
+
- iac
10
+
- devops
11
+
- get-started
12
+
categories:
13
+
- iac
14
+
- opensource
15
+
thumbnail: assets/ci-automation.png
16
+
date: 2023-02-01 12:00
17
+
description: With the critical components of automated provisioning securely embedded in your brain, its time to put this knowledge into practice. This article will walk through the process of leveraging Container Instances within your CI/CD pipeline for automated testing activities.
0 commit comments