forked from devcontainers/features
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcbl_mariner.sh
More file actions
35 lines (28 loc) · 711 Bytes
/
cbl_mariner.sh
File metadata and controls
35 lines (28 loc) · 711 Bytes
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
#!/bin/bash
# Simple test script for cbl_mariner scenario (Moby = true)
# Run with: sudo bash script_cbl_mariner.sh
set -e
echo "=== Testing cbl_mariner scenario (Moby) ==="
# Set environment variables for the scenario
export VERSION="latest"
export MOBY="true"
export AZUREDNSAUTODETECTION="false"
# Source OS info
. /etc/os-release
echo "OS: $ID $VERSION_ID"
# Check package manager
if type tdnf > /dev/null 2>&1; then
echo "Using tdnf"
else
echo "ERROR: tdnf not found"
exit 1
fi
# Validate
if command -v docker > /dev/null 2>&1; then
docker --version
echo "SUCCESS: Docker installed"
else
echo "ERROR: Docker not installed"
exit 1
fi
echo "=== cbl_mariner test passed ==="