• Stars
    star
    317
  • Rank 131,439 (Top 3 %)
  • Language
    Dockerfile
  • License
    GNU General Publi...
  • Created over 10 years ago
  • Updated about 2 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

[MIRROR] Common effort to get an official and automated gentoo base docker container

Gentoo Docker Images

build

A collection of Dockerfiles for generating Gentoo docker images.

These images are intended to be created automatically by a cron job and pushed to docker hub. This repository include basic stage3 images and an image usable as a /var/db/repos/gentoo volume

DockerHub

https://hub.docker.com/u/gentoo/

Inventory

The following targets are built and pushed to Docker Hub:

  • portage
  • stage3
    • amd64
      • stage3-amd64-hardened-nomultilib-openrc
      • stage3-amd64-hardened-openrc
      • stage3-amd64-musl
      • stage3-amd64-musl-hardened
      • stage3-amd64-nomultilib-openrc
      • stage3-amd64-nomultilib-systemd
      • stage3-amd64-openrc
      • stage3-amd64-desktop-openrc
      • stage3-amd64-systemd
    • arm
      • stage3-armv5tel-openrc
      • stage3-armv5tel-systemd
      • stage3-armv6j-openrc
      • stage3-armv6j-systemd
      • stage3-armv6j_hardfp-openrc
      • stage3-armv6j_hardfp-systemd
      • stage3-armv7a-openrc
      • stage3-armv7a-systemd
      • stage3-armv7a_hardfp_musl-openrc
      • stage3-armv7a_hardfp-openrc
      • stage3-armv7a_hardfp-systemd
    • arm64
      • stage3-arm64-desktop-openrc
      • stage3-arm64-desktop-systemd
      • stage3-arm64-musl
      • stage3-arm64-musl-hardened
      • stage3-arm64-openrc
      • stage3-arm64-systemd
    • ppc
      • stage3-ppc64le-musl-hardened-openrc
      • stage3-ppc64le-openrc
      • stage3-ppc64le-systemd
    • riscv
      • stage3-rv64_lp64-openrc
      • stage3-rv64_lp64-systemd
      • stage3-rv64_lp64d-openrc
      • stage3-rv64_lp64d-systemd
    • s390
      • stage3-s390x
    • x86
      • stage3-i686-hardened-openrc
      • stage3-i686-musl
      • stage3-i686-openrc
      • stage3-i686-systemd

The following upstream stage3 targets are not built at all:

[deprecated]: Deprecated stage3 target

[selinux]: SELinux doesn't seem to make sense inside containers

[under testing]: Not ready for container. Our arch team is working on testing it

[unsupported]: Unsupported Docker architecture

Building the containers

The containers are created using a multi-stage build, which requires Docker >= 19.03.0. The container being built is defined by the TARGET environment variable:

TARGET=stage3-amd64 ./build.sh

Using the portage container as a data volume

docker create -v /var/db/repos/gentoo --name myportagesnapshot gentoo/portage:latest /bin/true
docker run --interactive --tty --volumes-from myportagesnapshot gentoo/stage3:latest /bin/bash

Using the portage container in a multi-stage build

docker-17.05.0 or later supports multi-stage builds, allowing the portage volume to be used when creating images based on a stage3 image.

Example Dockerfile

# name the portage image
FROM gentoo/portage:latest as portage

# based on stage3 image
FROM gentoo/stage3:latest

# copy the entire portage volume in
COPY --from=portage /var/db/repos/gentoo /var/db/repos/gentoo

# continue with image build ...
RUN emerge -qv www-servers/apache # or whichever packages you need

Contributing

We'd love to hear any ideas. Feel free to contact us via any of the following methods:

Policy

  • Use topic branches (i.e. foo) and fix branches (i.e. fix/foo) when submitting pull requests
  • Make meaningful commits ideally with the following form:
    • Subject line–what this commit does
    • Blank line
    • Body–why this commit is necessary or desired
  • Pull requests should not include merge commits
  • Use amend and rebase to fix commits after a pull request has been submitted

More Repositories

1

gentoo

[MIRROR] Official Gentoo ebuild repository
Shell
2,050
star
2

portage

[MIRROR] Package management system
Python
529
star
3

guru

[MIRROR] GURU: repository of new packages maintained collaboratively by users
Shell
179
star
4

sci

[MIRROR] Gentoo Science Overlay
Shell
151
star
5

musl

[MIRROR] musl development overlay
Shell
99
star
6

kde

[MIRROR] KDE team's testing overlay
Shell
97
star
7

pax-utils

[MIRROR] ELF related utils for ELF 32/64 binaries that can check files for security relevant properties
C
88
star
8

gentoo-rust

[MIRROR] Rust packages
Shell
81
star
9

dotnet

[MIRROR] Newer mono, .NET languages, and libraries
Shell
79
star
10

libressl

[MIRROR] LibreSSL ebuilds testing repository
Shell
72
star
11

gentoo-portage-rsync-mirror

[ORIGIN] DEPRECATED mirror of Gentoo git repository, use https://github.com/gentoo/gentoo for development & pull requests, https://github.com/gentoo-mirror/gentoo for syncing
61
star
12

qt

[MIRROR] Qt Team's testing overlay
Shell
55
star
13

devmanual

[MIRROR] Gentoo devmanual source
XSLT
51
star
14

api-gentoo-org

[MIRROR] Seed data for api.gentoo.org
Python
46
star
15

hwids

[MIRROR] Split packaging of pci.ids, usb.ids and what other database could be required
Python
37
star
16

gentoo-zsh-completions

[ORIGIN] Gentoo specific zsh completion support (ebuild, emerge, eselect, ...)
Shell
36
star
17

portage-utils

[MIRROR] Small and fast Portage helper tools written in C
Makefile
34
star
18

cargo-ebuild

[MIRROR] cargo extension that can generate ebuilds using the in-tree eclasses
Rust
33
star
19

dlang

[MIRROR] D programming language ebuild repository
Shell
30
star
20

layman

[MIRROR] layman: Gentoo overlay manager
Python
27
star
21

gentoo-syntax

[MIRROR] Gentoo Ebuild, Eclass, GLEP, ChangeLog and Portage Files syntax highlighting, filetype and indent settings for Vim
Vim Script
27
star
22

netifrc

[MIRROR] netifrc network configuration tools from OpenRC
Shell
26
star
23

catalyst

[MIRROR] Catalyst
Python
22
star
24

vmware

[MIRROR] VMware desktop ebuilds
Shell
21
star
25

gentoolkit

[MIRROR] Collection of administration scripts for Gentoo
Python
18
star
26

riscv

[MIRROR] gentoo riscv overlay
Shell
17
star
27

releng

[MIRROR] Content related to production of releases
Shell
16
star
28

java-overlay

[MIRROR] Java overlay
Shell
16
star
29

prefix

[MIRROR] Gentoo Prefix tree
Shell
16
star
30

sandbox

[MIRROR] Gentoo Sandbox Tool
C
15
star
31

gentoo-functions

[MIRROR] Base functions for Gentoo systems
Shell
13
star
32

porticron

[MIRROR] Portage sync script
Shell
13
star
33

crossdev

Shell
12
star
34

tatt

[MIRROR] arch testing tool
Python
11
star
35

gnome

[MIRROR] GNOME Overlay
Python
10
star
36

glibc

[MIRROR] Gentoo vendor branches of the glibc code
C
9
star
37

GenTwoo-backend

[ORIGIN] (no description)
Haskell
8
star
38

webapp-config

[MIRROR] Gentoo's installer for web-based applications
Python
7
star
39

lua

[MIRROR] Lua development overlay
Shell
7
star
40

parity

[ORIGIN] The Windows Compiler Wrapper
C++
7
star
41

java-ebuilder

[MIRROR] Java team tool for semi-automatic creation of ebuilds from pom.xml
Java
7
star
42

recruiting.gentoo.org

[ORIGIN] Recruiting web application for Gentoo linux
JavaScript
6
star
43

gentoo-apparmor-profiles

[ORIGIN] AppArmor profiles just for Gentoo
5
star
44

gentoo-gitmig-20150809-draft

[ORIGIN] Draft full migration of the entire gentoo cvs history (non-official)
Shell
5
star
45

matrix

[MIRROR] Overlay with clients, servers and services for the Matrix protocol
Shell
5
star
46

gentoo-bashcomp

[MIRROR] Gentoo-specific bash command-line completions (emerge, ebuild, equery, repoman, layman, etc)
Shell
5
star
47

soko

[MIRROR] packages.gentoo.org (PROD)
Go
5
star
48

pambase

[MIRROR] Base settings for PAM configuration in Gentoo
Smarty
5
star
49

eclipse-overlay

[MIRROR] Community effort at packaging Eclipse Java SDK >=4.4
Shell
5
star
50

gentoo-keys

[MIRROR] Seed-key files and utilities for managing gentoo gpg signing and verification keys
Python
5
star
51

grss

[MIRROR] Gentoo Reference Systems Suite
Python
4
star
52

tboxanalysis

[ORIGIN] (no description)
Ruby
4
star
53

pornview

[ORIGIN] no, this is just an image viewer (forked from http://sourceforge.net/projects/pornview/)
C
4
star
54

netifrc-systemd

[ORIGIN] netifrc systemd support (GSoC2014/rabisg, fork of netifrc)
Shell
3
star
55

repo-proj-wine

[MIRROR] All supported Wine ebuilds from the Gentoo Wine Project
Shell
3
star
56

gentoo-historical-2

[MIRROR] Another conversion of the historical gentoo-x86 ebuild repository
3
star
57

graveyard

[ORIGIN] Overlay for packages tree-cleaned from the official portage repository
Shell
3
star
58

gentoo-news

[MIRROR] Critical News (GLEP 42)
3
star
59

binutils-gdb

[MIRROR] Gentoo vendor branches of the binutils / gdb code
C
3
star
60

mirrors.gentoo.org

[ORIGIN] New web app for mirrors.g.o
JavaScript
3
star
61

x11

[MIRROR] X11 development overlay
Shell
2
star
62

pms

TeX
2
star
63

glsamaker

[MIRROR] Gentoo Security GLSA creation tool
Go
2
star
64

python

[MIRROR] Python overlay
2
star
65

mirrorselect

[MIRROR] Tool to help select distfiles mirrors for Gentoo
Python
2
star
66

pam_dotfile

[ORIGIN] Mirror of Lennart Poettering's pam_dotfile
C
2
star
67

ruby-overlay

[MIRROR] Official Ruby Project overlay for unsuitable-for-tree ebuilds
Shell
2
star
68

gentoo-mate

[MIRROR] Experimental MATE ebuilds
Shell
2
star
69

gcc-config

Shell
1
star
70

policy-guide

[MIRROR] Gentoo Policy Guide sources
Python
1
star
71

gentoo.github.com

[ORIGIN] gentoo.github.com
HTML
1
star
72

elfix

[MIRROR] Utilities to fix Elf binaries
C
1
star
73

eselect-qtgraphicssystem

[ORIGIN] (no description)
1
star
74

java-config

[MIRROR] java-config utility
Python
1
star
75

binutils-patches

Shell
1
star
76

linux-headers-patches

Shell
1
star
77

tex

[MIRROR] TeX specific matters
Makefile
1
star
78

tilera

[ORIGIN] tilera ebuild repository
1
star
79

elt-patches

Roff
1
star