mirror of https://github.com/apache/lucene.git
Install ACL package for Solr Docker tests Github action (#2463)
ACL is no longer provided by default in Ubuntu 20.04 Other changes: - Made tests easier to debug - Removed two inconsequential lines from the Dockerfile
This commit is contained in:
parent
fe33a436a0
commit
895deb89e6
|
@ -28,6 +28,8 @@ jobs:
|
|||
uses: actions/setup-java@v1
|
||||
with:
|
||||
java-version: 11
|
||||
- name: Install ACL
|
||||
run: sudo apt-get install acl
|
||||
- name: Grant execute permission for gradlew
|
||||
run: chmod +x gradlew
|
||||
- uses: actions/cache@v2
|
||||
|
|
|
@ -64,8 +64,6 @@ RUN set -ex; \
|
|||
mv /opt/solr/bin/solr.in.cmd /opt/solr/bin/solr.in.cmd.orig; \
|
||||
chmod 0664 /etc/default/solr.in.sh; \
|
||||
mkdir -p -m0770 /var/solr; \
|
||||
sed -i -e "s/\"\$(whoami)\" == \"root\"/\$(id -u) == 0/" /opt/solr/bin/solr; \
|
||||
sed -i -e 's/lsof -PniTCP:/lsof -t -PniTCP:/' /opt/solr/bin/solr; \
|
||||
chown -R "$SOLR_USER:0" /var/solr;
|
||||
|
||||
VOLUME /var/solr
|
||||
|
|
|
@ -200,4 +200,4 @@ task dockerPush(dependsOn: tasks.dockerTag) {
|
|||
// One task to build and tag a Solr docker image
|
||||
task docker {
|
||||
dependsOn tasks.dockerBuild, tasks.dockerTag
|
||||
}
|
||||
}
|
||||
|
|
|
@ -16,7 +16,7 @@ docker volume create "$myvarsolr"
|
|||
|
||||
echo "Running $container_name"
|
||||
docker run \
|
||||
--user 777:0 \
|
||||
--user 7777:0 \
|
||||
-v "$myvarsolr:/var/solr" \
|
||||
--name "$container_name" \
|
||||
-d "$tag" solr-precreate getting-started
|
||||
|
|
|
@ -55,6 +55,7 @@ function wait_for_server_started {
|
|||
while true; do
|
||||
docker logs "$container_name" > "${log}" 2>&1
|
||||
if grep -E -q '(o\.e\.j\.s\.Server Started|Started SocketConnector)' "${log}" ; then
|
||||
docker logs "$container_name"
|
||||
break
|
||||
fi
|
||||
|
||||
|
@ -130,4 +131,4 @@ echo "Test logs and build files can be found at: ${BUILD_DIR}"
|
|||
container_name="test-$(echo "${TEST_NAME}" | tr ':/-' '_')-$(echo "${tag}" | tr ':/-' '_')"
|
||||
|
||||
echo "Cleaning up left-over containers from previous runs"
|
||||
container_cleanup "${container_name}"
|
||||
container_cleanup "${container_name}"
|
||||
|
|
Loading…
Reference in New Issue