Catalyst / admin/Synapse-Cortex 14.8 GB / 57.8 GB 40.0 GB free
Help Sign in

admin / Synapse-Cortex

public

Self Hosted ITSM Tool with RBAC/Tenanting and MFA

Code Issues Pull requests Pipelines Packages Security Insights Wiki Settings
Synapse-Cortex / Synapse-Cortexv2 / playbooks / docker-locate-a-container-s-compose-project-files.json 2253 B · main
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
{
  "name": "Docker: Locate a Container’s Compose Project & Files",
  "enabled": true,
  "allowed_target_os": [
    "linux"
  ],
  "required_approval_level": "human_in_the_loop",
  "forbidden_commands": [],
  "graph_json": {
    "nodes": [
      {
        "id": "start",
        "type": "start",
        "data": {},
        "position": {
          "x": 250,
          "y": 0
        }
      },
      {
        "id": "cmd_exists",
        "type": "command",
        "data": {
          "label": "Confirm the container exists",
          "command": "docker ps -a --filter name=<container>"
        },
        "position": {
          "x": 250,
          "y": 130
        }
      },
      {
        "id": "cmd_project",
        "type": "command",
        "data": {
          "label": "Show its Compose project name",
          "command": "docker inspect --format '{{ index .Config.Labels \"com.docker.compose.project\" }}' <container>"
        },
        "position": {
          "x": 250,
          "y": 260
        }
      },
      {
        "id": "cmd_workdir",
        "type": "command",
        "data": {
          "label": "Show its project working directory",
          "command": "docker inspect --format '{{ index .Config.Labels \"com.docker.compose.project.working_dir\" }}' <container>"
        },
        "position": {
          "x": 250,
          "y": 390
        }
      },
      {
        "id": "cmd_files",
        "type": "command",
        "data": {
          "label": "Show its compose file path(s)",
          "command": "docker inspect --format '{{ index .Config.Labels \"com.docker.compose.project.config_files\" }}' <container>"
        },
        "position": {
          "x": 250,
          "y": 520
        }
      }
    ],
    "edges": [
      {
        "id": "e_start_cmd_exists",
        "source": "start",
        "target": "cmd_exists"
      },
      {
        "id": "e_cmd_exists_cmd_project",
        "source": "cmd_exists",
        "target": "cmd_project"
      },
      {
        "id": "e_cmd_project_cmd_workdir",
        "source": "cmd_project",
        "target": "cmd_workdir"
      },
      {
        "id": "e_cmd_workdir_cmd_files",
        "source": "cmd_workdir",
        "target": "cmd_files"
      }
    ]
  }
}