From d038f7a05211b411a856ce71364959d9c059023c Mon Sep 17 00:00:00 2001 From: Student User Date: Fri, 14 Jun 2019 20:33:03 +0000 Subject: [PATCH] rhel7-info sample converted into UBI --- ubi-info/Dockerfile | 3 +++ ubi-info/info.sh | 10 ++++++++++ 2 files changed, 13 insertions(+) create mode 100644 ubi-info/Dockerfile create mode 100755 ubi-info/info.sh diff --git a/ubi-info/Dockerfile b/ubi-info/Dockerfile new file mode 100644 index 0000000000..a91a356168 --- /dev/null +++ b/ubi-info/Dockerfile @@ -0,0 +1,3 @@ +FROM registry.access.redhat.com/ubi8/ubi:8.0 +ADD info.sh /tmp +CMD /tmp/info.sh diff --git a/ubi-info/info.sh b/ubi-info/info.sh new file mode 100755 index 0000000000..b3dcbfa8b9 --- /dev/null +++ b/ubi-info/info.sh @@ -0,0 +1,10 @@ +#!/bin/bash + +echo '--- Host name:' +cat /proc/sys/kernel/hostname +echo +echo '--- Free memory' +grep '^Mem' /proc/meminfo +echo +echo '--- Mounted file systems (partial)' +df -h