The sloppy show
command is very versatile and will display detailed information on either all of your projects; or just one specific project, service or application.
You can learn more about projects, services and applications on the sloppy.io YAML reference page and the reference page on creating an application.
Status of all projects
To get an overview about all of your current projects, just use the sloppy show
command without any arguments, like this:
$ sloppy show
Here is an example output:
Show
$ sloppy show
+------------+------------+--------+--------------+
| PROJECT | # SERVICES | # APPS | TOTAL MEMORY |
+------------+------------+--------+--------------+
| oh-hai | 1 | 1 | 512 MiB |
| wordpress | 2 | 2 | 1024 MiB |
+------------+------------+--------+--------------+
What does this information tell you?
Project
Name of a project.
Service
Number of services, that each project contains.
Apps
Number of applications included in a project.
Total Memory
Total amount of memory (RAM) currently used by a project in MiB.
Status of a service
You can also use the sloppy show
command, to get information on a specific service, that is contained in one of your projects. The syntax is:
$ sloppy show MyProjectName/MyServiceName
Here is an example output:
$ sloppy show wordpress/frontend
+--------+-----------+---------+--------------+--------+
| APP | IMAGE | COMMAND | TOTAL MEMORY | STATUS |
+--------+-----------+---------+--------------+--------+
| apache | wordpress | - | 512 MiB | 1 / 1 |
+--------+-----------+---------+--------------+--------+
What does this information tell you?
APP
Name(s) of application(s) included in the service.
Image
Name of the Docker image for this app.
Command
Docker command this app’s image is executing on launch.
Total memory
Amount of memory (RAM) allocated to the application in MiB.
Status
Number of instances the application is currently running on simultaneously (x from y).
Status of an application
For information on a specific application, run the sloppy show
command. It will also provide you with detailed information on a specific application (for example “frontend”), that is contained in one of your projects. The syntax is:
$ sloppy show MyProjectName/MyServiceName/MyApplicationName
Here is an example output:
$ sloppy show wordpress/frontend/apache
Application: apache
Version: 2016-01-18T11:08:51.611Z
Memory: 256 MiB
Total Memory: 512 MiB
Instances: 1 / 2
Domain: pf12.sloppy.zone
Image: wordpress
Command: -
Ports: 80
Versions: 2016-01-18T11:08:51.611Z
Dependencies: ../backend/mysql
Environments: WORDPRESS_DB_HOST="mysql.backend.wordpress.work"
WORDPRESS_DB_PASSWORD="test"
WORDPRESS_DB_USER="user"
What does this information tell you?
Application
Name of the application.
Version
Time stamp of the app version that is currently running.
Memory
Amount of memory (RAM) allocated to the instance in MiB.
Total Memory
Amount of memory (RAM) allocated to all instances in MiB.
Instances
Number of instances the application is currently running on simultaneously (x from y).
Domain
If you defined a domain name for this app, it will be shown here as Domain.
Image
Name of the Docker image for this app.
Command
Docker command this app’s image is executing on launch.
Ports
Here you’ll see, which ports are exposed for this application (learn more about ports).
Versions
Lists all versions that have been launched for this app, including the current one. sloppy.io allows you to do a rollback to each of those versions (learn how to do a rollback).
Dependencies
If this application is depending on one or more other apps, their names will show up here (learn more about dependencies).
Environments
Lists all environment variables, that have been defined for this app (learn more about environment variables).
Fetch the JSON file of a project
Last, but not least, you can also use the sloppy show
command to display the JSON file that is currently used to define and configure a specific project.
| Learn more about the sloppy.json
format on the sloppy YAML reference page and the reference page on creating an application.
To see a any project’s JSON file, use the sloppy show
command in conjunction with the --raw
option, like this:
$ sloppy show --raw MyProjectName
Here is an example output:
sloppy show --raw wordpress
[
{
"id": "frontend",
"apps": [
{
"id": "apache",
"status": [
"running"
],
"domain": {
"uri": "wp2.sloppy.zone"
},
"mem": 512,
"instances": 1,
"image": "wordpress:4.2",
"version": "2016-01-26T17:19:11.437Z",
"versions": [
"2016-01-26T17:19:11.437Z"
],
"port_mappings": [
{
"container_port": 80
}
],
"dependencies": [
"../backend/mysql"
],
"env": {
"WORDPRESS_DB_HOST": "mysql.backend.wordpress",
"WORDPRESS_DB_PASSWORD": "test",
"WORDPRESS_DB_USER": "admin"
}
}
]
},
{
"id": "backend",
"apps": [
{
"id": "mysql",
"status": [
"running"
],
"mem": 512,
"instances": 1,
"image": "mysql",
"version": "2016-01-26T17:19:11.437Z",
"versions": [
"2016-01-26T17:19:11.437Z"
],
"env": {
"MYSQL_DATABASE": "wordpress",
"MYSQL_PASSWORD": "test",
"MYSQL_ROOT_PASSWORD": "test",
"MYSQL_USER": "admin"
}
}
]
}
]