So, I need to rewrite my container file and I need to print the text hello world.
Well, just to make sure, we are going to use echo and where is echo?
Aha!
Userbin echo.
I need that because in a container file, it's always smart to have an absolute pad name.
So, userbin sleep, is it going to be userbin echo?
And then we are going to run hello world.
And for the rest of it, do we need to dnf install vim and vim enhanced?
No.
I can remove that.
We don't need no vim in order to greet the world.
So, let's run it.
Popman build minus t greeter on dot.
The dot means that Popman build is going to look for a container file in the current directory.
If you have a lot of container files, every container file needs its own project directory.
But here we keep it simple and there is only one container file and oh, wow, that was fast.
Yeah, that was very fast because we already had the container image and it only needs
to create a new image with this custom command.
So, I am going to use Popman run localhost sleeper, greeter this time, not sleeper.
And there we can see it prints hello world.
And that's how you can containerize any application that you want to.
And in case you think, hey, haven't we heard that before?
Yeah, you have heard that before while we were talking about systemd units.
And the fun thing is that instead of using systemd units, you could also use containers.
Now, we do need to do one more thing and that is explore the properties that were set for the container.
So, I need Popman ps minus a because this container has just printed hello world.
A container being a fancy way to run a command, once it is done with the command, it will stop.
And that is what we can see right here.
So, if I want to do what Angry Jackson is doing, then I need Popman inspect Angry Jackson,
pipe it through less, and there we can see all the different properties that Angry Jackson has been using.
Well, so far, that's enough.
We finished the lab.