- install needed dep.s (momentarily just
live-server)
npm install- start the http-server to serve the presentation
npm startthen open in chrome-based(!) browsers
- create an AWS instance (currently 4GB RAM, small CPU, use a free version of AWS Linux, which is rpm based) add/choose your ssh key while creating the instance
- login (as ec2-user) and install docker
# sudo yum update # not needed for a freshly installed instance
sudo yum install docker
sudo usermod -a -G docker ec2-user
newgrp docker # get the docker group without logout/login
sudo systemctl enable docker.service
sudo systemctl start docker.service
# test if it worked
docker info- in a local shell
copy thecontainerfolder into the aws instance
cd .../fun-with-the-shell/
scp -r container ec2-user@aws-hostname:- create the image from the dockerfile on the instance
so grab the shell in the aws container again
cd container
docker build -t shell-training .if an error ocurrs like "... public key not correct ..." while doing the dnf command then delete the almalinux image with
docker image rm almalinux
- start all instances with the script
container/start-containers.shbe sure to check the script has line 6 commented out or nothing will happen - add a rule to alloe incoming access to the ports 2021-2036 under the point security groups