oci-cli - Command Line Interface for Oracle Cloud Infrastructure Docker/Podman container setup
A makefile is available with following entries:
- 'oci': it will setup oci-cli in a container
- 'oci-proxy': it will setup oci-cli in a container through a proxy
- 'oci-cleanup': it will cleanup the environment dropping the oci-cli image
- 'oci-update': it will update oci-cli image
You can specify the usage of docker or podman from 'env.mk'. From the same file you can set the proxy if required
- 
Edit 'env.mk' to set docker or podman usage 
- 
Run 'make oci' 
- 
Add following alias on yours '.bashrc': if you use podman: alias oci='podman run --rm -it --userns=keep-id -v "$HOME/.oci:$HOME/.oci:z" --tmpfs /run --tmpfs /tmp oci'if you use docker: alias oci='docker run --rm -it -v "$HOME/.oci:$HOME/.oci" -v /sys/fs/cgroup:/sys/fs/cgroup:ro --tmpfs /run --tmpfs oci'
You can now execute oci-cli commands, example:
$ oci os ns get
{
 "data": "mytenancy"
}
NOTE: the oci-cli configuration is stored on host under "$HOME/.oci"
Ruggero Citton
MIT License