Skip to content

Commit

Permalink
rhel7-info sample converted into UBI
Browse files Browse the repository at this point in the history
  • Loading branch information
Student User committed Jun 14, 2019
1 parent 810051f commit d038f7a
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ubi-info/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
FROM registry.access.redhat.com/ubi8/ubi:8.0
ADD info.sh /tmp
CMD /tmp/info.sh
10 changes: 10 additions & 0 deletions ubi-info/info.sh
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit d038f7a

Please sign in to comment.