rhel7-info sample converted into UBI
This commit is contained in:
parent
810051f5d2
commit
d038f7a052
2 changed files with 13 additions and 0 deletions
3
ubi-info/Dockerfile
Normal file
3
ubi-info/Dockerfile
Normal 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
10
ubi-info/info.sh
Executable 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
|
||||||
Loading…
Add table
Reference in a new issue