This repository contains the source for the operations management system. It contains the sources for both the CLI and the Service.
The OMS CLI tool is used to bootstrap Codesphere cluster on customer sites and replaces the formerly used private cloud installer.
You can install the OMS CLI in a few ways:
If you have the GitHub CLI installed, you can install the OMS CLI with a command like the following.
Note that some commands may require you to elevate to the root user with sudo.
gh release download -R codesphere-cloud/oms -O /usr/local/bin/oms-cli -p "oms-cli*darwin_arm64"
chmod +x /usr/local/bin/oms-cli
gh release download -R codesphere-cloud/oms -O /usr/local/bin/oms-cli -p "oms-cli*linux_amd64"
chmod +x /usr/local/bin/oms-cli
This option requires to have the wget and jq utils installed. Download the OMS CLI and add permissions to run it with the following commands:
Note that some commands may require you to elevate to the root user with sudo.
wget -qO- 'https://api.github.com/repos/codesphere-cloud/oms/releases/latest' | jq -r '.assets[] | select(.name | match("oms-cli.*darwin_arm64")) | .browser_download_url' | xargs wget -O oms-cli
mv oms-cli /usr/local/bin/oms-cli
chmod +x /usr/local/bin/oms-cli
wget -qO- 'https://api.github.com/repos/codesphere-cloud/oms/releases/latest' | jq -r '.assets[] | select(.name | match("oms-cli.*linux_amd64")) | .browser_download_url' | xargs wget -O oms-cli
mv oms-cli /usr/local/bin/oms-cli
chmod +x /usr/local/bin/oms-cli
You can also download the pre-compiled binaries from the OMS Releases page.
Note that some commands may require you to elevate to the root user with sudo.
-
Go to the latest release.
-
Download the appropriate release for your operating system and architecture (e.g.,
oms-cli_darwin_amd64for macOS,oms-cli_linux_amd64for Linux, oroms-cli_windows_amd64for Windows). -
Move the
oms-clibinary to a directory in your system'sPATH(e.g.,/usr/local/binon Linux/Mac, or a directory added toPathenvironment variable on Windows). -
Make the binary executable (e.g. by running
chmod +x /usr/local/bin/oms-clion Mac or Linux)
The OMS CLI organizes its functionality into several top-level commands, each with specific subcommands and flags.
See our Usage Documentation for usage information about the specific subcommands.
make build-cliSee also [CONTRIBUTION.md]
The service implementation is currently WIP
make build-servicePlease review our Code of Conduct to understand our community expectations. We welcome contributions! All contributions to this project must be made in accordance with the Developer Certificate of Origin (DCO). See our full Contributing Guidelines for details.