m4sterchain opened a new pull request, #237:
URL: https://github.com/apache/teaclave-trustzone-sdk/pull/237

   ## Core Problem Solved
   Made Docker build dependencies independent of $HOME directory to support 
CI/CD environments (e.g., GitHub Actions) where runtime home directory may 
differ from build-time home.
   
   ## Key Changes by Category
   1. Centralized Rust Environment Configuration (scripts/setup/bootstrap_env)
   Added: RUSTUP_HOME=${TEACLAVE_TOOLCHAIN_BASE}/rustup
   Added: CARGO_HOME=${TEACLAVE_TOOLCHAIN_BASE}/cargo
   Removed: Default OPTEE_VERSION value (moved to Dockerfile for explicit 
control)
   Impact: Single source of truth for Rust toolchain paths, used by both setup 
and runtime
   2. Fixed Dockerfile Build Process (Dockerfile.dev)
   Added: ENV OPTEE_VERSION=4.7.0 for explicit version control
   Changed: RUN commands use bootstrap_env and ${CARGO_HOME}/env instead of 
$HOME/.cargo/env
   Changed: Export RUST_STD_DIR to environment file instead of .profile
   Impact: Build process independent of $HOME, version explicitly controlled
   3. Streamlined Container Entrypoint (scripts/entrypoint.sh)
   Removed: Duplicate environment loading (was loaded in entrypoint AND in 
.profile)
   Removed: Direct sourcing of $HOME/.cargo/env
   Changed: Command execution uses /bin/bash -lc "$*" for proper argument 
handling
   Impact: Environment loads once, cleaner command execution, no duplication
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to