irakli 8f7f1f20da
Some checks failed
continuous-integration/drone/push Build is failing
add woodpecker config
2024-12-09 15:23:14 +01:00
2023-01-05 12:12:51 +01:00
2022-01-14 14:51:41 +01:00
2024-09-20 00:34:24 +00:00
2024-12-09 15:23:14 +01:00
2024-08-21 12:56:49 +02:00
2023-01-05 12:12:51 +01:00
2023-11-05 15:17:27 +01:00
2023-06-08 14:59:30 +02:00
2022-01-14 14:37:43 +01:00

Minimal Docker example

in docs.fsfe.org Build Status REUSE status

This repo contains a rather minimalistic example of how a Docker service can look like in our infrastructure. It also shows how it's deployed via Drone.

It complements the technical documentation on Docker deployments for the FSFE System Hackers.

Important files

  • .drone.yml is picked up by our Drone CI, and executes the listed steps:
    • Check REUSE compliance
    • Run docker-compose to deploy the Docker container as defined, and only in defined events
    • On a defined docker host
    • For a rootless Docker environment
  • docker-compose.yml defines which containers are going to be started, and how they are described.
    • In this example very simple: building a Docker image based on the Dockerfile
    • It also exposes ports to the host and sets labels that allow our reverse proxy to channel incoming requests to the container
  • Dockerfile defines the layers of the Docker image minimaldocker that will be deployed.
    • Based on a well-maintained Python image
    • Running a very simple webserver that echoes HTTP requests
Description
A minimal example for a Docker container and how to deploy it
https://minimal-docker.fsfe.org Readme 112 KiB
Languages
Python 84.7%
Dockerfile 15.3%