File tree Expand file tree Collapse file tree 16 files changed +52
-0
lines changed Expand file tree Collapse file tree 16 files changed +52
-0
lines changed Original file line number Diff line number Diff line change @@ -168,6 +168,13 @@ RUN mkdir -p /fluentd/log
168
168
# configuration/plugins path (default: copied from .)
169
169
RUN mkdir -p /fluentd/etc /fluentd/plugins
170
170
171
+ <% if is_alpine %>
172
+ RUN addgroup -S fluent && adduser -S -g fluent fluent
173
+ <% else %>
174
+ RUN groupadd -r fluent && useradd -r -g fluent fluent
175
+ <% end %>
176
+ RUN chown -R fluent /fluentd && chgrp -R fluent /fluentd
177
+
171
178
COPY fluent.conf /fluentd/etc/
172
179
COPY entrypoint.sh /bin/
173
180
RUN chmod +x /bin/entrypoint.sh
Original file line number Diff line number Diff line change @@ -35,6 +35,9 @@ RUN mkdir -p /fluentd/log
35
35
# configuration/plugins path (default: copied from .)
36
36
RUN mkdir -p /fluentd/etc /fluentd/plugins
37
37
38
+ RUN addgroup -S fluent && adduser -S -g fluent fluent
39
+ RUN chown -R fluent /fluentd && chgrp -R fluent /fluentd
40
+
38
41
COPY fluent.conf /fluentd/etc/
39
42
COPY entrypoint.sh /bin/
40
43
RUN chmod +x /bin/entrypoint.sh
Original file line number Diff line number Diff line change @@ -52,6 +52,9 @@ RUN mkdir -p /fluentd/log
52
52
# configuration/plugins path (default: copied from .)
53
53
RUN mkdir -p /fluentd/etc /fluentd/plugins
54
54
55
+ RUN groupadd -r fluent && useradd -r -g fluent fluent
56
+ RUN chown -R fluent /fluentd && chgrp -R fluent /fluentd
57
+
55
58
COPY fluent.conf /fluentd/etc/
56
59
COPY entrypoint.sh /bin/
57
60
RUN chmod +x /bin/entrypoint.sh
Original file line number Diff line number Diff line change @@ -35,6 +35,9 @@ RUN mkdir -p /fluentd/log
35
35
# configuration/plugins path (default: copied from .)
36
36
RUN mkdir -p /fluentd/etc /fluentd/plugins
37
37
38
+ RUN addgroup -S fluent && adduser -S -g fluent fluent
39
+ RUN chown -R fluent /fluentd && chgrp -R fluent /fluentd
40
+
38
41
COPY fluent.conf /fluentd/etc/
39
42
COPY entrypoint.sh /bin/
40
43
RUN chmod +x /bin/entrypoint.sh
Original file line number Diff line number Diff line change @@ -53,6 +53,9 @@ RUN mkdir -p /fluentd/log
53
53
# configuration/plugins path (default: copied from .)
54
54
RUN mkdir -p /fluentd/etc /fluentd/plugins
55
55
56
+ RUN groupadd -r fluent && useradd -r -g fluent fluent
57
+ RUN chown -R fluent /fluentd && chgrp -R fluent /fluentd
58
+
56
59
COPY fluent.conf /fluentd/etc/
57
60
COPY entrypoint.sh /bin/
58
61
RUN chmod +x /bin/entrypoint.sh
Original file line number Diff line number Diff line change @@ -35,6 +35,9 @@ RUN mkdir -p /fluentd/log
35
35
# configuration/plugins path (default: copied from .)
36
36
RUN mkdir -p /fluentd/etc /fluentd/plugins
37
37
38
+ RUN addgroup -S fluent && adduser -S -g fluent fluent
39
+ RUN chown -R fluent /fluentd && chgrp -R fluent /fluentd
40
+
38
41
COPY fluent.conf /fluentd/etc/
39
42
COPY entrypoint.sh /bin/
40
43
RUN chmod +x /bin/entrypoint.sh
Original file line number Diff line number Diff line change @@ -53,6 +53,9 @@ RUN mkdir -p /fluentd/log
53
53
# configuration/plugins path (default: copied from .)
54
54
RUN mkdir -p /fluentd/etc /fluentd/plugins
55
55
56
+ RUN groupadd -r fluent && useradd -r -g fluent fluent
57
+ RUN chown -R fluent /fluentd && chgrp -R fluent /fluentd
58
+
56
59
COPY fluent.conf /fluentd/etc/
57
60
COPY entrypoint.sh /bin/
58
61
RUN chmod +x /bin/entrypoint.sh
Original file line number Diff line number Diff line change @@ -36,6 +36,9 @@ RUN mkdir -p /fluentd/log
36
36
# configuration/plugins path (default: copied from .)
37
37
RUN mkdir -p /fluentd/etc /fluentd/plugins
38
38
39
+ RUN addgroup -S fluent && adduser -S -g fluent fluent
40
+ RUN chown -R fluent /fluentd && chgrp -R fluent /fluentd
41
+
39
42
COPY fluent.conf /fluentd/etc/
40
43
COPY entrypoint.sh /bin/
41
44
RUN chmod +x /bin/entrypoint.sh
Original file line number Diff line number Diff line change @@ -53,6 +53,9 @@ RUN mkdir -p /fluentd/log
53
53
# configuration/plugins path (default: copied from .)
54
54
RUN mkdir -p /fluentd/etc /fluentd/plugins
55
55
56
+ RUN groupadd -r fluent && useradd -r -g fluent fluent
57
+ RUN chown -R fluent /fluentd && chgrp -R fluent /fluentd
58
+
56
59
COPY fluent.conf /fluentd/etc/
57
60
COPY entrypoint.sh /bin/
58
61
RUN chmod +x /bin/entrypoint.sh
Original file line number Diff line number Diff line change @@ -34,6 +34,9 @@ RUN mkdir -p /fluentd/log
34
34
# configuration/plugins path (default: copied from .)
35
35
RUN mkdir -p /fluentd/etc /fluentd/plugins
36
36
37
+ RUN addgroup -S fluent && adduser -S -g fluent fluent
38
+ RUN chown -R fluent /fluentd && chgrp -R fluent /fluentd
39
+
37
40
COPY fluent.conf /fluentd/etc/
38
41
COPY entrypoint.sh /bin/
39
42
RUN chmod +x /bin/entrypoint.sh
Original file line number Diff line number Diff line change @@ -38,6 +38,9 @@ RUN mkdir -p /fluentd/log
38
38
# configuration/plugins path (default: copied from .)
39
39
RUN mkdir -p /fluentd/etc /fluentd/plugins
40
40
41
+ RUN addgroup -S fluent && adduser -S -g fluent fluent
42
+ RUN chown -R fluent /fluentd && chgrp -R fluent /fluentd
43
+
41
44
COPY fluent.conf /fluentd/etc/
42
45
COPY entrypoint.sh /bin/
43
46
RUN chmod +x /bin/entrypoint.sh
Original file line number Diff line number Diff line change @@ -38,6 +38,9 @@ RUN mkdir -p /fluentd/log
38
38
# configuration/plugins path (default: copied from .)
39
39
RUN mkdir -p /fluentd/etc /fluentd/plugins
40
40
41
+ RUN groupadd -r fluent && useradd -r -g fluent fluent
42
+ RUN chown -R fluent /fluentd && chgrp -R fluent /fluentd
43
+
41
44
COPY fluent.conf /fluentd/etc/
42
45
COPY entrypoint.sh /bin/
43
46
RUN chmod +x /bin/entrypoint.sh
Original file line number Diff line number Diff line change @@ -51,6 +51,9 @@ RUN mkdir -p /fluentd/log
51
51
# configuration/plugins path (default: copied from .)
52
52
RUN mkdir -p /fluentd/etc /fluentd/plugins
53
53
54
+ RUN groupadd -r fluent && useradd -r -g fluent fluent
55
+ RUN chown -R fluent /fluentd && chgrp -R fluent /fluentd
56
+
54
57
COPY fluent.conf /fluentd/etc/
55
58
COPY entrypoint.sh /bin/
56
59
RUN chmod +x /bin/entrypoint.sh
Original file line number Diff line number Diff line change @@ -35,6 +35,9 @@ RUN mkdir -p /fluentd/log
35
35
# configuration/plugins path (default: copied from .)
36
36
RUN mkdir -p /fluentd/etc /fluentd/plugins
37
37
38
+ RUN addgroup -S fluent && adduser -S -g fluent fluent
39
+ RUN chown -R fluent /fluentd && chgrp -R fluent /fluentd
40
+
38
41
COPY fluent.conf /fluentd/etc/
39
42
COPY entrypoint.sh /bin/
40
43
RUN chmod +x /bin/entrypoint.sh
Original file line number Diff line number Diff line change @@ -47,6 +47,9 @@ RUN mkdir -p /fluentd/log
47
47
# configuration/plugins path (default: copied from .)
48
48
RUN mkdir -p /fluentd/etc /fluentd/plugins
49
49
50
+ RUN groupadd -r fluent && useradd -r -g fluent fluent
51
+ RUN chown -R fluent /fluentd && chgrp -R fluent /fluentd
52
+
50
53
COPY fluent.conf /fluentd/etc/
51
54
COPY entrypoint.sh /bin/
52
55
RUN chmod +x /bin/entrypoint.sh
Original file line number Diff line number Diff line change @@ -52,6 +52,9 @@ RUN mkdir -p /fluentd/log
52
52
# configuration/plugins path (default: copied from .)
53
53
RUN mkdir -p /fluentd/etc /fluentd/plugins
54
54
55
+ RUN groupadd -r fluent && useradd -r -g fluent fluent
56
+ RUN chown -R fluent /fluentd && chgrp -R fluent /fluentd
57
+
55
58
COPY fluent.conf /fluentd/etc/
56
59
COPY entrypoint.sh /bin/
57
60
RUN chmod +x /bin/entrypoint.sh
You can’t perform that action at this time.
0 commit comments