A listing of all MiniSLATE sub-commands and their arguments.
Locally build (or re-build) the MiniSLATE container images to bypass the hosted images.
$ ./minislate buildCompletely destroy the MiniSLATE environment.
$ ./minislate destroy [--rmi] [-y]Also remove the built images (they will be rebuilt on next ./minislate init or manually with ./minislate build)
Assume yes for prompt to confirm destroy.
Run any command from the host in a selected MiniSLATE container.
$ ./minislate exec [container_name] [command]The container to where the command will be executed. The available containers are:
kubeslate
A valid shell command. For example:
./minislate exec kubectl uname -aInitialize the entire MiniSLATE environment.
$ ./minislate init [-v hostDir or hostDir:containerDir] [-p hostPort or hostPort:containerPort]Publish a port in the Kubernetes container to the host (e.g. -p 3000:80)
For use with automated testing infrastructure. Disables the tty option in the docker-compose bring up of MiniSLATE.
Create a Docker volume of a host directory to a directory in the SLATE container (e.g. -v ~/WorkDir:/mnt).
- If a directory in the container is not specified (e.g.
-v ~/WorkDir) volumes will be mounted by their directory name under/mnt(e.g./mnt/WorkDir).
Run a kubectl command from the host in the MiniSLATE environment.
$ ./minislate kubectl [kubectl_command]A valid kubectl command. For example:
./minislate kubectl get nodesFreezes the state of the MiniSLATE environment (helpful to free up host resources or change host state (sleep, reboots, etc.)
$ ./minislate pauseOpen the local copy of the SLATE web interface in a browser.
$ ./minislate portalNOTE: Arguments and options for this command are mutually exclusive.
Access load-balanced services from the host.
$ ./minislate proxy [address:port or --list or --rm]The command takes an address where traffic will be forwarded. For example:
$ ./minislate proxy 127.18.0.150:80Show a list of currently running proxies.
Remove an existing socat process by passing this flag with the PID of the process.
Reload the catalog from the SLATE stable/incubator repositories.
$ ./minislate reload-catalogView the status of the MiniSLATE environment.
$ ./minislate status
Name Command State Ports
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
minislate_db_1 java -jar DynamoDBLocal.jar Up 8000/tcp
minislate_kube_1 /bin/bash -c exec /sbin/in ... Up 0.0.0.0:30000->30000/tcp, 0.0.0.0:30001->30001/tcp, 0.0.0.0:30002->30002/tcp ... 0.0.0.0:30100->30100/tcp, 0.0.0.0:6443->6443/tcp, 0.0.0.0:8080->80/tcp
minislate_nfs_1 /usr/bin/nfsd.sh Up
minislate_slate_1 /usr/bin/slate-service Up 0.0.0.0:18080->18080/tcp, 0.0.0.0:5050->5000/tcp, 0.0.0.0:5100->5100/tcp Open a shell in a MiniSLATE container.
user@host$ ./minislate shell [containerName]
root@container_id# The container to where a shell will be opened. The available containers are:
kubeslate
Run a SLATE CLI command.
$ ./minislate slate [slate_command]A valid SLATE CLI command. For example:
./minislate slate vo listUnfreeze the MiniSLATE environment after pausing.
$ ./minislate unpause