-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathentrypoint.sh
More file actions
executable file
·78 lines (62 loc) · 1.78 KB
/
entrypoint.sh
File metadata and controls
executable file
·78 lines (62 loc) · 1.78 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
#!/bin/bash
# Exit on any error
set -e
# Script directory
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
# Catppuccin Mocha color scheme
# Base colors
BASE="\033[0m"
TEXT="\033[38;2;205;214;244m" # Text
SUBTEXT="\033[38;2;166;173;200m" # Subtext
OVERLAY="\033[38;2;108;112;134m" # Overlay
SURFACE="\033[38;2;49;50;68m" # Surface
BASE_COLOR="\033[38;2;30;30;46m" # Base
MANTLE="\033[38;2;24;24;37m" # Mantle
CRUST="\033[38;2;17;17;27m" # Crust
# Accent colors
RED="\033[38;2;243;139;168m" # Red
GREEN="\033[38;2;166;227;161m" # Green
YELLOW="\033[38;2;249;226;175m" # Yellow
BLUE="\033[38;2;137;180;250m" # Blue
PINK="\033[38;2;245;194;231m" # Pink
MAUVE="\033[38;2;203;166;247m" # Mauve
TEAL="\033[38;2;148;226;213m" # Teal
# Print functions
print_status() {
echo -e "${BLUE}[i]${BASE} $1"
}
print_success() {
echo -e "${GREEN}[✓]${BASE} $1"
}
print_error() {
echo -e "${RED}[✗]${BASE} $1"
}
print_warning() {
echo -e "${YELLOW}[!]${BASE} $1"
}
print_header() {
echo -e "\n${MAUVE}=== $1 ===${BASE}\n"
}
# Function to handle errors
handle_error() {
print_error "$1"
print_warning "Press Enter to continue or Ctrl+C to exit..."
read -r
}
print_header "Starting Docker Environment Setup"
# Change to the dotfiles directory
cd "$HOME/dotfiles"
# Run installation script with --all flag for automated installation
print_status "Running installation script..."
if ! ./install.sh --all --delete-config; then
handle_error "Installation failed"
fi
# Run test script
print_status "Running test script..."
if ! ./test-all.sh; then
handle_error "Tests failed"
fi
print_success "Setup completed successfully!"
print_status "Starting interactive shell..."
# Start an interactive shell
exec /bin/bash