Claudenw opened a new issue, #13452:
URL: https://github.com/apache/iceberg/issues/13452

   ### Apache Iceberg version
   
   1.9.1 (latest release)
   
   ### Query engine
   
   None
   
   ### Please describe the bug 🐞
   
   Under Fedora 42 with selinux set to Enforcing the Iceberg integration tests 
may fail because testcontainers can not access the `docker.sock`.
   
   This issue has been reported to test containers team.
   
   When the issue arises it can be overcome by adding `.withLocalCompose(true)` 
to the `ComposeContainer`.
   
   While the issue cited above is specific, the problem that the 
ComposeContainer may not execute correctly using testcontainers internal 
implementation of docker-compose could appear on other systems.
   
   setting selinux to Permissive is a workaround in the above situation.
   
   ```
   sudo setenforce Permissive
   ./gradlew 
:iceberg-kafka-connect:iceberg-kafka-connect-runtime:integrationTest
   sudo setenforce Enforcing
   getenforce
   ```
   
   The last statement in the workaround verifies that the selinux has been set 
back to Enforcing.
   
   My proposal is to add an environment variable flag for testing 
`TEST_LOCAL_COMPOSE` that if set to "true" will add the 
`.withLocalCompose(true)` to the `ComposeContainer`.  
   
   This will impact testing and then only if the flag is set.
   This will not impact delivered code.
   This will impact testing documentation.
   
   
   ### Willingness to contribute
   
   - [x] I can contribute a fix for this bug independently
   - [ ] I would be willing to contribute a fix for this bug with guidance from 
the Iceberg community
   - [ ] I cannot contribute a fix for this bug at this time


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