initial commit with apps from course repo
This commit is contained in:
3
rhel7-info/Dockerfile
Normal file
3
rhel7-info/Dockerfile
Normal file
@@ -0,0 +1,3 @@
|
||||
FROM registry.access.redhat.com/rhel7/rhel-tools:7.3
|
||||
ADD info.sh /tmp
|
||||
CMD /tmp/info.sh
|
||||
11
rhel7-info/info.sh
Executable file
11
rhel7-info/info.sh
Executable file
@@ -0,0 +1,11 @@
|
||||
#!/bin/bash
|
||||
|
||||
echo '--- Host name:'
|
||||
#cat /proc/sys/kernel/hostname
|
||||
hostname
|
||||
echo
|
||||
echo '--- Free memory'
|
||||
free -h
|
||||
echo
|
||||
echo '--- Mounted file systems (partial)'
|
||||
df -h
|
||||
Reference in New Issue
Block a user