ocd
is command line tool designed for engineers working with OpenShift
This is a proof of concept and not meant to be used for 'real' work.
To get started clone the git repo and source the entrypoint.sh script
$ git clone https://github.com/openshift-evangelists/ocd.git
$ source ocd/entrypoint.sh
Most of the commands require just oc
and bash
, though, some have external dependencies
Requires also
jq
sed
awk
base64
Creates new application context.
name
is mandatory.
Will create project name
if not project currently selected.
Deploy new thing of type type
and name it name
.
type
is mandatory. name
defaults to type
when no specified. path
is manadatory for s2i apps.
oc create mysql
is equivalent to oc create mysql mysql
, will create new deployment from the mysql
temaplate with name mysql
.
oc create php php <url>
will create new deployment using php
from source code <url>
.
Triggers new build.
name
is mandatory.
path
is mandatory for --from-dir
builds.
Start rsync to the pod. Will take first running pod for deployment name
.
name
is mandatory. path
defaults to .
.
Expects to find secret with name name
, create e.g. my MySQL template, and copies the values as ENV to target
.
name
and target
are mandatory.
Adds new persistent local or shared
storage of size
to deployment name
mounted at path
.
type
is mandatory and is either shared
or local
. size
, path
and name
are mandatory.
Create route for deployment name
.
name
is mandatory.
Scale deployment name
to count
pods.
name
and count
are mandatory.
Undeploy deployment name
.
name
is mandatory.
Delete all deployments in current application context.
Exit the application context.
After installation the ocd
command is available to use.
ocd
is released under the MIT License.