Skip to content

swisspost/container_day_ict_campus

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

62 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Container Day ICT-Campus

Introduction to containers for trainees of SwissPost

About

The container day is a one-day workshop that teaches trainees in their frist year of apprenticeship the basics about containers. The goal in the end of this workshop is, that everyone is comfortable building their own images and running containers using Docker on a single host.

There's also a short introduction to Kubernetes to show that there's more than just plain Docker.

Help

Exercises

Those are exercises that guide you through running pre-built and self-built containers using docker. It's recommended to go through the exercises in the order they are listed below.

Prepare

To run the exercises you must have:

  • cloned the repo
  • docker installed
  • an editor installed

To start with, installing Portainer can help:

docker volume create portainer_data 
docker run -d -p 8000:8000 -p 9000:9000 --name portainer --restart=always -v /var/run/docker.sock:/var/run/docker.sock -v portainer_data:/data portainer/portainer-ce:latest

Now you can visit the admin dashboard in the browser:http://localhost:9000

Note: for every exercise it's important that you change inside it's directory using cd, otherwise the solutions won't work.

Beginner

  • Hello World: Very basic dockerfile that runs a bash script at startup (same as in live demo)
  • Webserver: Very simple webserver that presents a static website

Advanced

  • Highly available webserver: High-available version of the static website using multiple webservers and a reverse-proxy
  • filebrowser: Basic web-based filebrowser to view/edit/share files on the web
  • Gitea: Lightweight but powerful git server to self-host as container (uses a mysql database)
  • wikijs: Wonderful wiki solution for a self-hosted wiki
  • pihole: Advertisement and internet tracker blocking application
  • linkwarden: Collaborative bookmark manager

Expert

If you want to go deeper into container and kubernetes checkout the following links: