projectatomic / adb-utils

A set of utilities for managing services used provided in the Atomic Developer Bundle.
GNU General Public License v2.0
13 stars 22 forks source link

[[adb-utils]] = adb-utils :toc: :toc-placement!:

Utility and Service scripts for the https://github.com/projectatomic/adb-atomic-developer-bundle[Atomic-Developer-Bundle (ADB)].

''' toc::[] '''

== What does adb-utils include?

adb-utils provides the following content to the ADB Vagrant box:

CLI for managing services in ADB/CDK

optional arguments: -h, --help show this help message and exit

subcommands: Manage services for openshift|docker|kubernetes

{kubernetes,openshift,docker} kubernetes start|restart|status|stop (default:start) openshift start|restart|status|stop (default:start) docker start|restart|status|stop (default:start) .... + For instance, to start Kubernetes service, use: + ....

sccli kubernetes start

echo $?

.... + echo $? gives you the return code for the command and feeds it to the vagrant-service-manager. The vagrant-service-manager makes decisions based on these return codes. If the return code is 0, it implies that the service has behaved (started/restarted/stopped) as expected. If the return status is anything other than 0, it implies that the service has failed to behave as expected. + sccli accepts environment variables to modify how services are configured and deployed. For the OpenShift service, the following environment variables are recognized: + DOCKER_REGISTRY, defines which registry the OpenShift containers should be pulled from. The default value is "docker.io". + IMAGE_NAME, defines which OpenShift image should be used. The default value is "openshift/origin". + IMAGE_TAG, defines which version of OpenShift should be used. The default value is "v1.1.1". + Thus, the version of OpenShift defaults to the containerized version at docker.io/openshift/origin:v1.1.1. If you desire a different version, pass the DOCKER_REGISTRY, IMAGE_NAME and/or IMAGE_TAG environment variables. + An example of changing these would be: + .... $ sudo DOCKER_REGISTRY="registry.mycompany.com" IMAGE_NAME="openshift_gold" IMAGE_TAG="v2016-01-03" sccli openshift start .... + Or, to use the latest version: + .... $ IMAGE_TAG="latest" sccli openshift start ....

These utilities and unit files are packaged as an RPM and included in https://github.com/projectatomic/adb-atomic-developer-bundle[Atomic-Developer-Bundle (ADB)] version 1.7.0 or later.

The public YUM repository is available at: http://mirror.centos.org/centos-7/7/atomic/x86_64/adb/

[[ip-detection-note]] == IP Detection Note

This code uses the last IPv4 address available from the set of configured addresses that are up. i.e. if eth0, eth1, and eth2 are all up and have IPv4 addresses, the address on eth2 is used.

[[steps-to-build-the-src-rpm]] == Steps to build the SRC RPM

[[interested-in-contributing-to-this-project]] == Interested in Contributing to this Project?

We welcome issues and pull requests. Want to be more involved, join us:

Note: These meetings, mailing lists, and irc channels may include discussions on other Project Atomic components.

Documentation is written using http://docutils.sourceforge.net/docs/user/rst/quickref.html[reStructuredText]. An http://rst.ninjs.org[online reStructuredText editor] is available.