Skip to content

Commit 1944367

Browse files
committed
Add Labels to the Dockerfile
1 parent dc54fa8 commit 1944367

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

Dockerfile

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
ARG BASE=registry.access.redhat.com/ubi8/ubi:8.5
22
FROM $BASE
33

4+
LABEL com.ibm.name="IBM Spectrum Scale bridge for Grafana"
5+
LABEL com.ibm.vendor="IBM"
6+
LABEL com.ibm.description="This tool translates the IBM Spectrum Scale performance data collected internally \
7+
to the query requests acceptable by the Grafana integrated openTSDB plugin"
8+
LABEL com.ibm.summary="It allows the IBM Spectrum Scale users to perform performance monitoring for IBM Spectrum Scale devices using Grafana"
9+
410
COPY ./requirements/requirements_ubi8.txt /root/requirements_ubi8.txt
511

612
RUN yum install -y python36 python36-devel
@@ -65,20 +71,15 @@ ENV LOGPATH=$DEFAULTLOGPATH
6571
RUN mkdir -p $LOGPATH
6672
RUN echo "the log will use $LOGPATH"
6773

74+
# Switch to the working directory
6875
WORKDIR /opt/IBM/bridge
6976
RUN echo "$(pwd)"
7077

71-
RUN touch "${LOGPATH}/install.log"
72-
RUN echo "log path: $LOGPATH" >> ${LOGPATH}/install.log
73-
RUN echo "pmcollector_server: $SERVER" >> ${LOGPATH}/install.log
74-
RUN echo "ssl certificates location: $TLSKEYPATH" >> ${LOGPATH}/install.log
75-
RUN echo "HTTP/S port: $PORT" >> ${LOGPATH}/install.log
76-
7778
# Create a user 'bridge' under 'root' group
7879
RUN groupadd -g 2099 bridge
7980
RUN useradd -rm -d /home/2001 -s /bin/bash -g 2099 -u 2001 bridge
8081

81-
# Chown all the files to the grafanabridge 'bridge' user.
82+
# Chown all the files to the grafanabridge 'bridge' user
8283
RUN chown -R 2001:2099 /opt/IBM/bridge
8384
RUN chown -R 2001:2099 /opt/IBM/zimon
8485
RUN chown -R 2001:2099 /var/mmfs/gen

0 commit comments

Comments
 (0)