mirror of
				https://github.com/bensuperpc/dockcross.git
				synced 2025-10-31 08:06:23 +01:00 
			
		
		
		
	Merge pull request #887 from drinkcat/move-rust
Speed up dockcross entrypoint
This commit is contained in:
		| @@ -28,6 +28,9 @@ if [[ -n $BUILDER_UID ]] && [[ -n $BUILDER_GID ]]; then | ||||
|     useradd -o -m -g "$BUILDER_GID" -u "$BUILDER_UID" "$BUILDER_USER" 2> /dev/null | ||||
|     export HOME=/home/${BUILDER_USER} | ||||
|     shopt -s dotglob | ||||
|     # Move rustup/cargo directories as they are large, and not needed as root | ||||
|     mv -t $HOME/ /root/.rustup /root/.cargo | ||||
|     # Copy the rest | ||||
|     cp -r /root/* $HOME/ | ||||
|     chown -R $BUILDER_UID:$BUILDER_GID $HOME | ||||
|  | ||||
| @@ -38,7 +41,7 @@ if [[ -n $BUILDER_UID ]] && [[ -n $BUILDER_GID ]]; then | ||||
|  | ||||
|     # Enable passwordless sudo capabilities for the user | ||||
|     chown root:$BUILDER_GID "$(which gosu)" | ||||
|     chmod +s "$(which gosu)"; sync | ||||
|     chmod +s "$(which gosu)" | ||||
|  | ||||
|     # Execute project specific pre execution hook | ||||
|     if [[ -e /work/.dockcross ]]; then | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Matt McCormick
					Matt McCormick