You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
RUN /usr/bin/pip3 install -r /root/requirements_ubi8.txt
16
-
RUN echo "Installed python version: $(/usr/bin/python3 -V)"
17
-
RUN echo "Installed python packages: $(/usr/bin/pip3 list)"
15
+
ARG USERNAME=bridge
16
+
ENV USER=$USERNAME
18
17
19
-
USER root
18
+
ARG GROUPNAME=bridge
19
+
ENV GROUP=$GROUPNAME
20
20
21
-
RUN mkdir -p /opt/IBM/bridge
22
-
RUN mkdir -p /opt/IBM/zimon
23
-
RUN mkdir -p /var/mmfs/gen
24
-
RUN mkdir -p /etc/ssl/certs
25
-
RUN mkdir -p /etc/perfmon-api-keys
21
+
ARG USERID=2001
22
+
ENV UID=$USERID
26
23
27
-
COPY LICENSE /licenses/
28
-
29
-
COPY ./source/ /opt/IBM/bridge
30
-
COPY ./source/gpfsConfig/mmsdrfs* /var/mmfs/gen/
31
-
COPY ./source/gpfsConfig/ZIMon* /opt/IBM/zimon/
24
+
ARG GROUPID=0
25
+
ENV GID=$GROUPID
32
26
33
27
ARG HTTPPROTOCOL=http
34
28
ENV PROTOCOL=$HTTPPROTOCOL
@@ -44,7 +38,6 @@ RUN echo "the PERFMONPORT port is set to $SERVERPORT"
44
38
45
39
ARG CERTPATH='/etc/bridge_ssl/certs'
46
40
ENV TLSKEYPATH=$CERTPATH
47
-
RUN mkdir -p $CERTPATH
48
41
49
42
ARG KEYFILE=None
50
43
ENV TLSKEYFILE=$KEYFILE
@@ -57,40 +50,77 @@ ENV APIKEYNAME=$KEYNAME
57
50
58
51
ARG KEYVALUE=None
59
52
ENV APIKEYVALUE=$KEYVALUE
60
-
RUN if [ "${APIKEYVALUE:0:1}" = "/" ]; then ln -s $APIKEYVALUE /etc/perfmon-api-keys; echo "APIKEYVALUE is a PATH"; else echo "APIKEYVALUE not a PATH"; fi
61
-
62
-
RUN if [ -z "$TLSKEYPATH" ] || [ -z "$TLSCERTFILE" ] || [ -z "$TLSKEYFILE" ] && [ "$PROTOCOL" = "https" ]; then echo "TLSKEYPATH FOR SSL CONNECTION NOT SET - ERROR"; exit 1; else echo "PASS"; fi
63
-
RUN echo "the ssl certificates path is set to $TLSKEYPATH"
64
53
65
54
ARG PMCOLLECTORIP=0.0.0.0
66
55
ENV SERVER=$PMCOLLECTORIP
67
56
RUN echo "the pmcollector server ip is set to $SERVER"
RUN if [ "${APIKEYVALUE:0:1}" = "/" ]; then ln -s $APIKEYVALUE /etc/perfmon-api-keys; echo "APIKEYVALUE is a PATH"; else echo "APIKEYVALUE not a PATH"; fi && \
82
+
if [ -z "$TLSKEYPATH" ] || [ -z "$TLSCERTFILE" ] || [ -z "$TLSKEYFILE" ] && [ "$PROTOCOL" = "https" ]; then echo "TLSKEYPATH FOR SSL CONNECTION NOT SET - ERROR"; exit 1; else echo "PASS"; fi
83
+
RUN echo "the ssl certificates path is set to $TLSKEYPATH"
84
+
85
+
# Switch to the working directory
86
+
WORKDIR /opt/IBM/bridge
87
+
RUN echo "$(pwd)"
93
88
89
+
# Create a container user
90
+
RUN if [ "$GID" -gt "0" ]; then groupadd -g $GID $GROUP; else echo "Since root GID specified skipping groupadd"; fi && \
[](https://bestpractices.coreinfrastructure.org/projects/5787)
4
4
5
5
The ***IBM Spectrum Scale bridge for Grafana*** could be used for exploring IBM Spectrum Scale performance data on [Grafana dashboards](https://grafana.com/grafana/).
# Example deployment of a GrafanaDataSource instance in a k8s/OCP environment
2
2
3
3
4
-
Using the scripts in this folder you can deploy a GrafanaDataSource instance for the IBM Spectrum Scale Performance Monitoring Bridge for Grafana running in container
4
+
Using the scripts in this folder you can deploy a GrafanaDataSource instance for the IBM Spectrum Scale Performance Monitoring Bridge for Grafana running in in the project 'grafana-for-cnsa'
Alternatively you can install a Grafana instance using the OpenShift Container Platform web console. Please check the instructions described in the deployment examples stored in the project [Wiki](/docs/grafana_deployment_ocp.md)
0 commit comments