Documentation ¶
Index ¶
- Constants
- Variables
- func FetchRef(client *dagger.Client, repo, commit string) *dagger.GitRef
- func InstallGo(ctx context.Context, c *dagger.Container, ...) (*dagger.Container, error)
- func MirrorPrefix() string
- func WithPlatformEnvs(c *dagger.Container, build, target dagger.Platform) *dagger.Container
- func YumInstall(c *dagger.Container, pkgs ...string) *dagger.Container
- type GoVersionFunc
- type MakeTargetFunc
- type Packager
- type Target
- func Bionic(ctx context.Context, client *dagger.Client, platform dagger.Platform, ...) (*Target, error)
- func Bookworm(ctx context.Context, client *dagger.Client, platform dagger.Platform, ...) (*Target, error)
- func Bullseye(ctx context.Context, client *dagger.Client, platform dagger.Platform, ...) (*Target, error)
- func Buster(ctx context.Context, client *dagger.Client, platform dagger.Platform, ...) (*Target, error)
- func Centos7(ctx context.Context, client *dagger.Client, platform dagger.Platform, ...) (*Target, error)
- func Focal(ctx context.Context, client *dagger.Client, platform dagger.Platform, ...) (*Target, error)
- func GetTarget(ctx context.Context, distro string, client *dagger.Client, ...) (*Target, error)
- func Jammy(ctx context.Context, client *dagger.Client, platform dagger.Platform, ...) (*Target, error)
- func Mariner2(ctx context.Context, client *dagger.Client, platform dagger.Platform, ...) (*Target, error)
- func Noble(ctx context.Context, client *dagger.Client, platform dagger.Platform, ...) (*Target, error)
- func Rhel8(ctx context.Context, client *dagger.Client, platform dagger.Platform, ...) (*Target, error)
- func Rhel9(ctx context.Context, client *dagger.Client, platform dagger.Platform, ...) (*Target, error)
- func Windows(ctx context.Context, client *dagger.Client, platform dagger.Platform, ...) (*Target, error)
- func (t *Target) AptInstall(pkgs ...string) *Target
- func (t *Target) Container() *dagger.Container
- func (t *Target) InstallGo(ctx context.Context, goVersion string) (*Target, error)
- func (t *Target) Make(project *archive.Spec, projectDir, hackCrossDir *dagger.Directory) (*dagger.Directory, error)
- func (t *Target) Packager(projectName, distro, version string) (Packager, error)
- func (t *Target) PkgKind() string
- func (t *Target) Winres() *dagger.File
- func (t *Target) WithExec(args []string, opts ...dagger.ContainerWithExecOpts) *Target
- func (t *Target) WithPlatformEnvs() *Target
Constants ¶
View Source
const (
GoRepo = "mcr.microsoft.com/oss/go/microsoft/golang"
)
View Source
const Mariner2Ref = "mcr.microsoft.com/cbl-mariner/base/core:2.0"
Variables ¶
View Source
var ( BionicRef = path.Join(MirrorPrefix(), "buildpack-deps:bionic") BionicAptCacheKey = "bionic-apt-cache" BionicAptLibCacheKey = "bionic-apt-lib-cache" )
View Source
var ( BookwormRef = path.Join(MirrorPrefix(), "buildpack-deps:bookworm") BookwormAptCacheKey = "bookworm-apt-cache" BookwormAptLibCacheKey = "bookworm-apt-lib-cache" )
View Source
var ( BullseyeRef = path.Join(MirrorPrefix(), "buildpack-deps:bullseye") BullseyeAptCacheKey = "bullseye-apt-cache" BullseyeAptLibCacheKey = "bullseye-apt-lib-cache" )
View Source
var ( BusterRef = path.Join(MirrorPrefix(), "buildpack-deps:buster") BusterAptCacheKey = "buster-apt-cache" BusterAptLibCacheKey = "buster-apt-lib-cache" )
View Source
var ( FocalRef = path.Join(MirrorPrefix(), "buildpack-deps:focal") FocalAptCacheKey = "focal-apt-cache" FocalAptLibCacheKey = "focal-apt-lib-cache" )
View Source
var ( JammyRef = path.Join(MirrorPrefix(), "buildpack-deps:jammy") JammyAptCacheKey = "jammy-apt-cache" JammyAptLibCacheKey = "jammy-apt-lib-cache" )
View Source
var ( NobleRef = path.Join(MirrorPrefix(), "buildpack-deps:noble") NobleAptCacheKey = "noble-apt-cache" NobleAptLibCacheKey = "noble-apt-lib-cache" )
View Source
var ( BaseWinPackages = []string{ "binutils-mingw-w64", "g++-mingw-w64-x86-64", "gcc", "git", "make", "pkg-config", "quilt", "zip", } BaseDebPackages = []string{ "build-essential", "cmake", "dh-make", "devscripts", "dh-apparmor", "dpkg-dev", "equivs", "fakeroot", "libbtrfs-dev", "libdevmapper-dev", "libltdl-dev", "libseccomp-dev", "quilt", } BaseBionicPackages = []string{ "bash", "build-essential", "cmake", "dh-make", "devscripts", "dh-apparmor", "dpkg-dev", "equivs", "fakeroot", "libdevmapper-dev", "libltdl-dev", "libseccomp-dev", "quilt", } BaseMarinerPackages = []string{ "bash", "binutils", "build-essential", "ca-certificates", "cmake", "device-mapper-devel", "diffutils", "dnf-utils", "file", "gcc", "git", "glibc-static", "libffi-devel", "libseccomp-devel", "libtool", "libtool-ltdl-devel", "make", "patch", "pkgconfig", "pkgconfig(systemd)", "rpm-build", "rpmdevtools", "selinux-policy-devel", "systemd-devel", "tar", "which", "yum-utils", } BaseRPMPackages = []string{ "bash", "ca-certificates", "cmake", "device-mapper-devel", "gcc", "git", "glibc-static", "libseccomp-devel", "libtool", "libtool-ltdl-devel", "make", "make", "patch", "pkgconfig", "pkgconfig(systemd)", "rpmdevtools", "selinux-policy-devel", "systemd-devel", "tar", "which", "yum-utils", } GetGoVersionForPackage = map[string]GoVersionFunc{ "moby-buildx": buildx.GoVersion, "moby-cli": cli.GoVersion, "moby-compose": compose.GoVersion, "moby-containerd": containerd.GoVersion, "moby-containerd-shim-systemd": shim.GoVersion, "moby-engine": engine.GoVersion, "moby-runc": runc.GoVersion, "moby-tini": tini.GoVersion, } )
View Source
var (
Centos7Ref = path.Join(MirrorPrefix(), "centos:7")
)
View Source
var (
GoModCacheKey = "go-mod-cache"
)
View Source
var (
Rhel8Ref = path.Join(MirrorPrefix(), "almalinux:8")
)
View Source
var (
Rhel9Ref = path.Join(MirrorPrefix(), "almalinux:9")
)
View Source
var (
WindowsRef = path.Join(MirrorPrefix(), "buildpack-deps:bullseye")
)
Functions ¶
func MirrorPrefix ¶
func MirrorPrefix() string
func WithPlatformEnvs ¶
Types ¶
type GoVersionFunc ¶
type MakeTargetFunc ¶
type Target ¶
type Target struct {
// contains filtered or unexported fields
}
func (*Target) AptInstall ¶
func (*Target) Winres ¶
Winres is used during windows builds (as part of the project build scripts) to "manifest" binaries. This is required for windows to properly identify the binaries.
func (*Target) WithExec ¶
func (t *Target) WithExec(args []string, opts ...dagger.ContainerWithExecOpts) *Target
func (*Target) WithPlatformEnvs ¶
Click to show internal directories.
Click to hide internal directories.