This is an automated email from the ASF dual-hosted git repository. cmarcum pushed a commit to branch task/geb-testcontainers in repository https://gitbox.apache.org/repos/asf/groovy-geb.git
commit 88d5de8cb8854fc53aac506c29172662bcd17b93 Author: Carl Marcum <[email protected]> AuthorDate: Sun Feb 22 11:38:34 2026 -0500 make container interactive and fix circleci user permissions. --- Dockerfile | 2 +- build-in-docker.sh | 7 ++++++- docker-entrypoint.sh | 4 ++++ 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 5baa5cf7..338318c9 100644 --- a/Dockerfile +++ b/Dockerfile @@ -71,4 +71,4 @@ ENV TESTCONTAINERS_DOCKER_SOCKET_OVERRIDE=/var/run/docker.sock COPY --chmod=755 docker-entrypoint.sh /docker-entrypoint.sh ENTRYPOINT ["/docker-entrypoint.sh"] -CMD ["/bin/bash"] +CMD ["bash"] diff --git a/build-in-docker.sh b/build-in-docker.sh index ff1848a0..2b973c4b 100755 --- a/build-in-docker.sh +++ b/build-in-docker.sh @@ -22,9 +22,14 @@ export WORKING_DIRECTORY=`pwd` export HOME_DIRECTORY=`echo ~` export IMAGE="geb-build:latest" +# Remove existing container if it exists +docker rm -f geb-build-container 2>/dev/null || true + docker run --privileged \ + -it \ + --name geb-build-container \ -v ${WORKING_DIRECTORY}:${WORKING_DIRECTORY} \ -v ${HOME_DIRECTORY}/.gradle:/gradle-home \ -w ${WORKING_DIRECTORY} \ ${IMAGE} \ - ./gradlew --no-daemon --max-workers 4 --parallel "$@" \ No newline at end of file + "$@" \ No newline at end of file diff --git a/docker-entrypoint.sh b/docker-entrypoint.sh index 0ef2a51a..75095bff 100644 --- a/docker-entrypoint.sh +++ b/docker-entrypoint.sh @@ -42,5 +42,9 @@ fi # Start Xvfb for headless browser testing Xvfb :99 -screen 1 1280x1024x16 -nolisten tcp > /dev/null 2>&1 & +# Fix docker socket permissions +chown root:docker /var/run/docker.sock +chmod 660 /var/run/docker.sock + # Execute the command as the circleci user exec gosu circleci "$@" \ No newline at end of file
