You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This directory contains scripts used by the Dockerfile to build SQLPage with cross-compilation support.
4
+
5
+
## Scripts
6
+
7
+
-**`setup-cross-compilation.sh`**: Sets up the cross-compilation environment based on target and build architectures. Handles system dependencies, cross-compiler installation, and libgcc extraction for runtime.
8
+
-**`build-dependencies.sh`**: Builds only the project dependencies for Docker layer caching
9
+
-**`build-project.sh`**: Builds the final SQLPage binary
10
+
11
+
## Usage
12
+
13
+
These scripts are automatically copied and executed by the Dockerfile during the build process. They handle:
14
+
15
+
- Cross-compilation setup for different architectures (amd64, arm64, arm)
16
+
- System dependencies installation
17
+
- Cargo build configuration with appropriate linkers
18
+
- Library extraction for runtime
19
+
20
+
The scripts use temporary files in `/tmp/` to pass configuration between stages and export environment variables for use in subsequent build steps.
0 commit comments