https://github.com/rahilarious/gentoo-containers
Containerfiles (or Dockerfiles) for building Gentoo and applications with ~amd64, different micro architecture levels and added useful utilities
https://github.com/rahilarious/gentoo-containers
container-image containerization containers docker-image docker-image-builder docker-images gentoo gentoo-linux podman podman-image stage3
Last synced: 12 days ago
JSON representation
Containerfiles (or Dockerfiles) for building Gentoo and applications with ~amd64, different micro architecture levels and added useful utilities
- Host: GitHub
- URL: https://github.com/rahilarious/gentoo-containers
- Owner: rahilarious
- Created: 2023-03-08T07:39:27.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2025-07-08T08:14:22.000Z (12 months ago)
- Last Synced: 2025-07-08T09:28:54.144Z (12 months ago)
- Topics: container-image, containerization, containers, docker-image, docker-image-builder, docker-images, gentoo, gentoo-linux, podman, podman-image, stage3
- Language: Dockerfile
- Homepage:
- Size: 166 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Gentoo on steroids
Based on official Gentoo stage3 of [amd64-nomultilib-systemd-mergedusr](https://bouncer.gentoo.org/fetch/root/all/releases/amd64//autobuilds/latest-stage3-amd64-nomultilib-systemd-mergedusr.txt) plus hardened profile.
#### Features:
* All binaries are **optimized** for your CPU [microarchitecture](https://en.wikipedia.org/wiki/X86-64#Microarchitecture_levels). Currently x86-64-v2 and x86-64-v3 are supported.
* Globally compiled with ```lto, pgo, graphite``` USE flags for utmost **performance**.
* Added essential **utilities** (i.e. tree, git, jq, htop, tmux, bash-completion..etc) in base image. Here is [full list](https://github.com/rahilarious/gentoo-containers/blob/main/base/Containerfile) of added packages.
* Keyword updated to ~amd64 offering **latest**, greatest and stable packages from Gentoo repos.
* Automated deployment and testing methods resuting in faster image **updates**
* All images are **tagged** with semantic versioning and base image's version (i.e. 2024.02.20)
* Most images are **compatible** with official images of that project (e.g. gento-redis)
* Save **storage** and **bandwidth** by less frequent base image updates (changes on toolchain upgrades which is like >3 months)
* Recompiled whole official stage3 with `--emptytree` to make sure every package is optimized.
* Well organized skeleton (boiler-plate) directory structure for /etc/portage
#### FAQs:
1. How do I know which [microarchitecture](https://en.wikipedia.org/wiki/X86-64#Microarchitecture_levels) my CPU has?
* Running `/lib*/ld-linux-x86-64.so* --help | grep -i supported` will show all supported microarchs by your CPU. If that doesn't work try `curl -sL https://raw.githubusercontent.com/HenrikBengtsson/x86-64-level/develop/x86-64-level | bash -s - --verbose`