From d038f7a05211b411a856ce71364959d9c059023c Mon Sep 17 00:00:00 2001
From: Student User <student@workstation.lab.example.com>
Date: Fri, 14 Jun 2019 22:33:03 +0200
Subject: [PATCH] rhel7-info sample converted into UBI

---
 ubi-info/info.sh    |   10 ++++++++++
 ubi-info/Dockerfile |    3 +++
 2 files changed, 13 insertions(+), 0 deletions(-)

diff --git a/ubi-info/Dockerfile b/ubi-info/Dockerfile
new file mode 100644
index 0000000..a91a356
--- /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 0000000..b3dcbfa
--- /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

--
Gitblit v1.9.3