-
-
Notifications
You must be signed in to change notification settings - Fork 254
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[TASK] Make it possible to change solr unix GID:UID on docker image b…
…uild This change makes it possible to change solr unix GID:UID on docker image build time. It is required for dev. environments and custom setups of EXT:solr docker containers.
- Loading branch information
Showing
3 changed files
with
24 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
Docker/SolrServer/docker-entrypoint-initdb.d/as-sudo-tweaks.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
|
||
# execute files in /docker-entrypoint-initdb.d/as-sudo/*.sh before starting solr | ||
while read -r f; do | ||
case "$f" in | ||
*.sh) echo "$0: running 'sudo $f'"; sudo "$f" ;; | ||
*) echo "$0: ignoring $f" ;; | ||
esac | ||
echo | ||
done < <(find /docker-entrypoint-initdb.d/as-sudo/ -mindepth 1 -type f | sort -n) |
3 changes: 3 additions & 0 deletions
3
Docker/SolrServer/docker-entrypoint-initdb.d/as-sudo/fix-file-permissions.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#!/usr/bin/env bash | ||
|
||
chown -R solr:solr /var/solr /opt/solr |