Live Exercise Example
- Write a simple shell script prints "Hello World" to STDOUT (1)
- Modify the shell script so the command that prints the above string is inside a function. Ensure that you call that function and so that the script still prints to STDOUT. (2)
- Make the print function you created in 2. run in a loop forever with a pause each time of 3 seconds until the script is terminated (2)
- Create a new docker container image using
apline
as the Parent Image. (2) - Execute the new container image locally for testing. Ensure that the container is running and that it is running the script. The container MUST run continuously (2)
- Create a new branch in the git repo that you cloned and commit the new files (1)
- Create a PR and merge your new changes back to the main branch (1)
- Publish your container to dockerhub.com (or any other publically accessible container repo) (1)
- Ask the moderator to share their screen desktop and guide them through building and running your new image (4)
- Follow up questions (4)