@emeryld/obs-stack 0.1.2 → 0.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/obs-stack.js +8 -2
- package/docker-compose.yml +2 -2
- package/package.json +1 -1
package/bin/obs-stack.js
CHANGED
|
@@ -45,9 +45,15 @@ function fail(message) {
|
|
|
45
45
|
|
|
46
46
|
function ensureDocker() {
|
|
47
47
|
const dockerCheck = spawnSync('docker', ['--version'], { stdio: 'ignore' });
|
|
48
|
+
if (dockerCheck.error || dockerCheck.status !== 0) {
|
|
49
|
+
const hint = dockerCheck.error?.message ? ` (${dockerCheck.error.message})` : '';
|
|
50
|
+
fail('The Docker CLI (docker) is not available. Install Docker Desktop or the Docker Engine CLI so the `docker` command is on your PATH.' + hint);
|
|
51
|
+
}
|
|
52
|
+
|
|
48
53
|
const composeCheck = spawnSync('docker', ['compose', 'version'], { stdio: 'ignore' });
|
|
49
|
-
if (
|
|
50
|
-
|
|
54
|
+
if (composeCheck.error || composeCheck.status !== 0) {
|
|
55
|
+
const hint = composeCheck.error?.message ? ` (${composeCheck.error.message})` : '';
|
|
56
|
+
fail('Docker Compose is not available. Install the Docker Compose plugin (or Docker Desktop) so `docker compose` can run.' + hint);
|
|
51
57
|
}
|
|
52
58
|
}
|
|
53
59
|
|
package/docker-compose.yml
CHANGED
|
@@ -16,7 +16,7 @@ services:
|
|
|
16
16
|
restart: unless-stopped
|
|
17
17
|
|
|
18
18
|
tempo:
|
|
19
|
-
image: grafana/tempo:
|
|
19
|
+
image: grafana/tempo:2.9.0
|
|
20
20
|
ports:
|
|
21
21
|
- "${TEMPO_HTTP_PORT}:3200"
|
|
22
22
|
command:
|
|
@@ -27,7 +27,7 @@ services:
|
|
|
27
27
|
restart: unless-stopped
|
|
28
28
|
|
|
29
29
|
loki:
|
|
30
|
-
image: grafana/loki:2.
|
|
30
|
+
image: grafana/loki:2.9.3
|
|
31
31
|
ports:
|
|
32
32
|
- "${LOKI_PORT}:3100"
|
|
33
33
|
command:
|