-
Notifications
You must be signed in to change notification settings - Fork 5
feat: add automatic Docker and Docker Compose installation to setup s… #9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 2 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -62,25 +62,91 @@ For detailed documentation, see: docs/SETUP.md | |||||||||||||||||||||||||||||||||||||
| EOF | ||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||
| # Install Docker | ||||||||||||||||||||||||||||||||||||||
| install_docker() { | ||||||||||||||||||||||||||||||||||||||
| print_info "Installing Docker and Docker Compose..." | ||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||
| # Update package index | ||||||||||||||||||||||||||||||||||||||
| sudo apt-get update | ||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||
| # Install required packages | ||||||||||||||||||||||||||||||||||||||
| sudo apt-get install -y \ | ||||||||||||||||||||||||||||||||||||||
| ca-certificates \ | ||||||||||||||||||||||||||||||||||||||
| curl \ | ||||||||||||||||||||||||||||||||||||||
| gnupg \ | ||||||||||||||||||||||||||||||||||||||
| lsb-release | ||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||
| # Add Docker's official GPG key | ||||||||||||||||||||||||||||||||||||||
| sudo mkdir -m 0755 -p /etc/apt/keyrings | ||||||||||||||||||||||||||||||||||||||
| curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg | ||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||
|
Comment on lines
+93
to
+94
|
||||||||||||||||||||||||||||||||||||||
| curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg | |
| print_info "Downloading Docker's GPG key..." | |
| curl -fsSL https://download.docker.com/linux/ubuntu/gpg -o /tmp/docker.gpg | |
| print_info "Verifying Docker's GPG key fingerprint..." | |
| EXPECTED_FINGERPRINT="9DC8 5822 9FC7 DD38 854A E2D8 8D81 803C 0EBF CD88" | |
| DOWNLOADED_FINGERPRINT=$(gpg --with-fingerprint /tmp/docker.gpg | grep -A1 "pub" | tail -n1 | awk '{print $1, $2, $3, $4, $5, $6, $7, $8, $9, $10}') | |
| if [ "$DOWNLOADED_FINGERPRINT" != "$EXPECTED_FINGERPRINT" ]; then | |
| print_error "Docker's GPG key fingerprint verification failed!" | |
| exit 1 | |
| fi | |
| print_success "Docker's GPG key fingerprint verified successfully!" | |
| sudo mkdir -m 0755 -p /etc/apt/keyrings | |
| sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg /tmp/docker.gpg | |
Copilot
AI
Jul 13, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Invalid syntax: the command should be 'docker compose -f docker-compose.prod.yml up -d' with hyphens in the filename, not 'docker compose -f docker compose.prod.yml'.
| docker compose -f docker compose.prod.yml up -d | |
| docker compose -f docker-compose.prod.yml up -d |
Copilot
AI
Jul 13, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Invalid syntax: the filenames should use hyphens, not spaces. Should be 'docker compose -f docker-compose.yml -f docker-compose.genai.yml --profile setup run --rm model-downloader'.
Copilot
AI
Jul 13, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Invalid syntax: the filenames should use hyphens, not spaces. Should be 'docker compose -f docker-compose.yml -f docker-compose.genai.yml up -d'.
Copilot
AI
Jul 13, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Invalid syntax: the filenames should use hyphens, not spaces. Should be 'docker compose -f docker-compose.yml -f docker-compose.genai.yml down'.
| docker compose -f docker compose.yml -f docker compose.genai.yml down | |
| docker compose -f docker-compose.yml -f docker-compose.genai.yml down |
Uh oh!
There was an error while loading. Please reload this page.