Skip to content

Commit f2c2832

Browse files
authored
chore(monitor-snapshot/release-7.5): update files from upstreams (#875)
1 parent 4154e5a commit f2c2832

2 files changed

Lines changed: 7 additions & 5 deletions

File tree

366 Bytes
Binary file not shown.
Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
FROM busybox:1.37.0
22

3-
ADD init.sh /usr/bin/init.sh
4-
RUN chmod +x /usr/bin/init.sh
3+
# Add user and group to support run it with non-root.
4+
ARG PINGCAP_UID=1000
5+
ARG PINGCAP_GID=2000
6+
RUN addgroup -g ${PINGCAP_GID} pingcap && \
7+
adduser -u ${PINGCAP_UID} -G pingcap -h /home/pingcap -D pingcap
58

6-
COPY dashboards/*.json /tmp/
7-
COPY rules/*.rules.yml /tmp/
8-
COPY datasources/*.yaml /tmp/
9+
COPY --chmod=755 init.sh /usr/bin/init.sh
10+
COPY --chmod=644 dashboards/*.json rules/*.rules.yml datasources/*.yaml /tmp/
911

1012
ENTRYPOINT ["/usr/bin/init.sh"]
1113
CMD ["TIDB-Cluster", "/grafana-dashboard-definitions/tidb/", "false", "/etc/prometheus"]

0 commit comments

Comments
 (0)