diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2019-03-02 10:06:40 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2019-03-02 10:39:04 +0000 |
commit | cebe592fb5eb4c1625cf5dcab1968c27cbc25d3e (patch) | |
tree | b4cc270e4a2c991ba207b2329c74d11412da2403 /share/doc/asciicast/introduction.sh | |
parent | Adding upstream version 20190222. (diff) | |
download | open-infrastructure-compute-tools-cebe592fb5eb4c1625cf5dcab1968c27cbc25d3e.tar.xz open-infrastructure-compute-tools-cebe592fb5eb4c1625cf5dcab1968c27cbc25d3e.zip |
Adding upstream version 20190301.upstream/20190301
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'share/doc/asciicast/introduction.sh')
-rwxr-xr-x | share/doc/asciicast/introduction.sh | 137 |
1 files changed, 0 insertions, 137 deletions
diff --git a/share/doc/asciicast/introduction.sh b/share/doc/asciicast/introduction.sh deleted file mode 100755 index 68b02d2..0000000 --- a/share/doc/asciicast/introduction.sh +++ /dev/null @@ -1,137 +0,0 @@ -#!/bin/sh - -# Copyright (C) 2014-2019 Daniel Baumann <daniel.baumann@open-infrastructure.net> -# -# SPDX-License-Identifier: GPL-3.0+ -# -# This program is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program. If not, see <http://www.gnu.org/licenses/>. - -set -e - -# Usage: sudo asciinema rec -c ./introduction.sh - -PS1="root@debian:~#" - -Command () -{ - COMMAND="${@}" - - echo - echo -n "${PS1} " - echo "${COMMAND}" - - ${COMMAND} - - echo "${PS1}" - echo - sleep 2 -} - -Text () -{ - TEXT="${@}" - - echo "${TEXT}" - sleep 2 -} - -# Content - -sleep 2 - -Text "# Welcome to this compute-tools introduction cast." -echo -echo - -Text "# 1. We're using Debian ($(lsb_release -cs))..." - -Command "lsb_release -a" - -Text "# ...and compute-tools version $(cnt version)." - -Command "cnt version" - - -Text "# 2. Let's list all available containers." -Text "#" -Text "# Note: there are no containers yet." - -Command "sudo cnt list" - - -Text "# 3. Let's create an example container." -Text "#" -Text "# Note: creating containers with the simple debootstrap" -Text "# container create script is slow as it doesn't cache anything." -Text "# Using the advanced debconf container create script for" -Text "# fast, automated, and reproducible setup of complex containers" -Text "# will be covered in a subsequent screencast." -Text "#" -Text "# Note: we're using a custom mirror here and" -Text "# a custom root password, see container-create-debootstrap(1)" -Text "# for more information about these options." - -Command "sudo cnt create -n example.net -s debootstrap -- -d stretch -m http://ftp.ch.debian.org/debian -p debian" - - -Text "# 4. Let's list all available containers." -Text "#" -Text "# Note: there's one container now." - -Command "sudo cnt list" - - -Text "# 5. Let's start the example container." - -Command "sudo cnt start -n example.net" - - -Text "# 6. Let's check if the container was started." - -Command "sudo cnt list" - - -Text "# 7. Let's stop the example container." - -Command "sudo cnt stop -n example.net" - - -Text "# 8. Let's check if the container was stopped." - -Command "sudo cnt list" - - -Text "# 9. Let's remove the example container." - -Command "sudo cnt remove -f -n example.net" - - -Text "# 10. Let's check if the container was removed." - -Command "sudo cnt list" - - -echo -echo -Text "# This concludes this introduction to compute-tools." -Text "#" -Text "# Thanks for watching and have fun setting up" -Text "# your own Linux containers based on systemd-nspawn" -Text "# using compute-tools from Open Infrastructure:" -Text "#" -Text "# https://open-infrastructure.net/software/compute-tools" - -sleep 2 - -exit 0 |