-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.sh
More file actions
22 lines (16 loc) · 736 Bytes
/
Copy pathsetup.sh
File metadata and controls
22 lines (16 loc) · 736 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/bash
set -e
echo "======================================"
echo " Setting up Teleport-Env Testbed"
echo "======================================"
echo "1. Cleaning up old container..."
sudo docker rm -f teleport-testbed 2>/dev/null || true
echo "2. Building Docker image..."
sudo docker build -t teleport-testbed-image -f Dockerfile.testbed .
echo "3. Starting privileged container..."
sudo docker run --init -d --name teleport-testbed --privileged \
--cap-add=SYS_ADMIN --cap-add=CHECKPOINT_RESTORE \
-v $(pwd):/src teleport-testbed-image sleep infinity
echo "4. Initializing native sandbox mount..."
sudo docker exec teleport-testbed mkdir -p /tmp/sandbox
echo "✅ Setup Complete. You can now run the benchmarks."