buildpipeline

package
v0.0.0-...-4cb4cf9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 7, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CleanupDockerChroot

func CleanupDockerChroot(chroot string) (err error)

CleanupDockerChroot: Docker based only, clean chroot =>

  1. delete everything but the folders listed these folders are the ones mounted in docker run command (-v option)
  2. create empty folders these folders are required by chroot (e.g.: /run) and needs to be created empty to not inherit anything from previous build

func GetChrootDir

func GetChrootDir(proposedDir string) (chrootDir string, err error)

GetChrootDir returns the chroot folder

  • proposeDir is suggested folder name in case of Docker based build a chroot dir is selected from the chroot pool and proposeDir is ignored

func GetRpmsDir

func GetRpmsDir(chrootDir string, proposedDir string) string

GetRpmsDir returns the RPMS folder - proposeDir is suggested folder name and will be ignored in case of Docker based build

func IsRegularBuild

func IsRegularBuild() bool

IsRegularBuild indicates if it is a regular build (without using docker)

func ReleaseChrootDir

func ReleaseChrootDir(chrootDir string) (err error)

ReleaseChrootDir releases a chroot dir note that this routine does nothing case of regular build

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL