This file contains 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
#!/bin/bash | |
# | |
tenancy_id=`cat /etc/oci/config | grep tena | uniq | cut -d "=" -f 2` | |
oci iam compartment list --output table --query "data [*].{CompartmentName:\"name\", OCID:id}" | |
read -p "Enter the compartment ID where you wish to create the VCN [$tenancy_id]: " compartment_id | |
compartment_id=${compartment_id:-$tenancy_id} | |
read -p "Enter the VCN name you wish to create [CLI-VCN]: " vcn_name | |
vcn_name=${vcn_name:-CLI-VCN} | |
echo selected VCN name : $vcn_name | |
vcn_dns=`echo "${vcn_name//[_-]/}"` |
This file contains 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
version: '3.2' | |
secrets: | |
portainer-pass: | |
external: true | |
services: | |
agent: | |
image: portainer/agent:latest | |
volumes: | |
- /var/run/docker.sock:/var/run/docker.sock |
OlderNewer