Skip to content

Commit d038f7a

Browse files
author
Student User
committed
rhel7-info sample converted into UBI
1 parent 810051f commit d038f7a

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

ubi-info/Dockerfile

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
FROM registry.access.redhat.com/ubi8/ubi:8.0
2+
ADD info.sh /tmp
3+
CMD /tmp/info.sh

ubi-info/info.sh

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#!/bin/bash
2+
3+
echo '--- Host name:'
4+
cat /proc/sys/kernel/hostname
5+
echo
6+
echo '--- Free memory'
7+
grep '^Mem' /proc/meminfo
8+
echo
9+
echo '--- Mounted file systems (partial)'
10+
df -h

0 commit comments

Comments
 (0)