From 1382dbf454300aa04d401f0664ab5e87efd147b3 Mon Sep 17 00:00:00 2001 From: Adrian Gibanel bTactic Date: Thu, 7 May 2026 13:21:14 +0200 Subject: [PATCH] docs: add shared build requisites guide --- build/BUILD_REQUISITES.md | 103 ++++++++++++++++++++++++++++++++++++++ build/README.md | 2 + develop/README.md | 2 + 3 files changed, 107 insertions(+) create mode 100644 build/BUILD_REQUISITES.md diff --git a/build/BUILD_REQUISITES.md b/build/BUILD_REQUISITES.md new file mode 100644 index 0000000..f354dc4 --- /dev/null +++ b/build/BUILD_REQUISITES.md @@ -0,0 +1,103 @@ +# Build Requisites + +## Introduction + +To simplify Euro-Office Document Server builds, this project uses Docker under the hood. +You will find instructions below to prepare your build user to run Docker correctly. +This setup is usually done only once per machine. + +These Docker instructions are focused on Ubuntu. If you use another OS or distro, +follow the equivalent Docker CE installation steps for your platform. + +Be aware of RHEL 8 based distributions. Look for a docker-ce how-to. Installing +the default `docker` package may install `podman` and `buildah`, which do not fully +behave like Docker CE for this workflow. + +## Choose a build user + +Builds should run with a regular user, not with `root`. That user must be a member +of the `docker` group. + +This documentation uses `eobuilder` as an example build user. + +Note for advanced users: if you must use `root` for Docker execution, review the +Dockerfiles used in this project and adjust your setup accordingly. + +## Docker setup + +Note: run these commands as `root` or as a user with `sudo` privileges. + +### Install Docker prerequisites + +```sh +sudo apt-get update +sudo apt-get remove docker docker-engine docker.io +sudo apt-get install linux-image-extra-$(uname -r) linux-image-extra-virtual +sudo apt-get install apt-transport-https ca-certificates curl software-properties-common +``` + +### Set up Docker apt repository + +```sh +curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - + +sudo tee /etc/apt/sources.list.d/docker.list <