Commit e2043d18 authored by Emilien Macchi's avatar Emilien Macchi

Initiate first scripts

parent cfc8e7df
.demo-magic/*
These scripts are running on a fresh Fedora 29 and demonstrate the new
container tools (Buildah, Podman, Skopeo).
#!/bin/bash
trap cleanup EXIT
cleanup() {
podman rm -af 2> /dev/null
sudo podman rm -afa 2> /dev/null
rm -rf /var/lib/containers 2> /dev/null
rm -rf ~/.config/containers 2> /dev/null
}
#!/bin/bash
source prepare
source cleanup
source $demo_magic_dir/demo-magic.sh
#!/bin/bash
# Pre-run sanity checks
if [ ! -f /etc/fedora-release ];
echo "Container demos need to run on Fedora!"
exit 1
fi
# Install packages needed for the demos
sudo dnf install -y git buildah podman skopeo
# Install demo-magic
export = demo_magic_dir=$(mktemp -d)
git clone https://github.com/paxtonhare/demo-magic $demo_magic_dir
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment