container-schulung/README.md

58 lines
1.2 KiB
Markdown

# Container Training — Participant Materials
Welcome! This repository contains the code examples and listings for the 3-day container training.
## How to get this repo
```bash
git clone https://git.freemind.de/yberion/container-schulung.git
cd container-schulung
```
## Structure
```
listings/
visitcounter/
app/ ← Go application (Tag 2)
main.go
go.mod
Containerfile
docker-compose.yml
nginx/
default.conf
workspace/ ← dein Arbeitsverzeichnis (gitignored)
setup/
setup.sh ← Debian 12 Setup-Script
```
## Arbeiten im Kurs
Alle eigenen Dateien, Übungen und Experimente bitte in `workspace/` ablegen —
das Verzeichnis ist gitignored, deine Änderungen stören den `git status` nicht
und du kannst jederzeit `git pull` machen ohne Konflikte.
## Day 2 — Building and Running the App
```bash
cd listings/visitcounter
# Build the image
podman build -t visitcounter:latest app/
# Start the full stack
podman compose up -d
# Check it's running
curl localhost:8080
```
## Prerequisites
- Podman installed (`podman --version`)
- podman-compose installed (`podman compose version`)
- Go is **not** required — it compiles inside the container
## Questions?
Ask your trainer.