49 lines
899 B
Markdown
49 lines
899 B
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 participants
|
|
```
|
|
|
|
## Structure
|
|
|
|
```
|
|
listings/
|
|
visitcounter/
|
|
app/ ← Go application (Tag 2)
|
|
main.go
|
|
go.mod
|
|
Containerfile
|
|
docker-compose.yml
|
|
nginx/
|
|
default.conf
|
|
```
|
|
|
|
## 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.
|