-
Notifications
You must be signed in to change notification settings - Fork 107
Containerization of TM and TDS #2076
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
portante
merged 5 commits into
distributed-system-analysis:main
from
portante:containerized-tds-tm
Mar 30, 2021
Merged
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
d8aafdb
Add missing distro targets to the Makefile
portante 49ac6e7
Containerization of TM and TDS
portante 236473b
Use the PCP "bintray" repos for PCP RPMs
portante df76133
Expose PCP ports; correct firewall files
portante 2ec2345
New dcgm-exporter update with visualizers
portante File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| <?xml version="1.0" encoding="utf-8"?> | ||
| <service> | ||
| <short>pbench-dcgm-exporter</short> | ||
| <description>Pbench Agent Prometheus dcgm-exporter</description> | ||
| <port protocol="tcp" port="9400"/> | ||
| </service> | ||
|
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,6 @@ | ||
| <?xml version="1.0" encoding="utf-8"?> | ||
| <service> | ||
| <short>pbench-tool-data-sink</short> | ||
| <description>Pbench Agent Tool Data Sink</description> | ||
| <port protocol="tcp" port="8080"/> | ||
| <short>pbench-redis</short> | ||
| <description>Pbench Agent Redis Server</description> | ||
| <port protocol="tcp" port="17001"/> | ||
| </service> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,6 @@ | ||
| <?xml version="1.0" encoding="utf-8"?> | ||
| <service> | ||
| <short>pbench-redis</short> | ||
| <description>Pbench Agent Redis Server</description> | ||
| <port protocol="tcp" port="17001"/> | ||
| <short>pbench-tool-data-sink</short> | ||
| <description>Pbench Agent Tool Data Sink</description> | ||
| <port protocol="tcp" port="8080"/> | ||
| </service> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,15 @@ | ||
| # NOTE: Must be run with --privileged | ||
| # RECOMMENDED: Use with the fedora image variants for direct compatibility | ||
| FROM pbench-agent-tool-meister-{{ distro }}:{{ tag }} | ||
|
|
||
| RUN {% if distro == 'centos-7' %}yum{% else %}dnf{% endif %} install -y 'dnf-command(config-manager)' && \ | ||
| {% if distro == 'centos-7' %}yum{% else %}dnf{% endif %} config-manager --add-repo https://developer.download.nvidia.com/compute/cuda/repos/{{ distro.split("-")|join("") }}/x86_64/cuda-{{ distro.split("-")|join("") }}.repo && \ | ||
| {% if distro == 'centos-7' %}yum{% else %}dnf{% endif %} clean expire-cache && \ | ||
| {% if distro == 'centos-7' %}yum{% else %}dnf{% endif %} install -y nvidia-driver-cuda nvidia-modprobe datacenter-gpu-manager-2.1.4 golang && \ | ||
| git clone https://github.com/NVIDIA/gpu-monitoring-tools.git && \ | ||
| (cd gpu-monitoring-tools; git checkout tags/2.1.2 -b build; make binary install) && \ | ||
| {% if distro == 'centos-7' %}yum{% else %}dnf{% endif %} -y clean all && \ | ||
| rm -rf /var/cache/{% if distro == 'centos-7' %}yum{% else %}dnf{% endif %} | ||
|
|
||
| ENV NVIDIA_DISABLE_REQUIRE="true" \ | ||
| NVIDIA_VISIBLE_DEVICES=all |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,10 +1,14 @@ | ||
| # {{ distro }} pbench-agent {{ kind }} image | ||
| FROM pbench-agent-base-{{ distro }}:{{ tag }} | ||
|
|
||
| {% if kind in ('tools', 'all') %} | ||
| COPY ./{{ distro }}-pcp.repo /etc/yum.repos.d/pcp.repo | ||
| {% endif %} | ||
|
|
||
| # Install all the RPMs required for this image. | ||
| # | ||
| # FIXME: this is not exhaustive, it does not include RPMs to support | ||
| # Kubernetes or RHV environments. | ||
| RUN {% if distro == 'centos-7' %}yum{% else %}dnf{% endif %} install -y {% if distro == 'centos-8' %}--enablerepo powertools {% endif %}{{ rpms }} && \ | ||
| RUN {% if distro == 'centos-7' %}yum{% else %}dnf{% endif %} install -y --setopt=tsflags=nodocs {% if distro == 'centos-8' %}--enablerepo powertools {% endif %}{% if kind in ('tools', 'all') %}--enablerepo pcp {% endif %}{{ rpms }} && \ | ||
| {% if distro == 'centos-7' %}yum{% else %}dnf{% endif %} -y clean all && \ | ||
| rm -rf /var/cache/{% if distro == 'centos-7' %}yum{% else %}dnf{% endif %} | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| # {{ distro }} pbench-agent-tool-data-sink image | ||
| FROM pbench-agent-tools-{{ distro }}:{{ tag }} | ||
|
|
||
| VOLUME /var/lib/pbench-agent | ||
|
|
||
| # Port 8080 should be Bottle server, 9090 optional Prometheus server, and 44566 | ||
| # the optional pmproxy server. | ||
| EXPOSE 8080 9090 44566 | ||
| ENTRYPOINT [ "/opt/pbench-agent/util-scripts/tool-meister/tool-data-sink-ep" ] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| # {{ distro }} pbench-agent-tool-meister image | ||
| FROM pbench-agent-tools-{{ distro }}:{{ tag }} | ||
|
|
||
| # Port 9400 should be the optional dcgm tool, 9100 the optional node_exporter | ||
| # tool, and 55677 the pcp (pmcd) tool. | ||
| EXPOSE 9100 9400 55677 | ||
| ENTRYPOINT [ "/opt/pbench-agent/util-scripts/tool-meister/tool-meister-ep" ] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| [pcp] | ||
| name=pcp | ||
| baseurl=https://dl.bintray.com/pcp/{{ target }} | ||
| gpgcheck=0 | ||
| repo_gpgcheck=0 | ||
| enabled=1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.