rhel7-info sample converted into UBI

This commit is contained in:
Student User 2019-06-14 20:33:03 +00:00
parent 810051f5d2
commit d038f7a052
2 changed files with 13 additions and 0 deletions

3
ubi-info/Dockerfile Normal file
View file

@ -0,0 +1,3 @@
FROM registry.access.redhat.com/ubi8/ubi:8.0
ADD info.sh /tmp
CMD /tmp/info.sh

10
ubi-info/info.sh Executable file
View file

@ -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