Anyone remember the 1999 science fiction action movie The Matrix ?
Well, what about retrieving the mystery and imagination, interested ?
Well, what about retrieving the mystery and imagination, interested ?
Okay, let's get started - on a Red Hat system create a new container simulating Neo's machine.
Download the cmatrix package from the Fedora repositories - and extract the downloaded file.
First - if not already installed - install the container tools :
$ sudo dnf install buildah podman skopeo
$ wget https://kojipkgs.fedoraproject.org//packages/cmatrix/1.2a/4.fc30/x86_64/cmatrix-1.2a-4.fc30.x86_64.rpm
$ rpm2cpio cmatrix-1.2a-4.fc30.x86_64.rpm | cpio -id
Pull the RHEL 8 Universal Base Image - and create a new container.
$ podman pull registry.access.redhat.com/ubi8/ubi
$ podman run --name matrix -it registry.access.redhat.com/ubi8/ubi /usr/bin/bash
Leave the container : # exit
Copy the binary into the container - and then restart the container.
$ podman cp usr/bin/cmatrix matrix:/usr/bin/matrix
$ podman start --attach matrix
Show usage options : # matrix -h
Start the animation : # matrix
Stop the animation : # q
Leave the container : # exit
Cool, isn't it ? :)
Download the cmatrix package from the Fedora repositories - and extract the downloaded file.
First - if not already installed - install the container tools :
$ sudo dnf install buildah podman skopeo
$ wget https://kojipkgs.fedoraproject.org//packages/cmatrix/1.2a/4.fc30/x86_64/cmatrix-1.2a-4.fc30.x86_64.rpm
$ rpm2cpio cmatrix-1.2a-4.fc30.x86_64.rpm | cpio -id
Pull the RHEL 8 Universal Base Image - and create a new container.
$ podman pull registry.access.redhat.com/ubi8/ubi
$ podman run --name matrix -it registry.access.redhat.com/ubi8/ubi /usr/bin/bash
Leave the container : # exit
Copy the binary into the container - and then restart the container.
$ podman cp usr/bin/cmatrix matrix:/usr/bin/matrix
$ podman start --attach matrix
Show usage options : # matrix -h
Start the animation : # matrix
Stop the animation : # q
Leave the container : # exit
Cool, isn't it ? :)