Apache Solr open-source search software
SOLR-15533: Add license headers to docker module (#215)
Houston Putmanee6d01af3b92
diff --git a/solr/docker/example/docker-compose.yml b/solr/docker/example/docker-compose.ymlindex e2b59340445..dbb78a8e98b 100644--- a/solr/docker/example/docker-compose.yml+++ b/solr/docker/example/docker-compose.yml@@ -1,3 +1,18 @@+# Licensed to the Apache Software Foundation (ASF) under one or more+# contributor license agreements. See the NOTICE file distributed with+# this work for additional information regarding copyright ownership.+# The ASF licenses this file to You under the Apache License, Version 2.0+# (the "License"); you may not use this file except in compliance with+# the License. You may obtain a copy of the License at+#+# http://www.apache.org/licenses/LICENSE-2.0+#+# Unless required by applicable law or agreed to in writing, software+# distributed under the License is distributed on an "AS IS" BASIS,+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+# See the License for the specific language governing permissions and+# limitations under the License.+version: '3'services:solr:diff --git a/solr/docker/example/precreate-collection.sh b/solr/docker/example/precreate-collection.shindex a6659667b88..eb04ad87bd0 100644--- a/solr/docker/example/precreate-collection.sh+++ b/solr/docker/example/precreate-collection.sh@@ -1,5 +1,19 @@#!/bin/bash+# Licensed to the Apache Software Foundation (ASF) under one or more+# contributor license agreements. See the NOTICE file distributed with+# this work for additional information regarding copyright ownership.+# The ASF licenses this file to You under the Apache License, Version 2.0+# (the "License"); you may not use this file except in compliance with+# the License. You may obtain a copy of the License at#+# http://www.apache.org/licenses/LICENSE-2.0+#+# Unless required by applicable law or agreed to in writing, software+# distributed under the License is distributed on an "AS IS" BASIS,+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+# See the License for the specific language governing permissions and+# limitations under the License.+# A script that creates a core by copying config before starting solr.## To use this, map this file into your container's docker-entrypoint-initdb.d directory:diff --git a/solr/docker/example/set-heap.sh b/solr/docker/example/set-heap.shindex 5755b0e63c9..f1b4052a70e 100755--- a/solr/docker/example/set-heap.sh+++ b/solr/docker/example/set-heap.sh@@ -1,5 +1,19 @@#!/bin/bash+# Licensed to the Apache Software Foundation (ASF) under one or more+# contributor license agreements. See the NOTICE file distributed with+# this work for additional information regarding copyright ownership.+# The ASF licenses this file to You under the Apache License, Version 2.0+# (the "License"); you may not use this file except in compliance with+# the License. You may obtain a copy of the License at#+# http://www.apache.org/licenses/LICENSE-2.0+#+# Unless required by applicable law or agreed to in writing, software+# distributed under the License is distributed on an "AS IS" BASIS,+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+# See the License for the specific language governing permissions and+# limitations under the License.+# This script is mainly an illustration for the docker-entrypoint-initdb.d extension mechanism.# Run it with e.g.:#diff --git a/solr/docker/scripts/docker-entrypoint.sh b/solr/docker/scripts/docker-entrypoint.shindex 1a6a3ee2833..24247039c00 100755--- a/solr/docker/scripts/docker-entrypoint.sh+++ b/solr/docker/scripts/docker-entrypoint.sh@@ -1,5 +1,19 @@#!/bin/bash+# Licensed to the Apache Software Foundation (ASF) under one or more+# contributor license agreements. See the NOTICE file distributed with+# this work for additional information regarding copyright ownership.+# The ASF licenses this file to You under the Apache License, Version 2.0+# (the "License"); you may not use this file except in compliance with+# the License. You may obtain a copy of the License at#+# http://www.apache.org/licenses/LICENSE-2.0+#+# Unless required by applicable law or agreed to in writing, software+# distributed under the License is distributed on an "AS IS" BASIS,+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+# See the License for the specific language governing permissions and+# limitations under the License.+# docker-entrypoint for Solr dockerset -ediff --git a/solr/docker/scripts/init-var-solr b/solr/docker/scripts/init-var-solrindex d1d63255dcb..64f73a477cc 100755--- a/solr/docker/scripts/init-var-solr+++ b/solr/docker/scripts/init-var-solr@@ -1,5 +1,19 @@#!/bin/bash+# Licensed to the Apache Software Foundation (ASF) under one or more+# contributor license agreements. See the NOTICE file distributed with+# this work for additional information regarding copyright ownership.+# The ASF licenses this file to You under the Apache License, Version 2.0+# (the "License"); you may not use this file except in compliance with+# the License. You may obtain a copy of the License at#+# http://www.apache.org/licenses/LICENSE-2.0+#+# Unless required by applicable law or agreed to in writing, software+# distributed under the License is distributed on an "AS IS" BASIS,+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+# See the License for the specific language governing permissions and+# limitations under the License.+# A helper script to initialise an empty $DIR# If you use volumes then Docker will copy the $DIR content from the container to the volume.# If you use bind mounts, that does not happen, so we do it here.diff --git a/solr/docker/scripts/precreate-core b/solr/docker/scripts/precreate-coreindex bca0f480e2a..e8f2d6d1250 100755--- a/solr/docker/scripts/precreate-core+++ b/solr/docker/scripts/precreate-core@@ -1,5 +1,19 @@#!/bin/bash+# Licensed to the Apache Software Foundation (ASF) under one or more+# contributor license agreements. See the NOTICE file distributed with+# this work for additional information regarding copyright ownership.+# The ASF licenses this file to You under the Apache License, Version 2.0+# (the "License"); you may not use this file except in compliance with+# the License. You may obtain a copy of the License at#+# http://www.apache.org/licenses/LICENSE-2.0+#+# Unless required by applicable law or agreed to in writing, software+# distributed under the License is distributed on an "AS IS" BASIS,+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+# See the License for the specific language governing permissions and+# limitations under the License.+# Create a core on disk# arguments are: corename configdirdiff --git a/solr/docker/scripts/run-initdb b/solr/docker/scripts/run-initdbindex 5f250c945bc..361470c9c2d 100755--- a/solr/docker/scripts/run-initdb+++ b/solr/docker/scripts/run-initdb@@ -1,5 +1,19 @@#!/bin/bash+# Licensed to the Apache Software Foundation (ASF) under one or more+# contributor license agreements. See the NOTICE file distributed with+# this work for additional information regarding copyright ownership.+# The ASF licenses this file to You under the Apache License, Version 2.0+# (the "License"); you may not use this file except in compliance with+# the License. You may obtain a copy of the License at#+# http://www.apache.org/licenses/LICENSE-2.0+#+# Unless required by applicable law or agreed to in writing, software+# distributed under the License is distributed on an "AS IS" BASIS,+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+# See the License for the specific language governing permissions and+# limitations under the License.+# Run the init-solr-home script and source any '.sh' scripts in# /docker-entrypoint-initdb.d.# This script is sourced by some of the solr-* commands, so thatdiff --git a/solr/docker/scripts/solr-create b/solr/docker/scripts/solr-createindex dbd2181da5e..e0d9c0ee6ec 100755--- a/solr/docker/scripts/solr-create+++ b/solr/docker/scripts/solr-create@@ -1,5 +1,19 @@#!/bin/bash+# Licensed to the Apache Software Foundation (ASF) under one or more+# contributor license agreements. See the NOTICE file distributed with+# this work for additional information regarding copyright ownership.+# The ASF licenses this file to You under the Apache License, Version 2.0+# (the "License"); you may not use this file except in compliance with+# the License. You may obtain a copy of the License at#+# http://www.apache.org/licenses/LICENSE-2.0+#+# Unless required by applicable law or agreed to in writing, software+# distributed under the License is distributed on an "AS IS" BASIS,+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+# See the License for the specific language governing permissions and+# limitations under the License.+# This script starts Solr on localhost, creates a core with "solr create",# stops Solr, and then starts Solr as normal.# Any arguments are passed to the "solr create".diff --git a/solr/docker/scripts/solr-demo b/solr/docker/scripts/solr-demoindex 4217d7d12b6..1fe3917a1c1 100755--- a/solr/docker/scripts/solr-demo+++ b/solr/docker/scripts/solr-demo@@ -1,5 +1,19 @@#!/bin/bash+# Licensed to the Apache Software Foundation (ASF) under one or more+# contributor license agreements. See the NOTICE file distributed with+# this work for additional information regarding copyright ownership.+# The ASF licenses this file to You under the Apache License, Version 2.0+# (the "License"); you may not use this file except in compliance with+# the License. You may obtain a copy of the License at#+# http://www.apache.org/licenses/LICENSE-2.0+#+# Unless required by applicable law or agreed to in writing, software+# distributed under the License is distributed on an "AS IS" BASIS,+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+# See the License for the specific language governing permissions and+# limitations under the License.+# Configure a Solr demo and then run solr in the foregroundset -euo pipefaildiff --git a/solr/docker/scripts/solr-fg b/solr/docker/scripts/solr-fgindex 13d26234106..658207847a2 100755--- a/solr/docker/scripts/solr-fg+++ b/solr/docker/scripts/solr-fg@@ -1,5 +1,19 @@#!/bin/bash+# Licensed to the Apache Software Foundation (ASF) under one or more+# contributor license agreements. See the NOTICE file distributed with+# this work for additional information regarding copyright ownership.+# The ASF licenses this file to You under the Apache License, Version 2.0+# (the "License"); you may not use this file except in compliance with+# the License. You may obtain a copy of the License at#+# http://www.apache.org/licenses/LICENSE-2.0+#+# Unless required by applicable law or agreed to in writing, software+# distributed under the License is distributed on an "AS IS" BASIS,+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+# See the License for the specific language governing permissions and+# limitations under the License.+# start solr in the foregroundset -ediff --git a/solr/docker/scripts/solr-foreground b/solr/docker/scripts/solr-foregroundindex d91a8721ab0..768638bf57e 100755--- a/solr/docker/scripts/solr-foreground+++ b/solr/docker/scripts/solr-foreground@@ -1,5 +1,19 @@#!/bin/bash+# Licensed to the Apache Software Foundation (ASF) under one or more+# contributor license agreements. See the NOTICE file distributed with+# this work for additional information regarding copyright ownership.+# The ASF licenses this file to You under the Apache License, Version 2.0+# (the "License"); you may not use this file except in compliance with+# the License. You may obtain a copy of the License at#+# http://www.apache.org/licenses/LICENSE-2.0+#+# Unless required by applicable law or agreed to in writing, software+# distributed under the License is distributed on an "AS IS" BASIS,+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+# See the License for the specific language governing permissions and+# limitations under the License.+# Run the initdb, then start solr in the foregroundset -ediff --git a/solr/docker/scripts/solr-precreate b/solr/docker/scripts/solr-precreateindex 701dcd12894..7b60496b005 100755--- a/solr/docker/scripts/solr-precreate+++ b/solr/docker/scripts/solr-precreate@@ -1,5 +1,19 @@#!/bin/bash+# Licensed to the Apache Software Foundation (ASF) under one or more+# contributor license agreements. See the NOTICE file distributed with+# this work for additional information regarding copyright ownership.+# The ASF licenses this file to You under the Apache License, Version 2.0+# (the "License"); you may not use this file except in compliance with+# the License. You may obtain a copy of the License at#+# http://www.apache.org/licenses/LICENSE-2.0+#+# Unless required by applicable law or agreed to in writing, software+# distributed under the License is distributed on an "AS IS" BASIS,+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+# See the License for the specific language governing permissions and+# limitations under the License.+# Create a core on disk and then run solr in the foreground# arguments are: corename configdir# To simply create a core:diff --git a/solr/docker/scripts/start-local-solr b/solr/docker/scripts/start-local-solrindex 309fc9443d5..633fca3d686 100755--- a/solr/docker/scripts/start-local-solr+++ b/solr/docker/scripts/start-local-solr@@ -1,4 +1,19 @@#!/bin/bash+# Licensed to the Apache Software Foundation (ASF) under one or more+# contributor license agreements. See the NOTICE file distributed with+# this work for additional information regarding copyright ownership.+# The ASF licenses this file to You under the Apache License, Version 2.0+# (the "License"); you may not use this file except in compliance with+# the License. You may obtain a copy of the License at+#+# http://www.apache.org/licenses/LICENSE-2.0+#+# Unless required by applicable law or agreed to in writing, software+# distributed under the License is distributed on an "AS IS" BASIS,+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+# See the License for the specific language governing permissions and+# limitations under the License.+# configure Solr to run on the local interface, and start it running in the backgroundset -euo pipefaildiff --git a/solr/docker/scripts/stop-local-solr b/solr/docker/scripts/stop-local-solrindex a0c77423c2f..9ad59f65496 100755--- a/solr/docker/scripts/stop-local-solr+++ b/solr/docker/scripts/stop-local-solr@@ -1,4 +1,19 @@#!/bin/bash+# Licensed to the Apache Software Foundation (ASF) under one or more+# contributor license agreements. See the NOTICE file distributed with+# this work for additional information regarding copyright ownership.+# The ASF licenses this file to You under the Apache License, Version 2.0+# (the "License"); you may not use this file except in compliance with+# the License. You may obtain a copy of the License at+#+# http://www.apache.org/licenses/LICENSE-2.0+#+# Unless required by applicable law or agreed to in writing, software+# distributed under the License is distributed on an "AS IS" BASIS,+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+# See the License for the specific language governing permissions and+# limitations under the License.+# stop the background Solr, and restore the normal configurationset -ediff --git a/solr/docker/scripts/wait-for-solr.sh b/solr/docker/scripts/wait-for-solr.shindex aa9e15ec8f0..147cc3fd071 100755--- a/solr/docker/scripts/wait-for-solr.sh+++ b/solr/docker/scripts/wait-for-solr.sh@@ -1,5 +1,19 @@#!/bin/bash+# Licensed to the Apache Software Foundation (ASF) under one or more+# contributor license agreements. See the NOTICE file distributed with+# this work for additional information regarding copyright ownership.+# The ASF licenses this file to You under the Apache License, Version 2.0+# (the "License"); you may not use this file except in compliance with+# the License. You may obtain a copy of the License at#+# http://www.apache.org/licenses/LICENSE-2.0+#+# Unless required by applicable law or agreed to in writing, software+# distributed under the License is distributed on an "AS IS" BASIS,+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+# See the License for the specific language governing permissions and+# limitations under the License.+# A helper script to wait for solr## Usage: wait-for-solr.sh [--max-attempts count] [--wait-seconds seconds] [--solr-url url]diff --git a/solr/docker/scripts/wait-for-zookeeper.sh b/solr/docker/scripts/wait-for-zookeeper.shindex 82366a4b0f5..88e24a8704d 100755--- a/solr/docker/scripts/wait-for-zookeeper.sh+++ b/solr/docker/scripts/wait-for-zookeeper.sh@@ -1,5 +1,19 @@#!/bin/bash+# Licensed to the Apache Software Foundation (ASF) under one or more+# contributor license agreements. See the NOTICE file distributed with+# this work for additional information regarding copyright ownership.+# The ASF licenses this file to You under the Apache License, Version 2.0+# (the "License"); you may not use this file except in compliance with+# the License. You may obtain a copy of the License at#+# http://www.apache.org/licenses/LICENSE-2.0+#+# Unless required by applicable law or agreed to in writing, software+# distributed under the License is distributed on an "AS IS" BASIS,+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+# See the License for the specific language governing permissions and+# limitations under the License.+# A helper script to wait for ZooKeeper## This script waits for a ZooKeeper master to appear.diff --git a/solr/docker/templates/Dockerfile.body.template b/solr/docker/templates/Dockerfile.body.templateindex 9f52e600cd0..1cb9a0ef026 100644--- a/solr/docker/templates/Dockerfile.body.template+++ b/solr/docker/templates/Dockerfile.body.template@@ -1,3 +1,18 @@+#-# Licensed to the Apache Software Foundation (ASF) under one or more+#-# contributor license agreements. See the NOTICE file distributed with+#-# this work for additional information regarding copyright ownership.+#-# The ASF licenses this file to You under the Apache License, Version 2.0+#-# (the "License"); you may not use this file except in compliance with+#-# the License. You may obtain a copy of the License at+#-#+#-# http://www.apache.org/licenses/LICENSE-2.0+#-#+#-# Unless required by applicable law or agreed to in writing, software+#-# distributed under the License is distributed on an "AS IS" BASIS,+#-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+#-# See the License for the specific language governing permissions and+#-# limitations under the License.+#-##-# This template is used as the primary body of both "local" and "official" Apache Solr Dockerfiles.#-# It contains everything that should be "common" between both files.diff --git a/solr/docker/templates/Dockerfile.local.header.template b/solr/docker/templates/Dockerfile.local.header.templateindex a9173d68511..33225e0fb2e 100644--- a/solr/docker/templates/Dockerfile.local.header.template+++ b/solr/docker/templates/Dockerfile.local.header.template@@ -1,3 +1,18 @@+# Licensed to the Apache Software Foundation (ASF) under one or more+# contributor license agreements. See the NOTICE file distributed with+# this work for additional information regarding copyright ownership.+# The ASF licenses this file to You under the Apache License, Version 2.0+# (the "License"); you may not use this file except in compliance with+# the License. You may obtain a copy of the License at+#+# http://www.apache.org/licenses/LICENSE-2.0+#+# Unless required by applicable law or agreed to in writing, software+# distributed under the License is distributed on an "AS IS" BASIS,+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+# See the License for the specific language governing permissions and+# limitations under the License.+#-##-# This template is used as the header of "local" Apache Solr Dockerfiles.#-#diff --git a/solr/docker/templates/Dockerfile.official.header.template b/solr/docker/templates/Dockerfile.official.header.templateindex a342547a630..a91d088b692 100644--- a/solr/docker/templates/Dockerfile.official.header.template+++ b/solr/docker/templates/Dockerfile.official.header.template@@ -1,3 +1,18 @@+# Licensed to the Apache Software Foundation (ASF) under one or more+# contributor license agreements. See the NOTICE file distributed with+# this work for additional information regarding copyright ownership.+# The ASF licenses this file to You under the Apache License, Version 2.0+# (the "License"); you may not use this file except in compliance with+# the License. You may obtain a copy of the License at+#+# http://www.apache.org/licenses/LICENSE-2.0+#+# Unless required by applicable law or agreed to in writing, software+# distributed under the License is distributed on an "AS IS" BASIS,+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+# See the License for the specific language governing permissions and+# limitations under the License.+#-##-# This template is used as the header of "official" Apache Solr Dockerfiles.#-#diff --git a/solr/docker/tests/README.md b/solr/docker/tests/README.mddeleted file mode 100644index abb3a7012b3..00000000000--- a/solr/docker/tests/README.md+++ /dev/null@@ -1,6 +0,0 @@--To run tests, specify a fully-versioned image tag:--```-./test.sh apache/solr:6.6.0-```diff --git a/solr/docker/tests/cases/create_bad_core/test.sh b/solr/docker/tests/cases/create_bad_core/test.shindex 8f30f9ce2bb..d32b9cc8656 100755--- a/solr/docker/tests/cases/create_bad_core/test.sh+++ b/solr/docker/tests/cases/create_bad_core/test.sh@@ -1,5 +1,19 @@#!/bin/bash+# Licensed to the Apache Software Foundation (ASF) under one or more+# contributor license agreements. See the NOTICE file distributed with+# this work for additional information regarding copyright ownership.+# The ASF licenses this file to You under the Apache License, Version 2.0+# (the "License"); you may not use this file except in compliance with+# the License. You may obtain a copy of the License at#+# http://www.apache.org/licenses/LICENSE-2.0+#+# Unless required by applicable law or agreed to in writing, software+# distributed under the License is distributed on an "AS IS" BASIS,+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+# See the License for the specific language governing permissions and+# limitations under the License.+set -euo pipefailTEST_DIR="${TEST_DIR:-$(dirname -- "${BASH_SOURCE[0]}")}"diff --git a/solr/docker/tests/cases/create_core/test.sh b/solr/docker/tests/cases/create_core/test.shindex 29b3275f019..37e74b855cf 100755--- a/solr/docker/tests/cases/create_core/test.sh+++ b/solr/docker/tests/cases/create_core/test.sh@@ -1,5 +1,19 @@#!/bin/bash+# Licensed to the Apache Software Foundation (ASF) under one or more+# contributor license agreements. See the NOTICE file distributed with+# this work for additional information regarding copyright ownership.+# The ASF licenses this file to You under the Apache License, Version 2.0+# (the "License"); you may not use this file except in compliance with+# the License. You may obtain a copy of the License at#+# http://www.apache.org/licenses/LICENSE-2.0+#+# Unless required by applicable law or agreed to in writing, software+# distributed under the License is distributed on an "AS IS" BASIS,+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+# See the License for the specific language governing permissions and+# limitations under the License.+set -euo pipefailTEST_DIR="${TEST_DIR:-$(dirname -- "${BASH_SOURCE[0]}")}"diff --git a/solr/docker/tests/cases/create_core_exec/test.sh b/solr/docker/tests/cases/create_core_exec/test.shindex 3b5be5bfd05..872d2ee3563 100755--- a/solr/docker/tests/cases/create_core_exec/test.sh+++ b/solr/docker/tests/cases/create_core_exec/test.sh@@ -1,5 +1,19 @@#!/bin/bash+# Licensed to the Apache Software Foundation (ASF) under one or more+# contributor license agreements. See the NOTICE file distributed with+# this work for additional information regarding copyright ownership.+# The ASF licenses this file to You under the Apache License, Version 2.0+# (the "License"); you may not use this file except in compliance with+# the License. You may obtain a copy of the License at#+# http://www.apache.org/licenses/LICENSE-2.0+#+# Unless required by applicable law or agreed to in writing, software+# distributed under the License is distributed on an "AS IS" BASIS,+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+# See the License for the specific language governing permissions and+# limitations under the License.+set -euo pipefailTEST_DIR="${TEST_DIR:-$(dirname -- "${BASH_SOURCE[0]}")}"diff --git a/solr/docker/tests/cases/create_core_randomuser_rootgroup/test.sh b/solr/docker/tests/cases/create_core_randomuser_rootgroup/test.shindex ace6e5410cc..3a48e78b279 100755--- a/solr/docker/tests/cases/create_core_randomuser_rootgroup/test.sh+++ b/solr/docker/tests/cases/create_core_randomuser_rootgroup/test.sh@@ -1,7 +1,21 @@#!/bin/bash+# Licensed to the Apache Software Foundation (ASF) under one or more+# contributor license agreements. See the NOTICE file distributed with+# this work for additional information regarding copyright ownership.+# The ASF licenses this file to You under the Apache License, Version 2.0+# (the "License"); you may not use this file except in compliance with+# the License. You may obtain a copy of the License at#-# Simulate openshift by running with a random uid+# http://www.apache.org/licenses/LICENSE-2.0#+# Unless required by applicable law or agreed to in writing, software+# distributed under the License is distributed on an "AS IS" BASIS,+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+# See the License for the specific language governing permissions and+# limitations under the License.++# Simulate openshift by running with a random uid+set -euo pipefailTEST_DIR="${TEST_DIR:-$(dirname -- "${BASH_SOURCE[0]}")}"diff --git a/solr/docker/tests/cases/demo-tini/test.sh b/solr/docker/tests/cases/demo-tini/test.shindex 8852eac5dfe..fcc7f9163e9 100755--- a/solr/docker/tests/cases/demo-tini/test.sh+++ b/solr/docker/tests/cases/demo-tini/test.sh@@ -1,5 +1,19 @@#!/bin/bash+# Licensed to the Apache Software Foundation (ASF) under one or more+# contributor license agreements. See the NOTICE file distributed with+# this work for additional information regarding copyright ownership.+# The ASF licenses this file to You under the Apache License, Version 2.0+# (the "License"); you may not use this file except in compliance with+# the License. You may obtain a copy of the License at#+# http://www.apache.org/licenses/LICENSE-2.0+#+# Unless required by applicable law or agreed to in writing, software+# distributed under the License is distributed on an "AS IS" BASIS,+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+# See the License for the specific language governing permissions and+# limitations under the License.+set -euo pipefailTEST_DIR="${TEST_DIR:-$(dirname -- "${BASH_SOURCE[0]}")}"diff --git a/solr/docker/tests/cases/demo/test.sh b/solr/docker/tests/cases/demo/test.shindex 86c26f1c858..d0438903f30 100755--- a/solr/docker/tests/cases/demo/test.sh+++ b/solr/docker/tests/cases/demo/test.sh@@ -1,5 +1,19 @@#!/bin/bash+# Licensed to the Apache Software Foundation (ASF) under one or more+# contributor license agreements. See the NOTICE file distributed with+# this work for additional information regarding copyright ownership.+# The ASF licenses this file to You under the Apache License, Version 2.0+# (the "License"); you may not use this file except in compliance with+# the License. You may obtain a copy of the License at#+# http://www.apache.org/licenses/LICENSE-2.0+#+# Unless required by applicable law or agreed to in writing, software+# distributed under the License is distributed on an "AS IS" BASIS,+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+# See the License for the specific language governing permissions and+# limitations under the License.+set -euo pipefailTEST_DIR="${TEST_DIR:-$(dirname -- "${BASH_SOURCE[0]}")}"diff --git a/solr/docker/tests/cases/empty-varsolr-dir-ramdomuser-rootgroup/test.sh b/solr/docker/tests/cases/empty-varsolr-dir-ramdomuser-rootgroup/test.shindex c27edc27c1a..08755def450 100755--- a/solr/docker/tests/cases/empty-varsolr-dir-ramdomuser-rootgroup/test.sh+++ b/solr/docker/tests/cases/empty-varsolr-dir-ramdomuser-rootgroup/test.sh@@ -1,5 +1,19 @@#!/bin/bash+# Licensed to the Apache Software Foundation (ASF) under one or more+# contributor license agreements. See the NOTICE file distributed with+# this work for additional information regarding copyright ownership.+# The ASF licenses this file to You under the Apache License, Version 2.0+# (the "License"); you may not use this file except in compliance with+# the License. You may obtain a copy of the License at#+# http://www.apache.org/licenses/LICENSE-2.0+#+# Unless required by applicable law or agreed to in writing, software+# distributed under the License is distributed on an "AS IS" BASIS,+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+# See the License for the specific language governing permissions and+# limitations under the License.+set -euo pipefailTEST_DIR="${TEST_DIR:-$(dirname -- "${BASH_SOURCE[0]}")}"diff --git a/solr/docker/tests/cases/empty-varsolr-dir-solr/test.sh b/solr/docker/tests/cases/empty-varsolr-dir-solr/test.shindex fd74a314943..1c0c328d111 100755--- a/solr/docker/tests/cases/empty-varsolr-dir-solr/test.sh+++ b/solr/docker/tests/cases/empty-varsolr-dir-solr/test.sh@@ -1,5 +1,19 @@#!/bin/bash+# Licensed to the Apache Software Foundation (ASF) under one or more+# contributor license agreements. See the NOTICE file distributed with+# this work for additional information regarding copyright ownership.+# The ASF licenses this file to You under the Apache License, Version 2.0+# (the "License"); you may not use this file except in compliance with+# the License. You may obtain a copy of the License at#+# http://www.apache.org/licenses/LICENSE-2.0+#+# Unless required by applicable law or agreed to in writing, software+# distributed under the License is distributed on an "AS IS" BASIS,+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+# See the License for the specific language governing permissions and+# limitations under the License.+set -euo pipefailTEST_DIR="${TEST_DIR:-$(dirname -- "${BASH_SOURCE[0]}")}"diff --git a/solr/docker/tests/cases/empty-varsolr-dir-user/test.sh b/solr/docker/tests/cases/empty-varsolr-dir-user/test.shindex 8d9d0495dd1..31fc02bedd0 100755--- a/solr/docker/tests/cases/empty-varsolr-dir-user/test.sh+++ b/solr/docker/tests/cases/empty-varsolr-dir-user/test.sh@@ -1,5 +1,19 @@#!/bin/bash+# Licensed to the Apache Software Foundation (ASF) under one or more+# contributor license agreements. See the NOTICE file distributed with+# this work for additional information regarding copyright ownership.+# The ASF licenses this file to You under the Apache License, Version 2.0+# (the "License"); you may not use this file except in compliance with+# the License. You may obtain a copy of the License at#+# http://www.apache.org/licenses/LICENSE-2.0+#+# Unless required by applicable law or agreed to in writing, software+# distributed under the License is distributed on an "AS IS" BASIS,+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+# See the License for the specific language governing permissions and+# limitations under the License.+set -euo pipefailTEST_DIR="${TEST_DIR:-$(dirname -- "${BASH_SOURCE[0]}")}"diff --git a/solr/docker/tests/cases/empty-varsolr-vol-ramdomuser-rootgroup/test.sh b/solr/docker/tests/cases/empty-varsolr-vol-ramdomuser-rootgroup/test.shindex 3a07cf30373..6f42c6276b3 100755--- a/solr/docker/tests/cases/empty-varsolr-vol-ramdomuser-rootgroup/test.sh+++ b/solr/docker/tests/cases/empty-varsolr-vol-ramdomuser-rootgroup/test.sh@@ -1,5 +1,19 @@#!/bin/bash+# Licensed to the Apache Software Foundation (ASF) under one or more+# contributor license agreements. See the NOTICE file distributed with+# this work for additional information regarding copyright ownership.+# The ASF licenses this file to You under the Apache License, Version 2.0+# (the "License"); you may not use this file except in compliance with+# the License. You may obtain a copy of the License at#+# http://www.apache.org/licenses/LICENSE-2.0+#+# Unless required by applicable law or agreed to in writing, software+# distributed under the License is distributed on an "AS IS" BASIS,+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+# See the License for the specific language governing permissions and+# limitations under the License.+set -euo pipefailTEST_DIR="${TEST_DIR:-$(dirname -- "${BASH_SOURCE[0]}")}"diff --git a/solr/docker/tests/cases/empty-varsolr-vol-solr-nocopy/test.sh b/solr/docker/tests/cases/empty-varsolr-vol-solr-nocopy/test.shindex 88bd4324a65..d5c4e2c814d 100755--- a/solr/docker/tests/cases/empty-varsolr-vol-solr-nocopy/test.sh+++ b/solr/docker/tests/cases/empty-varsolr-vol-solr-nocopy/test.sh@@ -1,5 +1,19 @@#!/bin/bash+# Licensed to the Apache Software Foundation (ASF) under one or more+# contributor license agreements. See the NOTICE file distributed with+# this work for additional information regarding copyright ownership.+# The ASF licenses this file to You under the Apache License, Version 2.0+# (the "License"); you may not use this file except in compliance with+# the License. You may obtain a copy of the License at#+# http://www.apache.org/licenses/LICENSE-2.0+#+# Unless required by applicable law or agreed to in writing, software+# distributed under the License is distributed on an "AS IS" BASIS,+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+# See the License for the specific language governing permissions and+# limitations under the License.+set -euo pipefailTEST_DIR="${TEST_DIR:-$(dirname -- "${BASH_SOURCE[0]}")}"diff --git a/solr/docker/tests/cases/empty-varsolr-vol-solr/test.sh b/solr/docker/tests/cases/empty-varsolr-vol-solr/test.shindex 7cf88e4422b..d78851ee9ab 100755--- a/solr/docker/tests/cases/empty-varsolr-vol-solr/test.sh+++ b/solr/docker/tests/cases/empty-varsolr-vol-solr/test.sh@@ -1,5 +1,19 @@#!/bin/bash+# Licensed to the Apache Software Foundation (ASF) under one or more+# contributor license agreements. See the NOTICE file distributed with+# this work for additional information regarding copyright ownership.+# The ASF licenses this file to You under the Apache License, Version 2.0+# (the "License"); you may not use this file except in compliance with+# the License. You may obtain a copy of the License at#+# http://www.apache.org/licenses/LICENSE-2.0+#+# Unless required by applicable law or agreed to in writing, software+# distributed under the License is distributed on an "AS IS" BASIS,+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+# See the License for the specific language governing permissions and+# limitations under the License.+set -euo pipefailTEST_DIR="${TEST_DIR:-$(dirname -- "${BASH_SOURCE[0]}")}"diff --git a/solr/docker/tests/cases/empty-varsolr-vol-user/test.sh b/solr/docker/tests/cases/empty-varsolr-vol-user/test.shindex 07aab12a01f..c5e19b59027 100755--- a/solr/docker/tests/cases/empty-varsolr-vol-user/test.sh+++ b/solr/docker/tests/cases/empty-varsolr-vol-user/test.sh@@ -1,5 +1,19 @@#!/bin/bash+# Licensed to the Apache Software Foundation (ASF) under one or more+# contributor license agreements. See the NOTICE file distributed with+# this work for additional information regarding copyright ownership.+# The ASF licenses this file to You under the Apache License, Version 2.0+# (the "License"); you may not use this file except in compliance with+# the License. You may obtain a copy of the License at#+# http://www.apache.org/licenses/LICENSE-2.0+#+# Unless required by applicable law or agreed to in writing, software+# distributed under the License is distributed on an "AS IS" BASIS,+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+# See the License for the specific language governing permissions and+# limitations under the License.+set -euo pipefailTEST_DIR="${TEST_DIR:-$(dirname -- "${BASH_SOURCE[0]}")}"diff --git a/solr/docker/tests/cases/gosu/test.sh b/solr/docker/tests/cases/gosu/test.shindex 11ea0df6964..9f1ce920d15 100755--- a/solr/docker/tests/cases/gosu/test.sh+++ b/solr/docker/tests/cases/gosu/test.sh@@ -1,7 +1,20 @@#!/bin/bash+# Licensed to the Apache Software Foundation (ASF) under one or more+# contributor license agreements. See the NOTICE file distributed with+# this work for additional information regarding copyright ownership.+# The ASF licenses this file to You under the Apache License, Version 2.0+# (the "License"); you may not use this file except in compliance with+# the License. You may obtain a copy of the License at#-# A simple test of gosu. We create a myvarsolr, and chown it+# http://www.apache.org/licenses/LICENSE-2.0#+# Unless required by applicable law or agreed to in writing, software+# distributed under the License is distributed on an "AS IS" BASIS,+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+# See the License for the specific language governing permissions and+# limitations under the License.++# A simple test of gosu. We create a myvarsolr, and chown itif [[ "$OSTYPE" == "darwin"* ]]; then# TODO: Fix this test on Macdiff --git a/solr/docker/tests/cases/initdb/test.sh b/solr/docker/tests/cases/initdb/test.shindex dd8ebb27710..09fddbd475e 100755--- a/solr/docker/tests/cases/initdb/test.sh+++ b/solr/docker/tests/cases/initdb/test.sh@@ -1,5 +1,19 @@#!/bin/bash+# Licensed to the Apache Software Foundation (ASF) under one or more+# contributor license agreements. See the NOTICE file distributed with+# this work for additional information regarding copyright ownership.+# The ASF licenses this file to You under the Apache License, Version 2.0+# (the "License"); you may not use this file except in compliance with+# the License. You may obtain a copy of the License at#+# http://www.apache.org/licenses/LICENSE-2.0+#+# Unless required by applicable law or agreed to in writing, software+# distributed under the License is distributed on an "AS IS" BASIS,+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+# See the License for the specific language governing permissions and+# limitations under the License.+set -euo pipefailTEST_DIR="${TEST_DIR:-$(dirname -- "${BASH_SOURCE[0]}")}"diff --git a/solr/docker/tests/cases/precreate_core/test.sh b/solr/docker/tests/cases/precreate_core/test.shindex b818d9a8049..1c40cc10f55 100755--- a/solr/docker/tests/cases/precreate_core/test.sh+++ b/solr/docker/tests/cases/precreate_core/test.sh@@ -1,5 +1,19 @@#!/bin/bash+# Licensed to the Apache Software Foundation (ASF) under one or more+# contributor license agreements. See the NOTICE file distributed with+# this work for additional information regarding copyright ownership.+# The ASF licenses this file to You under the Apache License, Version 2.0+# (the "License"); you may not use this file except in compliance with+# the License. You may obtain a copy of the License at#+# http://www.apache.org/licenses/LICENSE-2.0+#+# Unless required by applicable law or agreed to in writing, software+# distributed under the License is distributed on an "AS IS" BASIS,+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+# See the License for the specific language governing permissions and+# limitations under the License.+set -euo pipefailTEST_DIR="${TEST_DIR:-$(dirname -- "${BASH_SOURCE[0]}")}"diff --git a/solr/docker/tests/cases/precreate_core_randomuser_rootgroup/test.sh b/solr/docker/tests/cases/precreate_core_randomuser_rootgroup/test.shindex d563b59c332..eaed8575843 100755--- a/solr/docker/tests/cases/precreate_core_randomuser_rootgroup/test.sh+++ b/solr/docker/tests/cases/precreate_core_randomuser_rootgroup/test.sh@@ -1,5 +1,19 @@#!/bin/bash+# Licensed to the Apache Software Foundation (ASF) under one or more+# contributor license agreements. See the NOTICE file distributed with+# this work for additional information regarding copyright ownership.+# The ASF licenses this file to You under the Apache License, Version 2.0+# (the "License"); you may not use this file except in compliance with+# the License. You may obtain a copy of the License at#+# http://www.apache.org/licenses/LICENSE-2.0+#+# Unless required by applicable law or agreed to in writing, software+# distributed under the License is distributed on an "AS IS" BASIS,+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+# See the License for the specific language governing permissions and+# limitations under the License.+set -euo pipefailTEST_DIR="${TEST_DIR:-$(dirname -- "${BASH_SOURCE[0]}")}"diff --git a/solr/docker/tests/cases/test_log4j/test.sh b/solr/docker/tests/cases/test_log4j/test.shindex aca28c860ce..c52a273e00f 100755--- a/solr/docker/tests/cases/test_log4j/test.sh+++ b/solr/docker/tests/cases/test_log4j/test.sh@@ -1,5 +1,19 @@#!/bin/bash+# Licensed to the Apache Software Foundation (ASF) under one or more+# contributor license agreements. See the NOTICE file distributed with+# this work for additional information regarding copyright ownership.+# The ASF licenses this file to You under the Apache License, Version 2.0+# (the "License"); you may not use this file except in compliance with+# the License. You may obtain a copy of the License at#+# http://www.apache.org/licenses/LICENSE-2.0+#+# Unless required by applicable law or agreed to in writing, software+# distributed under the License is distributed on an "AS IS" BASIS,+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+# See the License for the specific language governing permissions and+# limitations under the License.+set -euo pipefailTEST_DIR="${TEST_DIR:-$(dirname -- "${BASH_SOURCE[0]}")}"diff --git a/solr/docker/tests/cases/user_volume/test.sh b/solr/docker/tests/cases/user_volume/test.shindex cf6c9e6124f..49a386c8a87 100755--- a/solr/docker/tests/cases/user_volume/test.sh+++ b/solr/docker/tests/cases/user_volume/test.sh@@ -1,5 +1,19 @@#!/bin/bash+# Licensed to the Apache Software Foundation (ASF) under one or more+# contributor license agreements. See the NOTICE file distributed with+# this work for additional information regarding copyright ownership.+# The ASF licenses this file to You under the Apache License, Version 2.0+# (the "License"); you may not use this file except in compliance with+# the License. You may obtain a copy of the License at#+# http://www.apache.org/licenses/LICENSE-2.0+#+# Unless required by applicable law or agreed to in writing, software+# distributed under the License is distributed on an "AS IS" BASIS,+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+# See the License for the specific language governing permissions and+# limitations under the License.+set -euo pipefailTEST_DIR="${TEST_DIR:-$(dirname -- "${BASH_SOURCE[0]}")}"diff --git a/solr/docker/tests/shared.sh b/solr/docker/tests/shared.shindex 49dcdae066c..b3635175969 100755--- a/solr/docker/tests/shared.sh+++ b/solr/docker/tests/shared.sh@@ -1,5 +1,19 @@#!/bin/bash+# Licensed to the Apache Software Foundation (ASF) under one or more+# contributor license agreements. See the NOTICE file distributed with+# this work for additional information regarding copyright ownership.+# The ASF licenses this file to You under the Apache License, Version 2.0+# (the "License"); you may not use this file except in compliance with+# the License. You may obtain a copy of the License at#+# http://www.apache.org/licenses/LICENSE-2.0+#+# Unless required by applicable law or agreed to in writing, software+# distributed under the License is distributed on an "AS IS" BASIS,+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+# See the License for the specific language governing permissions and+# limitations under the License.+# Shared functions for testingfunction container_cleanup {