diff --git a/listings/exercises/ex05-networking/commands.sh b/listings/exercises/ex05-networking/commands.txt old mode 100755 new mode 100644 similarity index 97% rename from listings/exercises/ex05-networking/commands.sh rename to listings/exercises/ex05-networking/commands.txt index 303f210..9c24c00 --- a/listings/exercises/ex05-networking/commands.sh +++ b/listings/exercises/ex05-networking/commands.txt @@ -1,4 +1,3 @@ -#!/bin/bash # Exercise 5 — Container Networking podman network create appnet diff --git a/listings/exercises/ex06-bind-mount/commands.sh b/listings/exercises/ex06-bind-mount/commands.txt old mode 100755 new mode 100644 similarity index 97% rename from listings/exercises/ex06-bind-mount/commands.sh rename to listings/exercises/ex06-bind-mount/commands.txt index 39954b4..d42b409 --- a/listings/exercises/ex06-bind-mount/commands.sh +++ b/listings/exercises/ex06-bind-mount/commands.txt @@ -1,4 +1,3 @@ -#!/bin/bash # Exercise 6 — Bind Mounts # Terminal 1: write dates to /tmp/output (detached) diff --git a/listings/exercises/ex07-named-volume/commands.sh b/listings/exercises/ex07-named-volume/commands.txt old mode 100755 new mode 100644 similarity index 97% rename from listings/exercises/ex07-named-volume/commands.sh rename to listings/exercises/ex07-named-volume/commands.txt index c637232..3fadbb2 --- a/listings/exercises/ex07-named-volume/commands.sh +++ b/listings/exercises/ex07-named-volume/commands.txt @@ -1,4 +1,3 @@ -#!/bin/bash # Exercise 7 — Named Volumes (shared between containers) podman volume create pizza diff --git a/listings/exercises/ex08-persistence/commands.sh b/listings/exercises/ex08-persistence/commands.txt old mode 100755 new mode 100644 similarity index 97% rename from listings/exercises/ex08-persistence/commands.sh rename to listings/exercises/ex08-persistence/commands.txt index 9a06c55..7ef4609 --- a/listings/exercises/ex08-persistence/commands.sh +++ b/listings/exercises/ex08-persistence/commands.txt @@ -1,4 +1,3 @@ -#!/bin/bash # Exercise 8 — Volume Persistence (data survives container removal) podman volume create pasta diff --git a/listings/exercises/ex09-env-variables/commands.sh b/listings/exercises/ex09-env-variables/commands.txt old mode 100755 new mode 100644 similarity index 97% rename from listings/exercises/ex09-env-variables/commands.sh rename to listings/exercises/ex09-env-variables/commands.txt index 835bac7..fa90f77 --- a/listings/exercises/ex09-env-variables/commands.sh +++ b/listings/exercises/ex09-env-variables/commands.txt @@ -1,4 +1,3 @@ -#!/bin/bash # Exercise 9 — Environment Variables # Single variables via -e diff --git a/listings/exercises/ex13-multistage/commands.sh b/listings/exercises/ex13-multistage/commands.txt old mode 100755 new mode 100644 similarity index 93% rename from listings/exercises/ex13-multistage/commands.sh rename to listings/exercises/ex13-multistage/commands.txt index d72e272..8dfe0b4 --- a/listings/exercises/ex13-multistage/commands.sh +++ b/listings/exercises/ex13-multistage/commands.txt @@ -1,4 +1,3 @@ -#!/bin/bash # Exercise 13 — Multi-stage Build # Build diff --git a/listings/exercises/ex14-push/commands.sh b/listings/exercises/ex14-push/commands.txt old mode 100755 new mode 100644 similarity index 96% rename from listings/exercises/ex14-push/commands.sh rename to listings/exercises/ex14-push/commands.txt index 478bab0..47a44c7 --- a/listings/exercises/ex14-push/commands.sh +++ b/listings/exercises/ex14-push/commands.txt @@ -1,4 +1,3 @@ -#!/bin/bash # Exercise 14 — Push image to local registry # Tag and push diff --git a/listings/exercises/ex15-registry-api/commands.sh b/listings/exercises/ex15-registry-api/commands.txt old mode 100755 new mode 100644 similarity index 96% rename from listings/exercises/ex15-registry-api/commands.sh rename to listings/exercises/ex15-registry-api/commands.txt index 78c27d0..b1c7119 --- a/listings/exercises/ex15-registry-api/commands.sh +++ b/listings/exercises/ex15-registry-api/commands.txt @@ -1,4 +1,3 @@ -#!/bin/bash # Exercise 15 — Query the local registry API # List all repositories in the registry diff --git a/listings/exercises/ex16-local-registry/commands.txt b/listings/exercises/ex16-local-registry/commands.txt new file mode 100644 index 0000000..bd77409 --- /dev/null +++ b/listings/exercises/ex16-local-registry/commands.txt @@ -0,0 +1,19 @@ +# Exercise 16 — Start a local registry and push the VisitCounter + +# Start the registry container +podman run -d --name local-registry -p 5000:5000 registry:2 + +# Build the VisitCounter image +cd listings/visitcounter/app +podman build -t localhost:5000/visitcounter:latest . + +# Push to the local registry +podman push --tls-verify=false localhost:5000/visitcounter:latest + +# Verify: list all repositories +curl http://localhost:5000/v2/_catalog +# → {"repositories":["visitcounter"]} + +# Verify: list tags +curl http://localhost:5000/v2/visitcounter/tags/list +# → {"name":"visitcounter","tags":["latest"]} diff --git a/listings/exercises/ex17-update-cycle/commands.txt b/listings/exercises/ex17-update-cycle/commands.txt new file mode 100644 index 0000000..43e76b2 --- /dev/null +++ b/listings/exercises/ex17-update-cycle/commands.txt @@ -0,0 +1,18 @@ +# Exercise 17 — Full update cycle (edit → build → push → restart) + +# 1. Change the page title in main.go +sed -i 's|