feat: Added additional information in base containerfile
This commit is contained in:
parent
695cbe518a
commit
70cb151691
1 changed files with 27 additions and 12 deletions
|
@ -2,16 +2,21 @@
|
|||
## These enable the produced image to be different by passing different build args.
|
||||
## They are provided on the commandline when building in a terminal, but the github
|
||||
## workflow provides them when building in Github Actions. Changes to the workflow
|
||||
## build.xml will override changes here.
|
||||
## build.yml will override changes here.
|
||||
|
||||
## SOURCE_IMAGE arg can be anything from ublue upstream: silverblue, kinoite, sericea, vauxite, mate, lxqt, base
|
||||
## SOURCE_IMAGE arg can be anything from ublue upstream: silverblue, kinoite, sericea, base
|
||||
## See list here: https://github.com/orgs/ublue-os/packages?repo_name=main
|
||||
ARG SOURCE_IMAGE="silverblue"
|
||||
|
||||
## SOURCE_SUFFIX arg should be "main", nvidia users should use "nvidia"
|
||||
ARG SOURCE_SUFFIX="main"
|
||||
|
||||
## FEDORA_VERSION arg must be a version built by ublue: 37 or 38 as of today
|
||||
ARG FEDORA_VERSION="38"
|
||||
ARG FEDORA_VERSION="39"
|
||||
|
||||
## NVIDIA_VERSION should only be changed if the user needs a specific nvidia driver version
|
||||
## if needing driver 535, this should be set to "-535". It is important to include the hyphen
|
||||
## This will depend on your hardware and the version of the driver that supports it.
|
||||
## if needing driver 470, this should be set to "-470". It is important to include the hyphen
|
||||
ARG NVIDIA_VERSION=""
|
||||
|
||||
|
||||
|
@ -21,6 +26,8 @@ FROM ghcr.io/ublue-os/${SOURCE_IMAGE}-${SOURCE_SUFFIX}:${FEDORA_VERSION}${NVIDIA
|
|||
|
||||
|
||||
### 3. PRE-MODIFICATIONS
|
||||
## This section is meant for any modifications to the image before the main modifications are made.
|
||||
|
||||
## this directory is needed to prevent failure with some RPM installs
|
||||
RUN mkdir -p /var/lib/alternatives
|
||||
|
||||
|
@ -28,15 +35,23 @@ RUN mkdir -p /var/lib/alternatives
|
|||
### 4. MODIFICATIONS
|
||||
## make modifications desired in your image and install packages here, a few examples follow
|
||||
|
||||
# install a package from standard fedora repo
|
||||
RUN rpm-ostree install screen
|
||||
#### Install packages
|
||||
|
||||
# install a package from rpmfusion repo
|
||||
# install a package from standard fedora repo or rpmfusion repo
|
||||
# RPMfusion packages are available by default in ublue main images
|
||||
# List of rpmfusion packages can be found here:
|
||||
# https://mirrors.rpmfusion.org/mirrorlist?path=free/fedora/updates/39/x86_64/repoview/index.html&protocol=https&redirect=1
|
||||
RUN rpm-ostree install screen
|
||||
# exmaple package from rpmfusion
|
||||
RUN rpm-ostree install vlc
|
||||
|
||||
#### Installation of static binaries
|
||||
|
||||
# static binaries can sometimes by added using a COPY directive like these below.
|
||||
COPY --from=cgr.dev/chainguard/kubectl:latest /usr/bin/kubectl /usr/bin/kubectl
|
||||
#COPY --from=docker.io/docker/compose-bin:latest /docker-compose /usr/bin/docker-compose
|
||||
# COPY --from=docker.io/docker/compose-bin:latest /docker-compose /usr/bin/docker-compose
|
||||
|
||||
#### Change to System Configuration Files
|
||||
|
||||
# modify default timeouts on system to prevent slow reboots from services that won't stop
|
||||
RUN sed -i 's/#DefaultTimeoutStopSec.*/DefaultTimeoutStopSec=15s/' /etc/systemd/user.conf && \
|
||||
|
|
Loading…
Reference in a new issue