starrocks/dev-env-ubuntu:latest development environment image. This ensures consistent builds across different host systems by using a standardized Ubuntu environment with all required toolchains and dependencies pre-installed.
🚀 Quick Start
Prerequisites
- Docker installed and running
- At least 8GB RAM available for Docker
- At least 20GB free disk space
Simple Commands
📋 Available Tools
1. build-in-docker.sh - Full-Featured Build Script
The main build script that automatically passes through all build.sh options:
2. docker-dev.sh - Simple Wrapper
Quick commands for common tasks:
3. docker-compose.dev.yml - Docker Compose
For persistent development environments:
🔧 Configuration
Volume Mounts
The Docker scripts automatically mount:- Source code:
$(pwd):/workspace- Your local repository - Maven cache:
~/.m2:/tmp/.m2- Maven dependencies cache for faster builds
Environment Variables
Custom Build Options
All originalbuild.sh options are supported:
📁 Output and Artifacts
Build artifacts are created in theoutput/ directory:
starrocks-build-username-1001-1234567890).
Automatic Extensibility: All unrecognized options are automatically passed through to build.sh, so new build options work without updating the Docker scripts.
🐛 Troubleshooting
Common Issues
-
Permission Issues
-
Out of Memory
-
Docker Image Not Found
-
Build Failures
Debug Mode
For debugging build issues:🔍 Verification
Test that everything works:📊 Performance Tips
- Use parallel builds:
./build-in-docker.sh --be -j $(nproc) - Maven cache: Automatically mounted from
~/.m2for faster dependency resolution - Memory allocation: Increase Docker memory limit for faster builds
- SSD storage: Use SSD for Docker storage driver
- Persistent volumes: Use Docker Compose for additional cache persistence
🤝 Integration with IDEs
VS Code with Dev Containers
Create.devcontainer/devcontainer.json:
IntelliJ IDEA
Use the Docker integration to run builds and tests within the container environment.📚 Additional Resources
- Original build.sh for reference
🆘 Support
If you encounter issues:- Check the troubleshooting section above
- Verify Docker setup and image availability
- Try clean builds with
--cleanflag - Open an issue with build logs and system information