Parkerhiphop opened a new pull request, #781:
URL: https://github.com/apache/kafka-site/pull/781

   ### Description
   This PR fixes Docker mount permission errors on SELinux-enabled systems by 
appending the `:z` suffix to volume mounts.
   
   - Modified `Makefile` (build and serve targets)
   - Modified `.github/workflows/build-docker-image.yml`
   
   The `:z` flag instructs Docker to relabel the volume content with the 
correct SELinux context. On non-SELinux systems, this flag is ignored by 
Docker, ensuring backward compatibility.
   
   ### JIRA
   https://issues.apache.org/jira/browse/KAFKA-20039
   
   ### Testing & Verification
   I have verified this change locally to ensure no regression on non-SELinux 
environments.
   
   **Environment:**
   - OS: macOS 14.1.2
   - Docker Version: 28.5.2
   - SELinux: Disabled/Not present
   
   **Steps Performed:**
   1. Ran `make build`: Verified that the static site generates successfully 
without errors.
   2. Ran `make serve`: Verified that the local server starts at 
http://localhost:1313 without permission errors.
   
   **Result:**
   The build passed and the site is accessible, confirming that the `:z` flag 
is safely ignored on non-SELinux systems.
   
   **Screenshots:**
   <img width="1024" height="720" alt="image" 
src="https://github.com/user-attachments/assets/b51b6675-5321-43a7-8605-f5454b5d9d92";
 />
   <img width="1023" height="899" alt="image" 
src="https://github.com/user-attachments/assets/9f7da505-c25e-436b-95c7-7618ad948e27";
 />
   


-- 
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]

Reply via email to