Enhance ISO build process and documentation for Archipelago
- Updated BUILD-GUIDE.md to clarify instructions for building the Archipelago Auto-Installer ISO, emphasizing the recommended method of building directly on the target server. - Added auto-installation of missing dependencies (xorriso, podman) when running the build script with sudo. - Enhanced the build-auto-installer-iso.sh script to capture container images from the live server, ensuring the ISO includes the same set of applications as the dev server. - Revised deployment documentation to stress the importance of building the Rust backend on the Linux dev server and included new instructions for capturing system-level changes for ISO builds. - Improved UI components and added new bundled applications (BTCPay Server, Mempool Explorer, Nostr Relay, Strfry Relay, Tailscale) to enhance user experience.
This commit is contained in:
+13
-7
@@ -21,6 +21,12 @@
|
||||
# ./build-iso-complete.sh --remote archipelago@192.168.1.228
|
||||
# ./build-iso-complete.sh --local --clean
|
||||
#
|
||||
# Auto-installer from live server: when using --remote HOST, the ISO script
|
||||
# (build-auto-installer-iso.sh) is run with DEV_SERVER=HOST so it captures
|
||||
# backend, frontend, and container images from that host. Alternatively run
|
||||
# DEV_SERVER=archipelago@192.168.1.228 ./image-recipe/build-auto-installer-iso.sh
|
||||
# to build the auto-installer ISO with live capture only (no backend/frontend build).
|
||||
#
|
||||
|
||||
set -e # Exit on error
|
||||
|
||||
@@ -32,7 +38,7 @@ SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
||||
BUILD_DIR="$SCRIPT_DIR/image-recipe/build"
|
||||
BACKEND_SRC="$SCRIPT_DIR/core/archipelago"
|
||||
FRONTEND_SRC="$SCRIPT_DIR/neode-ui"
|
||||
ISO_SCRIPT="$SCRIPT_DIR/image-recipe/build-debian-iso.sh"
|
||||
ISO_SCRIPT="$SCRIPT_DIR/image-recipe/build-auto-installer-iso.sh"
|
||||
|
||||
# Colors for output
|
||||
RED='\033[0;31m'
|
||||
@@ -315,8 +321,8 @@ if [[ "$BUILD_MODE" == "remote" ]]; then
|
||||
|
||||
print_success "Files synced to remote"
|
||||
|
||||
print_info "Running ISO build on remote server..."
|
||||
ssh -t "$REMOTE_HOST" "cd ~/archy/image-recipe && sudo bash build-debian-iso.sh" || {
|
||||
print_info "Running ISO build on remote server (auto-installer, DEV_SERVER=$REMOTE_HOST)..."
|
||||
ssh -t "$REMOTE_HOST" "cd ~/archy/image-recipe && DEV_SERVER=$REMOTE_HOST sudo -E bash build-auto-installer-iso.sh" || {
|
||||
print_error "ISO build failed on remote server"
|
||||
exit 1
|
||||
}
|
||||
@@ -324,7 +330,7 @@ if [[ "$BUILD_MODE" == "remote" ]]; then
|
||||
print_success "ISO built on remote server"
|
||||
|
||||
# Copy ISO back to local
|
||||
ISO_NAME="archipelago-debian-12-x86_64.iso"
|
||||
ISO_NAME="archipelago-installer-x86_64.iso"
|
||||
print_info "Copying ISO back to local machine..."
|
||||
mkdir -p "$SCRIPT_DIR/image-recipe/results"
|
||||
scp "$REMOTE_HOST:~/archy/image-recipe/results/$ISO_NAME" "$SCRIPT_DIR/image-recipe/results/"
|
||||
@@ -333,11 +339,11 @@ if [[ "$BUILD_MODE" == "remote" ]]; then
|
||||
|
||||
else
|
||||
# Local build
|
||||
print_info "Running ISO build locally..."
|
||||
print_info "Running ISO build locally (auto-installer)..."
|
||||
cd "$SCRIPT_DIR/image-recipe"
|
||||
sudo bash build-debian-iso.sh
|
||||
sudo bash build-auto-installer-iso.sh
|
||||
|
||||
ISO_PATH="$SCRIPT_DIR/image-recipe/results/archipelago-debian-12-x86_64.iso"
|
||||
ISO_PATH="$SCRIPT_DIR/image-recipe/results/archipelago-installer-x86_64.iso"
|
||||
fi
|
||||
|
||||
# =============================================================================
|
||||
|
||||
Reference in New Issue
Block a user