-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild-docker.sh
More file actions
executable file
·53 lines (43 loc) · 1.4 KB
/
build-docker.sh
File metadata and controls
executable file
·53 lines (43 loc) · 1.4 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
#!/bin/bash
# Wrapper script to build GPU Pro using Docker
# Works on any platform (Linux, macOS, Windows with WSL)
set -e
# Colors
BLUE='\033[0;34m'
GREEN='\033[0;32m'
YELLOW='\033[1;33m'
NC='\033[0m'
echo -e "${BLUE}════════════════════════════════════════${NC}"
echo -e "${BLUE} GPU Pro - Docker Build${NC}"
echo -e "${BLUE}════════════════════════════════════════${NC}"
echo
# Check if Docker is installed
if ! command -v docker &> /dev/null; then
echo -e "${YELLOW}Error: Docker is not installed${NC}"
echo "Please install Docker from: https://docs.docker.com/get-docker/"
exit 1
fi
# Check if Docker daemon is running
if ! docker info &> /dev/null; then
echo -e "${YELLOW}Error: Docker daemon is not running${NC}"
echo "Please start Docker and try again"
exit 1
fi
echo -e "${GREEN}✓${NC} Docker is ready"
echo
# Build the builder image
echo -e "${BLUE}Building Docker image...${NC}"
docker-compose build builder
echo
echo -e "${BLUE}Starting cross-platform build...${NC}"
echo
# Run the build
docker-compose run --rm builder
echo
echo -e "${GREEN}✓ Build complete!${NC}"
echo
echo -e "${BLUE}Built binaries are in:${NC} ./dist/"
echo
echo -e "${BLUE}To clean up Docker resources:${NC}"
echo " docker-compose down --volumes"
echo