mirror of
https://github.com/trailofbits/buttercup
synced 2026-06-21 14:11:39 +00:00
1d385cf89f
* deployment: just use the value in values.template * ci: disable integration tests and private settings * Download trailofbits cscope, not aixcc-finals one * ci: fix docker login to ghcr.io * Changes to allow non aixcc deployment * buttercup-ui: basic skeleton for a CRS interface * file-server implementation * add ui to k8s * other apis * try to fix k8s * remove some labels * fix ui * small fixes to doc * ui: support for cloning private repos * Add setup scripts for easy deployment * update scripts * update make/readme * small adj * address review * we need 0.0.0.0 for k8s
66 lines
1.4 KiB
Bash
Executable File
66 lines
1.4 KiB
Bash
Executable File
#!/bin/bash
|
|
|
|
# Local Development Setup Script for Buttercup CRS
|
|
# This script automates the setup process for local development
|
|
|
|
set -e
|
|
|
|
# Source common functions
|
|
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|
source "$SCRIPT_DIR/common.sh"
|
|
|
|
echo "🚀 Setting up Buttercup CRS for local development..."
|
|
|
|
# Check if running as root
|
|
check_not_root
|
|
|
|
# Function to setup configuration
|
|
setup_config() {
|
|
setup_config_file
|
|
|
|
# Configure required API keys
|
|
configure_local_api_keys
|
|
|
|
# Configure LangFuse (optional)
|
|
configure_langfuse
|
|
|
|
# Configure OTEL telemetry (optional)
|
|
configure_otel
|
|
}
|
|
|
|
# Function to verify setup
|
|
verify_setup() {
|
|
print_status "Verifying setup..."
|
|
|
|
# Use the main Makefile validation target
|
|
if make validate >/dev/null 2>&1; then
|
|
print_success "Setup verification completed successfully!"
|
|
print_status "Next steps:"
|
|
echo " 1. Run: make deploy-local"
|
|
echo " 2. Test with: make test"
|
|
else
|
|
print_error "Setup verification failed. Run 'make validate' for details."
|
|
exit 1
|
|
fi
|
|
}
|
|
|
|
# Main execution
|
|
main() {
|
|
print_status "Starting local development setup..."
|
|
|
|
install_docker
|
|
install_kubectl
|
|
install_helm
|
|
install_minikube
|
|
install_git_lfs
|
|
install_just
|
|
setup_config
|
|
|
|
verify_setup
|
|
|
|
print_success "Local development setup completed!"
|
|
}
|
|
|
|
# Run main function
|
|
main "$@"
|