-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.test.yml
More file actions
54 lines (49 loc) · 1.59 KB
/
docker-compose.test.yml
File metadata and controls
54 lines (49 loc) · 1.59 KB
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
version: '3.8'
services:
# Full installation test (Ubuntu 22.04)
dotfiles-test-ubuntu:
build:
context: .
dockerfile: Dockerfile.test
image: dotfiles-test:ubuntu-22.04
container_name: dotfiles-test-ubuntu
volumes:
- .:/home/testuser/dotfiles:ro
command: /bin/bash -c "cd /home/testuser/dotfiles && ./scripts/validate-install.sh && ./scripts/health-check.sh"
# Quick test (faster)
dotfiles-test-quick:
build:
context: .
dockerfile: Dockerfile.test-quick
image: dotfiles-test:quick
container_name: dotfiles-test-quick
volumes:
- .:/home/testuser/dotfiles:ro
command: /bin/bash -c "cd /home/testuser/dotfiles && ./run-tests.sh"
# Interactive testing environment
dotfiles-dev:
build:
context: .
dockerfile: Dockerfile.test
image: dotfiles-test:ubuntu-22.04
container_name: dotfiles-dev
volumes:
- .:/home/testuser/dotfiles
stdin_open: true
tty: true
command: /bin/bash
# Alpine Linux test
dotfiles-test-alpine:
image: alpine:latest
container_name: dotfiles-test-alpine
volumes:
- .:/dotfiles:ro
working_dir: /dotfiles
command: sh -c "apk add --no-cache bash git curl jq && ./run-tests.sh bootstrap configs scripts"
# Debian test
dotfiles-test-debian:
image: debian:bullseye
container_name: dotfiles-test-debian
volumes:
- .:/home/testuser/dotfiles:ro
command: bash -c "apt-get update && apt-get install -y git curl jq sudo && useradd -m testuser && cd /home/testuser/dotfiles && su testuser -c './bootstrap.sh --dry-run && ./run-tests.sh'"