aboutsummaryrefslogtreecommitdiff
path: root/contrib/helloimage/podman_hello_world.c
diff options
context:
space:
mode:
authortomsweeneyredhat <tsweeney@redhat.com>2022-02-10 12:28:42 -0500
committertomsweeneyredhat <tsweeney@redhat.com>2022-02-10 15:45:04 -0500
commit40ba9f10e5fbdd3c9d36389107b8bf1caec6cef0 (patch)
tree1aa7eda5aeb0d5aa44f3358d137568d04e892e29 /contrib/helloimage/podman_hello_world.c
parent6d2b54a731cf5ac9a7e760709748ee96a636d65e (diff)
downloadpodman-40ba9f10e5fbdd3c9d36389107b8bf1caec6cef0.tar.gz
podman-40ba9f10e5fbdd3c9d36389107b8bf1caec6cef0.tar.bz2
podman-40ba9f10e5fbdd3c9d36389107b8bf1caec6cef0.zip
Make the hello image leaner
[NO TESTS NEEDED] Change from using a bash script to a c file for running the image. With thanks to discussions with @afbjorklund, the Containerfile was rigged up to make the final image be only KB's in size. Also add USER 1000 to make the image test/run as non-root, and update the README.md Signed-off-by: tomsweeneyredhat <tsweeney@redhat.com>
Diffstat (limited to 'contrib/helloimage/podman_hello_world.c')
-rw-r--r--contrib/helloimage/podman_hello_world.c26
1 files changed, 26 insertions, 0 deletions
diff --git a/contrib/helloimage/podman_hello_world.c b/contrib/helloimage/podman_hello_world.c
new file mode 100644
index 000000000..ee574130d
--- /dev/null
+++ b/contrib/helloimage/podman_hello_world.c
@@ -0,0 +1,26 @@
+//###
+// ASCII art by the incomparable Máirín Duffy,
+// duffy@redhat.com, Twitter: @mairin
+// January 2022
+//###
+
+#include <stdio.h>
+int main() {
+ puts("\
+!... Hello Podman World ...!\n\
+\n\
+ .--\"--. \n\
+ / - - \\ \n\
+ / (O) (O) \\ \n\
+ ~~~| -=(,Y,)=- | \n\
+ .---. /` \\ |~~ \n\
+ ~/ o o \\~~~~.----. ~~ \n\
+ | =(X)= |~ / (O (O) \\ \n\
+ ~~~~~~~ ~| =(Y_)=- | \n\
+ ~~~~ ~~~| U |~~ \n\
+\n\
+Project: https://github.com/containers/podman\n\
+Website: https://podman.io\n\
+Documents: https://docs.podman.io\n\
+Twitter: @Podman_io");
+}