forked from fluent/fluentd-docker-image
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Do not manually fix permissions issues by manipulating /etc/passwd
If permissions problems exist, they should be overcome properly. For examples see: LINK: docker-library/rabbitmq#60 LINK: docker-library/cassandra#48 LINK: docker-library/mongo#81 LINK: redis/docker-library-redis#48 LINK: docker-library/mysql#161 LINK: MariaDB/mariadb-docker#59 LINK: docker-library/percona#21 LINK: docker-library/ghost#54 LINK: docker-library/postgres#253 As suggested by @tianon LINK: docker-library/official-images#3724 (comment) This is part of an effort to make FluentD part of Docker's Official Images. Signed-off-by: Lee Jones <[email protected]>
- Loading branch information
Lee Jones
committed
Nov 30, 2018
1 parent
521b003
commit e9c1c17
Showing
34 changed files
with
0 additions
and
525 deletions.
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
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
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
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
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
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
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 |
---|---|---|
@@ -1,18 +1,3 @@ | ||
#!/usr/bin/dumb-init /bin/sh | ||
|
||
uid=${FLUENT_UID:-1000} | ||
|
||
# check if a old fluent user exists and delete it | ||
cat /etc/passwd | grep fluent | ||
if [ $? -eq 0 ]; then | ||
deluser fluent | ||
fi | ||
|
||
# (re)add the fluent user with $FLUENT_UID | ||
adduser -D -g '' -u ${uid} -h /home/fluent fluent | ||
|
||
# chown home and data folder | ||
chown -R fluent /home/fluent | ||
chown -R fluent /fluentd | ||
|
||
exec su-exec fluent "$@" |
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 |
---|---|---|
@@ -1,18 +1,3 @@ | ||
#!/usr/bin/dumb-init /bin/sh | ||
|
||
uid=${FLUENT_UID:-1000} | ||
|
||
# check if a old fluent user exists and delete it | ||
cat /etc/passwd | grep fluent | ||
if [ $? -eq 0 ]; then | ||
deluser fluent | ||
fi | ||
|
||
# (re)add the fluent user with $FLUENT_UID | ||
adduser -D -g '' -u ${uid} -h /home/fluent fluent | ||
|
||
# chown home and data folder | ||
chown -R fluent /home/fluent | ||
chown -R fluent /fluentd | ||
|
||
exec su-exec fluent "$@" |
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 |
---|---|---|
@@ -1,19 +1,3 @@ | ||
#!/usr/bin/dumb-init /bin/sh | ||
|
||
uid=${FLUENT_UID:-1000} | ||
|
||
# check if a old fluent user exists and delete it | ||
cat /etc/passwd | grep fluent | ||
if [ $? -eq 0 ]; then | ||
deluser fluent | ||
fi | ||
|
||
# (re)add the fluent user with $FLUENT_UID | ||
useradd -u ${uid} -o -c "" -m fluent | ||
export HOME=/home/fluent | ||
|
||
# chown home and data folder | ||
chown -R fluent /home/fluent | ||
chown -R fluent /fluentd | ||
|
||
exec gosu fluent "$@" |
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 |
---|---|---|
@@ -1,19 +1,3 @@ | ||
#!/usr/bin/dumb-init /bin/sh | ||
|
||
uid=${FLUENT_UID:-1000} | ||
|
||
# check if a old fluent user exists and delete it | ||
cat /etc/passwd | grep fluent | ||
if [ $? -eq 0 ]; then | ||
deluser fluent | ||
fi | ||
|
||
# (re)add the fluent user with $FLUENT_UID | ||
useradd -u ${uid} -o -c "" -m fluent | ||
export HOME=/home/fluent | ||
|
||
# chown home and data folder | ||
chown -R fluent /home/fluent | ||
chown -R fluent /fluentd | ||
|
||
exec gosu fluent "$@" |
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 |
---|---|---|
@@ -1,18 +1,3 @@ | ||
#!/usr/bin/dumb-init /bin/sh | ||
|
||
uid=${FLUENT_UID:-1000} | ||
|
||
# check if a old fluent user exists and delete it | ||
cat /etc/passwd | grep fluent | ||
if [ $? -eq 0 ]; then | ||
deluser fluent | ||
fi | ||
|
||
# (re)add the fluent user with $FLUENT_UID | ||
adduser -D -g '' -u ${uid} -h /home/fluent fluent | ||
|
||
# chown home and data folder | ||
chown -R fluent /home/fluent | ||
chown -R fluent /fluentd | ||
|
||
exec su-exec fluent "$@" |
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 |
---|---|---|
@@ -1,18 +1,3 @@ | ||
#!/usr/bin/dumb-init /bin/sh | ||
|
||
uid=${FLUENT_UID:-1000} | ||
|
||
# check if a old fluent user exists and delete it | ||
cat /etc/passwd | grep fluent | ||
if [ $? -eq 0 ]; then | ||
deluser fluent | ||
fi | ||
|
||
# (re)add the fluent user with $FLUENT_UID | ||
adduser -D -g '' -u ${uid} -h /home/fluent fluent | ||
|
||
# chown home and data folder | ||
chown -R fluent /home/fluent | ||
chown -R fluent /fluentd | ||
|
||
exec su-exec fluent "$@" |
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 |
---|---|---|
@@ -1,19 +1,3 @@ | ||
#!/usr/bin/dumb-init /bin/sh | ||
|
||
uid=${FLUENT_UID:-1000} | ||
|
||
# check if a old fluent user exists and delete it | ||
cat /etc/passwd | grep fluent | ||
if [ $? -eq 0 ]; then | ||
deluser fluent | ||
fi | ||
|
||
# (re)add the fluent user with $FLUENT_UID | ||
useradd -u ${uid} -o -c "" -m fluent | ||
export HOME=/home/fluent | ||
|
||
# chown home and data folder | ||
chown -R fluent /home/fluent | ||
chown -R fluent /fluentd | ||
|
||
exec gosu fluent "$@" |
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 |
---|---|---|
@@ -1,19 +1,3 @@ | ||
#!/usr/bin/dumb-init /bin/sh | ||
|
||
uid=${FLUENT_UID:-1000} | ||
|
||
# check if a old fluent user exists and delete it | ||
cat /etc/passwd | grep fluent | ||
if [ $? -eq 0 ]; then | ||
deluser fluent | ||
fi | ||
|
||
# (re)add the fluent user with $FLUENT_UID | ||
useradd -u ${uid} -o -c "" -m fluent | ||
export HOME=/home/fluent | ||
|
||
# chown home and data folder | ||
chown -R fluent /home/fluent | ||
chown -R fluent /fluentd | ||
|
||
exec gosu fluent "$@" |
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 |
---|---|---|
@@ -1,18 +1,3 @@ | ||
#!/usr/bin/dumb-init /bin/sh | ||
|
||
uid=${FLUENT_UID:-1000} | ||
|
||
# check if a old fluent user exists and delete it | ||
cat /etc/passwd | grep fluent | ||
if [ $? -eq 0 ]; then | ||
deluser fluent | ||
fi | ||
|
||
# (re)add the fluent user with $FLUENT_UID | ||
adduser -D -g '' -u ${uid} -h /home/fluent fluent | ||
|
||
# chown home and data folder | ||
chown -R fluent /home/fluent | ||
chown -R fluent /fluentd | ||
|
||
exec su-exec fluent "$@" |
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 |
---|---|---|
@@ -1,18 +1,3 @@ | ||
#!/usr/bin/dumb-init /bin/sh | ||
|
||
uid=${FLUENT_UID:-1000} | ||
|
||
# check if a old fluent user exists and delete it | ||
cat /etc/passwd | grep fluent | ||
if [ $? -eq 0 ]; then | ||
deluser fluent | ||
fi | ||
|
||
# (re)add the fluent user with $FLUENT_UID | ||
adduser -D -g '' -u ${uid} -h /home/fluent fluent | ||
|
||
# chown home and data folder | ||
chown -R fluent /home/fluent | ||
chown -R fluent /fluentd | ||
|
||
exec su-exec fluent "$@" |
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 |
---|---|---|
@@ -1,19 +1,3 @@ | ||
#!/usr/bin/dumb-init /bin/sh | ||
|
||
uid=${FLUENT_UID:-1000} | ||
|
||
# check if a old fluent user exists and delete it | ||
cat /etc/passwd | grep fluent | ||
if [ $? -eq 0 ]; then | ||
deluser fluent | ||
fi | ||
|
||
# (re)add the fluent user with $FLUENT_UID | ||
useradd -u ${uid} -o -c "" -m fluent | ||
export HOME=/home/fluent | ||
|
||
# chown home and data folder | ||
chown -R fluent /home/fluent | ||
chown -R fluent /fluentd | ||
|
||
exec gosu fluent "$@" |
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 |
---|---|---|
@@ -1,19 +1,3 @@ | ||
#!/usr/bin/dumb-init /bin/sh | ||
|
||
uid=${FLUENT_UID:-1000} | ||
|
||
# check if a old fluent user exists and delete it | ||
cat /etc/passwd | grep fluent | ||
if [ $? -eq 0 ]; then | ||
deluser fluent | ||
fi | ||
|
||
# (re)add the fluent user with $FLUENT_UID | ||
useradd -u ${uid} -o -c "" -m fluent | ||
export HOME=/home/fluent | ||
|
||
# chown home and data folder | ||
chown -R fluent /home/fluent | ||
chown -R fluent /fluentd | ||
|
||
exec gosu fluent "$@" |
Oops, something went wrong.