|
1 | 1 | ARG BASE=registry.access.redhat.com/ubi8/ubi:8.5
|
2 | 2 | FROM $BASE
|
3 | 3 |
|
| 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 | + |
4 | 10 | COPY ./requirements/requirements_ubi8.txt /root/requirements_ubi8.txt
|
5 | 11 |
|
6 | 12 | RUN yum install -y python36 python36-devel
|
@@ -65,20 +71,15 @@ ENV LOGPATH=$DEFAULTLOGPATH
|
65 | 71 | RUN mkdir -p $LOGPATH
|
66 | 72 | RUN echo "the log will use $LOGPATH"
|
67 | 73 |
|
| 74 | +# Switch to the working directory |
68 | 75 | WORKDIR /opt/IBM/bridge
|
69 | 76 | RUN echo "$(pwd)"
|
70 | 77 |
|
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 |
| - |
77 | 78 | # Create a user 'bridge' under 'root' group
|
78 | 79 | RUN groupadd -g 2099 bridge
|
79 | 80 | RUN useradd -rm -d /home/2001 -s /bin/bash -g 2099 -u 2001 bridge
|
80 | 81 |
|
81 |
| -# Chown all the files to the grafanabridge 'bridge' user. |
| 82 | +# Chown all the files to the grafanabridge 'bridge' user |
82 | 83 | RUN chown -R 2001:2099 /opt/IBM/bridge
|
83 | 84 | RUN chown -R 2001:2099 /opt/IBM/zimon
|
84 | 85 | RUN chown -R 2001:2099 /var/mmfs/gen
|
|
0 commit comments