File tree 34 files changed +0
-525
lines changed
34 files changed +0
-525
lines changed Original file line number Diff line number Diff line change @@ -89,10 +89,6 @@ of `docker run`).
89
89
Use this variable to specify other Fluentd command line options,
90
90
like ` -v ` or ` -q ` .
91
91
92
- ### ` FLUENT_UID `
93
-
94
- Use this variable to specify user id of fluent user.
95
-
96
92
## Image versions
97
93
98
94
This image is based on the popular [ Alpine Linux project] [ 1 ] , available in
Original file line number Diff line number Diff line change 1
1
<% is_alpine = (dockerfile.split("/").last.split("-").first == "alpine") %>
2
2
#!/usr/bin/dumb-init /bin/sh
3
3
4
- uid=${FLUENT_UID:-1000}
5
-
6
- # check if a old fluent user exists and delete it
7
- cat /etc/passwd | grep fluent
8
- if [ $? -eq 0 ]; then
9
- deluser fluent
10
- fi
11
-
12
- # (re)add the fluent user with $FLUENT_UID
13
- <% if is_alpine %>
14
- adduser -D -g '' -u ${uid} -h /home/fluent fluent
15
- <% else %>
16
- useradd -u ${uid} -o -c "" -m fluent
17
- export HOME=/home/fluent
18
- <% end %>
19
-
20
4
#source vars if file exists
21
5
DEFAULT=/etc/default/fluentd
22
6
@@ -26,10 +10,6 @@ if [ -r $DEFAULT ]; then
26
10
set +o allexport
27
11
fi
28
12
29
- # chown home and data folder
30
- chown -R fluent /home/fluent
31
- chown -R fluent /fluentd
32
-
33
13
<% if is_alpine %>
34
14
exec su-exec fluent "$@"
35
15
<% else %>
Original file line number Diff line number Diff line change 1
1
#! /usr/bin/dumb-init /bin/sh
2
2
3
- uid=${FLUENT_UID:- 1000}
4
-
5
- # check if a old fluent user exists and delete it
6
- cat /etc/passwd | grep fluent
7
- if [ $? -eq 0 ]; then
8
- deluser fluent
9
- fi
10
-
11
- # (re)add the fluent user with $FLUENT_UID
12
- adduser -D -g ' ' -u ${uid} -h /home/fluent fluent
13
-
14
3
# source vars if file exists
15
4
DEFAULT=/etc/default/fluentd
16
5
@@ -20,8 +9,4 @@ if [ -r $DEFAULT ]; then
20
9
set +o allexport
21
10
fi
22
11
23
- # chown home and data folder
24
- chown -R fluent /home/fluent
25
- chown -R fluent /fluentd
26
-
27
12
exec su-exec fluent " $@ "
Original file line number Diff line number Diff line change 1
1
#! /usr/bin/dumb-init /bin/sh
2
2
3
- uid=${FLUENT_UID:- 1000}
4
-
5
- # check if a old fluent user exists and delete it
6
- cat /etc/passwd | grep fluent
7
- if [ $? -eq 0 ]; then
8
- deluser fluent
9
- fi
10
-
11
- # (re)add the fluent user with $FLUENT_UID
12
- adduser -D -g ' ' -u ${uid} -h /home/fluent fluent
13
-
14
3
# source vars if file exists
15
4
DEFAULT=/etc/default/fluentd
16
5
@@ -20,8 +9,4 @@ if [ -r $DEFAULT ]; then
20
9
set +o allexport
21
10
fi
22
11
23
- # chown home and data folder
24
- chown -R fluent /home/fluent
25
- chown -R fluent /fluentd
26
-
27
12
exec su-exec fluent " $@ "
Original file line number Diff line number Diff line change 1
1
#! /usr/bin/dumb-init /bin/sh
2
2
3
- uid=${FLUENT_UID:- 1000}
4
-
5
- # check if a old fluent user exists and delete it
6
- cat /etc/passwd | grep fluent
7
- if [ $? -eq 0 ]; then
8
- deluser fluent
9
- fi
10
-
11
- # (re)add the fluent user with $FLUENT_UID
12
- useradd -u ${uid} -o -c " " -m fluent
13
- export HOME=/home/fluent
14
-
15
3
# source vars if file exists
16
4
DEFAULT=/etc/default/fluentd
17
5
@@ -21,8 +9,4 @@ if [ -r $DEFAULT ]; then
21
9
set +o allexport
22
10
fi
23
11
24
- # chown home and data folder
25
- chown -R fluent /home/fluent
26
- chown -R fluent /fluentd
27
-
28
12
exec gosu fluent " $@ "
Original file line number Diff line number Diff line change 1
1
#! /usr/bin/dumb-init /bin/sh
2
2
3
- uid=${FLUENT_UID:- 1000}
4
-
5
- # check if a old fluent user exists and delete it
6
- cat /etc/passwd | grep fluent
7
- if [ $? -eq 0 ]; then
8
- deluser fluent
9
- fi
10
-
11
- # (re)add the fluent user with $FLUENT_UID
12
- useradd -u ${uid} -o -c " " -m fluent
13
- export HOME=/home/fluent
14
-
15
3
# source vars if file exists
16
4
DEFAULT=/etc/default/fluentd
17
5
@@ -21,8 +9,4 @@ if [ -r $DEFAULT ]; then
21
9
set +o allexport
22
10
fi
23
11
24
- # chown home and data folder
25
- chown -R fluent /home/fluent
26
- chown -R fluent /fluentd
27
-
28
12
exec gosu fluent " $@ "
Original file line number Diff line number Diff line change 1
1
#! /usr/bin/dumb-init /bin/sh
2
2
3
- uid=${FLUENT_UID:- 1000}
4
-
5
- # check if a old fluent user exists and delete it
6
- cat /etc/passwd | grep fluent
7
- if [ $? -eq 0 ]; then
8
- deluser fluent
9
- fi
10
-
11
- # (re)add the fluent user with $FLUENT_UID
12
- adduser -D -g ' ' -u ${uid} -h /home/fluent fluent
13
-
14
- # chown home and data folder
15
- chown -R fluent /home/fluent
16
- chown -R fluent /fluentd
17
-
18
3
exec su-exec fluent " $@ "
Original file line number Diff line number Diff line change 1
1
#! /usr/bin/dumb-init /bin/sh
2
2
3
- uid=${FLUENT_UID:- 1000}
4
-
5
- # check if a old fluent user exists and delete it
6
- cat /etc/passwd | grep fluent
7
- if [ $? -eq 0 ]; then
8
- deluser fluent
9
- fi
10
-
11
- # (re)add the fluent user with $FLUENT_UID
12
- adduser -D -g ' ' -u ${uid} -h /home/fluent fluent
13
-
14
- # chown home and data folder
15
- chown -R fluent /home/fluent
16
- chown -R fluent /fluentd
17
-
18
3
exec su-exec fluent " $@ "
Original file line number Diff line number Diff line change 1
1
#! /usr/bin/dumb-init /bin/sh
2
2
3
- uid=${FLUENT_UID:- 1000}
4
-
5
- # check if a old fluent user exists and delete it
6
- cat /etc/passwd | grep fluent
7
- if [ $? -eq 0 ]; then
8
- deluser fluent
9
- fi
10
-
11
- # (re)add the fluent user with $FLUENT_UID
12
- useradd -u ${uid} -o -c " " -m fluent
13
- export HOME=/home/fluent
14
-
15
- # chown home and data folder
16
- chown -R fluent /home/fluent
17
- chown -R fluent /fluentd
18
-
19
3
exec gosu fluent " $@ "
Original file line number Diff line number Diff line change 1
1
#! /usr/bin/dumb-init /bin/sh
2
2
3
- uid=${FLUENT_UID:- 1000}
4
-
5
- # check if a old fluent user exists and delete it
6
- cat /etc/passwd | grep fluent
7
- if [ $? -eq 0 ]; then
8
- deluser fluent
9
- fi
10
-
11
- # (re)add the fluent user with $FLUENT_UID
12
- useradd -u ${uid} -o -c " " -m fluent
13
- export HOME=/home/fluent
14
-
15
- # chown home and data folder
16
- chown -R fluent /home/fluent
17
- chown -R fluent /fluentd
18
-
19
3
exec gosu fluent " $@ "
Original file line number Diff line number Diff line change 1
1
#! /usr/bin/dumb-init /bin/sh
2
2
3
- uid=${FLUENT_UID:- 1000}
4
-
5
- # check if a old fluent user exists and delete it
6
- cat /etc/passwd | grep fluent
7
- if [ $? -eq 0 ]; then
8
- deluser fluent
9
- fi
10
-
11
- # (re)add the fluent user with $FLUENT_UID
12
- adduser -D -g ' ' -u ${uid} -h /home/fluent fluent
13
-
14
- # chown home and data folder
15
- chown -R fluent /home/fluent
16
- chown -R fluent /fluentd
17
-
18
3
exec su-exec fluent " $@ "
Original file line number Diff line number Diff line change 1
1
#! /usr/bin/dumb-init /bin/sh
2
2
3
- uid=${FLUENT_UID:- 1000}
4
-
5
- # check if a old fluent user exists and delete it
6
- cat /etc/passwd | grep fluent
7
- if [ $? -eq 0 ]; then
8
- deluser fluent
9
- fi
10
-
11
- # (re)add the fluent user with $FLUENT_UID
12
- adduser -D -g ' ' -u ${uid} -h /home/fluent fluent
13
-
14
- # chown home and data folder
15
- chown -R fluent /home/fluent
16
- chown -R fluent /fluentd
17
-
18
3
exec su-exec fluent " $@ "
Original file line number Diff line number Diff line change 1
1
#! /usr/bin/dumb-init /bin/sh
2
2
3
- uid=${FLUENT_UID:- 1000}
4
-
5
- # check if a old fluent user exists and delete it
6
- cat /etc/passwd | grep fluent
7
- if [ $? -eq 0 ]; then
8
- deluser fluent
9
- fi
10
-
11
- # (re)add the fluent user with $FLUENT_UID
12
- useradd -u ${uid} -o -c " " -m fluent
13
- export HOME=/home/fluent
14
-
15
- # chown home and data folder
16
- chown -R fluent /home/fluent
17
- chown -R fluent /fluentd
18
-
19
3
exec gosu fluent " $@ "
Original file line number Diff line number Diff line change 1
1
#! /usr/bin/dumb-init /bin/sh
2
2
3
- uid=${FLUENT_UID:- 1000}
4
-
5
- # check if a old fluent user exists and delete it
6
- cat /etc/passwd | grep fluent
7
- if [ $? -eq 0 ]; then
8
- deluser fluent
9
- fi
10
-
11
- # (re)add the fluent user with $FLUENT_UID
12
- useradd -u ${uid} -o -c " " -m fluent
13
- export HOME=/home/fluent
14
-
15
- # chown home and data folder
16
- chown -R fluent /home/fluent
17
- chown -R fluent /fluentd
18
-
19
3
exec gosu fluent " $@ "
Original file line number Diff line number Diff line change 1
1
#! /usr/bin/dumb-init /bin/sh
2
2
3
- uid=${FLUENT_UID:- 1000}
4
-
5
- # check if a old fluent user exists and delete it
6
- cat /etc/passwd | grep fluent
7
- if [ $? -eq 0 ]; then
8
- deluser fluent
9
- fi
10
-
11
- # (re)add the fluent user with $FLUENT_UID
12
- adduser -D -g ' ' -u ${uid} -h /home/fluent fluent
13
-
14
- # chown home and data folder
15
- chown -R fluent /home/fluent
16
- chown -R fluent /fluentd
17
-
18
3
exec su-exec fluent " $@ "
Original file line number Diff line number Diff line change 1
1
#! /usr/bin/dumb-init /bin/sh
2
2
3
- uid=${FLUENT_UID:- 1000}
4
-
5
- # check if a old fluent user exists and delete it
6
- cat /etc/passwd | grep fluent
7
- if [ $? -eq 0 ]; then
8
- deluser fluent
9
- fi
10
-
11
- # (re)add the fluent user with $FLUENT_UID
12
- adduser -D -g ' ' -u ${uid} -h /home/fluent fluent
13
-
14
- # chown home and data folder
15
- chown -R fluent /home/fluent
16
- chown -R fluent /fluentd
17
-
18
3
exec su-exec fluent " $@ "
Original file line number Diff line number Diff line change 1
1
#! /usr/bin/dumb-init /bin/sh
2
2
3
- uid=${FLUENT_UID:- 1000}
4
-
5
- # check if a old fluent user exists and delete it
6
- cat /etc/passwd | grep fluent
7
- if [ $? -eq 0 ]; then
8
- deluser fluent
9
- fi
10
-
11
- # (re)add the fluent user with $FLUENT_UID
12
- useradd -u ${uid} -o -c " " -m fluent
13
- export HOME=/home/fluent
14
-
15
- # chown home and data folder
16
- chown -R fluent /home/fluent
17
- chown -R fluent /fluentd
18
-
19
3
exec gosu fluent " $@ "
Original file line number Diff line number Diff line change 1
1
#! /usr/bin/dumb-init /bin/sh
2
2
3
- uid=${FLUENT_UID:- 1000}
4
-
5
- # check if a old fluent user exists and delete it
6
- cat /etc/passwd | grep fluent
7
- if [ $? -eq 0 ]; then
8
- deluser fluent
9
- fi
10
-
11
- # (re)add the fluent user with $FLUENT_UID
12
- useradd -u ${uid} -o -c " " -m fluent
13
- export HOME=/home/fluent
14
-
15
- # chown home and data folder
16
- chown -R fluent /home/fluent
17
- chown -R fluent /fluentd
18
-
19
3
exec gosu fluent " $@ "
You can’t perform that action at this time.
0 commit comments