fedora
A Dagger module for working with and generating a container image from thespecified source Fedora image wrapping the dagger.Container type with several
Fedora specific methods
Installation
dagger install github.com/scottames/daggerverse/fedora@v0.0.6Entrypoint
Return Type
Fedora !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| registry | String | - | Container registry |
| org | String | - | Container registry organization |
| variant | String | - | Variant or image name |
| suffix | String | - | Variant suffix string e.g. main (as related to ublue-os images) |
| tag | String | - | Tag or major release version |
Example
dagger -m github.com/scottames/daggerverse/fedora@0d7b7de707fe14a147f43e3528b2d941dd5547e0 call \
func (m *MyModule) Example() *dagger.Fedora {
return dag.
Fedora()
}@function
def example() -> dagger.Fedora:
return (
dag.fedora()
)@func()
example(): Fedora {
return dag
.fedora()
}Types
Fedora 🔗
Fedora represents the constructed Fedora image
org() 🔗
Return Type
String Example
dagger -m github.com/scottames/daggerverse/fedora@0d7b7de707fe14a147f43e3528b2d941dd5547e0 call \
orgfunc (m *MyModule) Example(ctx context.Context) string {
return dag.
Fedora().
Org(ctx)
}@function
async def example() -> str:
return await (
dag.fedora()
.org()
)@func()
async example(): Promise<string> {
return dag
.fedora()
.org()
}registry() 🔗
Return Type
String ! Example
dagger -m github.com/scottames/daggerverse/fedora@0d7b7de707fe14a147f43e3528b2d941dd5547e0 call \
registryfunc (m *MyModule) Example(ctx context.Context) string {
return dag.
Fedora().
Registry(ctx)
}@function
async def example() -> str:
return await (
dag.fedora()
.registry()
)@func()
async example(): Promise<string> {
return dag
.fedora()
.registry()
}suffix() 🔗
Return Type
String Example
dagger -m github.com/scottames/daggerverse/fedora@0d7b7de707fe14a147f43e3528b2d941dd5547e0 call \
suffixfunc (m *MyModule) Example(ctx context.Context) string {
return dag.
Fedora().
Suffix(ctx)
}@function
async def example() -> str:
return await (
dag.fedora()
.suffix()
)@func()
async example(): Promise<string> {
return dag
.fedora()
.suffix()
}tag() 🔗
Return Type
String ! Example
dagger -m github.com/scottames/daggerverse/fedora@0d7b7de707fe14a147f43e3528b2d941dd5547e0 call \
tagfunc (m *MyModule) Example(ctx context.Context) string {
return dag.
Fedora().
Tag(ctx)
}@function
async def example() -> str:
return await (
dag.fedora()
.tag()
)@func()
async example(): Promise<string> {
return dag
.fedora()
.tag()
}variant() 🔗
Return Type
String ! Example
dagger -m github.com/scottames/daggerverse/fedora@0d7b7de707fe14a147f43e3528b2d941dd5547e0 call \
variantfunc (m *MyModule) Example(ctx context.Context) string {
return dag.
Fedora().
Variant(ctx)
}@function
async def example() -> str:
return await (
dag.fedora()
.variant()
)@func()
async example(): Promise<string> {
return dag
.fedora()
.variant()
}releaseVersion() 🔗
Return Type
String Example
dagger -m github.com/scottames/daggerverse/fedora@0d7b7de707fe14a147f43e3528b2d941dd5547e0 call \
release-versionfunc (m *MyModule) Example(ctx context.Context) string {
return dag.
Fedora().
ReleaseVersion(ctx)
}@function
async def example() -> str:
return await (
dag.fedora()
.release_version()
)@func()
async example(): Promise<string> {
return dag
.fedora()
.releaseVersion()
}baseImage() 🔗
Return Type
String ! Example
dagger -m github.com/scottames/daggerverse/fedora@0d7b7de707fe14a147f43e3528b2d941dd5547e0 call \
base-imagefunc (m *MyModule) Example(ctx context.Context) string {
return dag.
Fedora().
BaseImage(ctx)
}@function
async def example() -> str:
return await (
dag.fedora()
.base_image()
)@func()
async example(): Promise<string> {
return dag
.fedora()
.baseImage()
}baseImageVersion() 🔗
Return Type
String ! Example
dagger -m github.com/scottames/daggerverse/fedora@0d7b7de707fe14a147f43e3528b2d941dd5547e0 call \
base-image-versionfunc (m *MyModule) Example(ctx context.Context) string {
return dag.
Fedora().
BaseImageVersion(ctx)
}@function
async def example() -> str:
return await (
dag.fedora()
.base_image_version()
)@func()
async example(): Promise<string> {
return dag
.fedora()
.baseImageVersion()
}date() 🔗
Return Type
String ! Example
dagger -m github.com/scottames/daggerverse/fedora@0d7b7de707fe14a147f43e3528b2d941dd5547e0 call \
datefunc (m *MyModule) Example(ctx context.Context) string {
return dag.
Fedora().
Date(ctx)
}@function
async def example() -> str:
return await (
dag.fedora()
.date()
)@func()
async example(): Promise<string> {
return dag
.fedora()
.date()
}digests() 🔗
Return Type
[String ! ] ! Example
dagger -m github.com/scottames/daggerverse/fedora@0d7b7de707fe14a147f43e3528b2d941dd5547e0 call \
digestsfunc (m *MyModule) Example(ctx context.Context) []string {
return dag.
Fedora().
Digests(ctx)
}@function
async def example() -> List[str]:
return await (
dag.fedora()
.digests()
)@func()
async example(): Promise<string[]> {
return dag
.fedora()
.digests()
}directories() 🔗
Return Type
[DirectoryFromSource ! ] ! Example
dagger -m github.com/scottames/daggerverse/fedora@0d7b7de707fe14a147f43e3528b2d941dd5547e0 call \
directoriesfunc (m *MyModule) Example() []*dagger.FedoraDirectoryFromSource {
return dag.
Fedora().
Directories()
}@function
def example() -> List[dagger.FedoraDirectoryFromSource]:
return (
dag.fedora()
.directories()
)@func()
example(): FedoraDirectoryFromSource[] {
return dag
.fedora()
.directories()
}files() 🔗
Return Type
[FileFromSource ! ] ! Example
dagger -m github.com/scottames/daggerverse/fedora@0d7b7de707fe14a147f43e3528b2d941dd5547e0 call \
filesfunc (m *MyModule) Example() []*dagger.FedoraFileFromSource {
return dag.
Fedora().
Files()
}@function
def example() -> List[dagger.FedoraFileFromSource]:
return (
dag.fedora()
.files()
)@func()
example(): FedoraFileFromSource[] {
return dag
.fedora()
.files()
}packageGroupsInstalled() 🔗
Return Type
[String ! ] ! Example
dagger -m github.com/scottames/daggerverse/fedora@0d7b7de707fe14a147f43e3528b2d941dd5547e0 call \
package-groups-installedfunc (m *MyModule) Example(ctx context.Context) []string {
return dag.
Fedora().
PackageGroupsInstalled(ctx)
}@function
async def example() -> List[str]:
return await (
dag.fedora()
.package_groups_installed()
)@func()
async example(): Promise<string[]> {
return dag
.fedora()
.packageGroupsInstalled()
}packageGroupsRemoved() 🔗
Return Type
[String ! ] ! Example
dagger -m github.com/scottames/daggerverse/fedora@0d7b7de707fe14a147f43e3528b2d941dd5547e0 call \
package-groups-removedfunc (m *MyModule) Example(ctx context.Context) []string {
return dag.
Fedora().
PackageGroupsRemoved(ctx)
}@function
async def example() -> List[str]:
return await (
dag.fedora()
.package_groups_removed()
)@func()
async example(): Promise<string[]> {
return dag
.fedora()
.packageGroupsRemoved()
}packagesInstalled() 🔗
Return Type
[String ! ] ! Example
dagger -m github.com/scottames/daggerverse/fedora@0d7b7de707fe14a147f43e3528b2d941dd5547e0 call \
packages-installedfunc (m *MyModule) Example(ctx context.Context) []string {
return dag.
Fedora().
PackagesInstalled(ctx)
}@function
async def example() -> List[str]:
return await (
dag.fedora()
.packages_installed()
)@func()
async example(): Promise<string[]> {
return dag
.fedora()
.packagesInstalled()
}packagesRemoved() 🔗
Return Type
[String ! ] ! Example
dagger -m github.com/scottames/daggerverse/fedora@0d7b7de707fe14a147f43e3528b2d941dd5547e0 call \
packages-removedfunc (m *MyModule) Example(ctx context.Context) []string {
return dag.
Fedora().
PackagesRemoved(ctx)
}@function
async def example() -> List[str]:
return await (
dag.fedora()
.packages_removed()
)@func()
async example(): Promise<string[]> {
return dag
.fedora()
.packagesRemoved()
}packagesSwapped() 🔗
Return Type
[Swap ! ] ! Example
dagger -m github.com/scottames/daggerverse/fedora@0d7b7de707fe14a147f43e3528b2d941dd5547e0 call \
packages-swappedfunc (m *MyModule) Example() []*dagger.FedoraSwap {
return dag.
Fedora().
PackagesSwapped()
}@function
def example() -> List[dagger.FedoraSwap]:
return (
dag.fedora()
.packages_swapped()
)@func()
example(): FedoraSwap[] {
return dag
.fedora()
.packagesSwapped()
}repos() 🔗
Return Type
[Repo ! ] ! Example
dagger -m github.com/scottames/daggerverse/fedora@0d7b7de707fe14a147f43e3528b2d941dd5547e0 call \
reposfunc (m *MyModule) Example() []*dagger.FedoraRepo {
return dag.
Fedora().
Repos()
}@function
def example() -> List[dagger.FedoraRepo]:
return (
dag.fedora()
.repos()
)@func()
example(): FedoraRepo[] {
return dag
.fedora()
.repos()
}execScriptPre() 🔗
Return Type
[File ! ] ! Example
dagger -m github.com/scottames/daggerverse/fedora@0d7b7de707fe14a147f43e3528b2d941dd5547e0 call \
exec-script-prefunc (m *MyModule) Example() []*dagger.File {
return dag.
Fedora().
ExecScriptPre()
}@function
def example() -> List[dagger.File]:
return (
dag.fedora()
.exec_script_pre()
)@func()
example(): File[] {
return dag
.fedora()
.execScriptPre()
}execScriptPost() 🔗
Return Type
[File ! ] ! Example
dagger -m github.com/scottames/daggerverse/fedora@0d7b7de707fe14a147f43e3528b2d941dd5547e0 call \
exec-script-postfunc (m *MyModule) Example() []*dagger.File {
return dag.
Fedora().
ExecScriptPost()
}@function
def example() -> List[dagger.File]:
return (
dag.fedora()
.exec_script_post()
)@func()
example(): File[] {
return dag
.fedora()
.execScriptPost()
}execPre() 🔗
Return Type
[List ! ] ! Example
dagger -m github.com/scottames/daggerverse/fedora@0d7b7de707fe14a147f43e3528b2d941dd5547e0 call \
exec-prefunc (m *MyModule) Example(ctx context.Context) [] {
return dag.
Fedora().
ExecPre(ctx)
}@function
async def example() -> List[]:
return await (
dag.fedora()
.exec_pre()
)@func()
async example(): Promise<[]> {
return dag
.fedora()
.execPre()
}execPost() 🔗
Return Type
[List ! ] ! Example
dagger -m github.com/scottames/daggerverse/fedora@0d7b7de707fe14a147f43e3528b2d941dd5547e0 call \
exec-postfunc (m *MyModule) Example(ctx context.Context) [] {
return dag.
Fedora().
ExecPost(ctx)
}@function
async def example() -> List[]:
return await (
dag.fedora()
.exec_post()
)@func()
async example(): Promise<[]> {
return dag
.fedora()
.execPost()
}labels() 🔗
Return Type
[ContainerLabel ! ] ! Example
dagger -m github.com/scottames/daggerverse/fedora@0d7b7de707fe14a147f43e3528b2d941dd5547e0 call \
labelsfunc (m *MyModule) Example() []*dagger.FedoraContainerLabel {
return dag.
Fedora().
Labels()
}@function
def example() -> List[dagger.FedoraContainerLabel]:
return (
dag.fedora()
.labels()
)@func()
example(): FedoraContainerLabel[] {
return dag
.fedora()
.labels()
}withReposFromUrls() 🔗
WithReposFromUrls will add the content at each given url and install them on the Container image prior to package installation via WithPackagesInstalled. Optionally removing the repository afterward, prior to exporting the container.
Return Type
Fedora !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| urls | [String ! ] ! | - | urls of yum repository files to install (i.e. GitHub raw file) |
| keep | Boolean ! | - | If true, the repository will not be removed on the generated Container image |
Example
dagger -m github.com/scottames/daggerverse/fedora@0d7b7de707fe14a147f43e3528b2d941dd5547e0 call \
with-repos-from-urls --urls string1 --urls string2 --keep booleanfunc (m *MyModule) Example(urls []string, keep bool) *dagger.Fedora {
return dag.
Fedora().
WithReposFromUrls(urls, keep)
}@function
def example(urls: List[str], keep: bool) -> dagger.Fedora:
return (
dag.fedora()
.with_repos_from_urls(urls, keep)
)@func()
example(urls: string[], keep: boolean): Fedora {
return dag
.fedora()
.withReposFromUrls(urls, keep)
}withPackageGroupsInstalled() 🔗
WithPackageGroupsInstalled will install the given package groups
note: not supported on ostree-based images, will be skipped
Return Type
Fedora !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| groups | [String ! ] ! | - | list of package groups to be installed |
Example
dagger -m github.com/scottames/daggerverse/fedora@0d7b7de707fe14a147f43e3528b2d941dd5547e0 call \
with-package-groups-installed --groups string1 --groups string2func (m *MyModule) Example(groups []string) *dagger.Fedora {
return dag.
Fedora().
WithPackageGroupsInstalled(groups)
}@function
def example(groups: List[str]) -> dagger.Fedora:
return (
dag.fedora()
.with_package_groups_installed(groups)
)@func()
example(groups: string[]): Fedora {
return dag
.fedora()
.withPackageGroupsInstalled(groups)
}withPackageGroupsRemoved() 🔗
WithPackageGroupsRemoved will remove the given package groups
note: not supported on ostree-based images, will be skipped
Return Type
Fedora !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| groups | [String ! ] ! | - | list of package groups to be installed |
Example
dagger -m github.com/scottames/daggerverse/fedora@0d7b7de707fe14a147f43e3528b2d941dd5547e0 call \
with-package-groups-removed --groups string1 --groups string2func (m *MyModule) Example(groups []string) *dagger.Fedora {
return dag.
Fedora().
WithPackageGroupsRemoved(groups)
}@function
def example(groups: List[str]) -> dagger.Fedora:
return (
dag.fedora()
.with_package_groups_removed(groups)
)@func()
example(groups: string[]): Fedora {
return dag
.fedora()
.withPackageGroupsRemoved(groups)
}withPackagesInstalled() 🔗
WithPackagesInstalled will install the given packages on the generated Container image.
Return Type
Fedora !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| packages | [String ! ] ! | - | list of packages to be installed |
Example
dagger -m github.com/scottames/daggerverse/fedora@0d7b7de707fe14a147f43e3528b2d941dd5547e0 call \
with-packages-installed --packages string1 --packages string2func (m *MyModule) Example(packages []string) *dagger.Fedora {
return dag.
Fedora().
WithPackagesInstalled(packages)
}@function
def example(packages: List[str]) -> dagger.Fedora:
return (
dag.fedora()
.with_packages_installed(packages)
)@func()
example(packages: string[]): Fedora {
return dag
.fedora()
.withPackagesInstalled(packages)
}withPackagesRemoved() 🔗
WithPackagesRemoved will remove the given packages on the generated Container image.
Return Type
Fedora !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| packages | [String ! ] ! | - | list of packages to be removed on the generated Container image |
Example
dagger -m github.com/scottames/daggerverse/fedora@0d7b7de707fe14a147f43e3528b2d941dd5547e0 call \
with-packages-removed --packages string1 --packages string2func (m *MyModule) Example(packages []string) *dagger.Fedora {
return dag.
Fedora().
WithPackagesRemoved(packages)
}@function
def example(packages: List[str]) -> dagger.Fedora:
return (
dag.fedora()
.with_packages_removed(packages)
)@func()
example(packages: string[]): Fedora {
return dag
.fedora()
.withPackagesRemoved(packages)
}withPackagesSwapped() 🔗
Remove spec and install spec in one transaction
equivalent to:
dnf swap <remove> <install>
ostree-based:
rpm-ostree override remove <remove> --install <install>
Return Type
Fedora !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| remove | String ! | - | package to remove |
| install | String ! | - | package to install |
Example
dagger -m github.com/scottames/daggerverse/fedora@0d7b7de707fe14a147f43e3528b2d941dd5547e0 call \
with-packages-swapped --remove string --install stringfunc (m *MyModule) Example(remove string, install string) *dagger.Fedora {
return dag.
Fedora().
WithPackagesSwapped(remove, install)
}@function
def example(remove: str, install: str) -> dagger.Fedora:
return (
dag.fedora()
.with_packages_swapped(remove, install)
)@func()
example(remove: string, install: string): Fedora {
return dag
.fedora()
.withPackagesSwapped(remove, install)
}withExecScripts() 🔗
WithExecScripts adds scripts (Files) to be uploaded and executed on the generated Container image
Return Type
Fedora !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| scripts | [File ! ] ! | - | scripts (Files) to be uploaded and executed |
| prePackages | Boolean ! | - | if true, the script(s) will be run prior to any packages being installed on the Container image if false, they will be run after packages are installed as part of WithPackagesInstalled |
Example
dagger -m github.com/scottames/daggerverse/fedora@0d7b7de707fe14a147f43e3528b2d941dd5547e0 call \
with-exec-scripts --pre-packages booleanfunc (m *MyModule) Example(scripts []*dagger.File, prePackages bool) *dagger.Fedora {
return dag.
Fedora().
WithExecScripts(scripts, prePackages)
}@function
def example(scripts: List[dagger.File], pre_packages: bool) -> dagger.Fedora:
return (
dag.fedora()
.with_exec_scripts(scripts, pre_packages)
)@func()
example(scripts: File[], prePackages: boolean): Fedora {
return dag
.fedora()
.withExecScripts(scripts, prePackages)
}withExec() 🔗
WithExec will execute the given command on the Container image
Return Type
Fedora !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| command | [String ! ] ! | - | the command to be executed |
| prePackages | Boolean ! | - | if true, the command will be run prior to any packages being installed on the Container image if false, it will be run after packages are installed as part of WithPackagesInstalled |
Example
dagger -m github.com/scottames/daggerverse/fedora@0d7b7de707fe14a147f43e3528b2d941dd5547e0 call \
with-exec --command string1 --command string2 --pre-packages booleanfunc (m *MyModule) Example(command []string, prePackages bool) *dagger.Fedora {
return dag.
Fedora().
WithExec(command, prePackages)
}@function
def example(command: List[str], pre_packages: bool) -> dagger.Fedora:
return (
dag.fedora()
.with_exec(command, pre_packages)
)@func()
example(command: string[], prePackages: boolean): Fedora {
return dag
.fedora()
.withExec(command, prePackages)
}withDirectory() 🔗
WithDirectory will upload the given Directory (directory) at the given destination
Return Type
Fedora !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| destination | String ! | - | path in Container image to place the source directory |
| directory | Directory ! | - | directory to be uploaded to the Container image |
Example
dagger -m github.com/scottames/daggerverse/fedora@0d7b7de707fe14a147f43e3528b2d941dd5547e0 call \
with-directory --destination string --directory DIR_PATHfunc (m *MyModule) Example(destination string, directory *dagger.Directory) *dagger.Fedora {
return dag.
Fedora().
WithDirectory(destination, directory)
}@function
def example(destination: str, directory: dagger.Directory) -> dagger.Fedora:
return (
dag.fedora()
.with_directory(destination, directory)
)@func()
example(destination: string, directory: Directory): Fedora {
return dag
.fedora()
.withDirectory(destination, directory)
}containerAddress() 🔗
ContainerAddress returns the string representation of the source container address
Return Type
String !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| registry | String ! | - | No description provided |
| org | String | - | No description provided |
| variant | String ! | - | No description provided |
| suffix | String | - | No description provided |
| tag | String ! | - | No description provided |
Example
dagger -m github.com/scottames/daggerverse/fedora@0d7b7de707fe14a147f43e3528b2d941dd5547e0 call \
container-address --registry string --variant string --tag stringfunc (m *MyModule) Example(ctx context.Context, registry string, variant string, tag string) string {
return dag.
Fedora().
ContainerAddress(ctx, registry, variant, tag)
}@function
async def example(registry: str, variant: str, tag: str) -> str:
return await (
dag.fedora()
.container_address(registry, variant, tag)
)@func()
async example(registry: string, variant: string, tag: string): Promise<string> {
return dag
.fedora()
.containerAddress(registry, variant, tag)
}container() 🔗
Container returns a Fedora container as a dagger.Container object
Return Type
Container ! Example
dagger -m github.com/scottames/daggerverse/fedora@0d7b7de707fe14a147f43e3528b2d941dd5547e0 call \
containerfunc (m *MyModule) Example() *dagger.Container {
return dag.
Fedora().
Container()
}@function
def example() -> dagger.Container:
return (
dag.fedora()
.container()
)@func()
example(): Container {
return dag
.fedora()
.container()
}containerFrom() 🔗
ContainerFrom returns a Fedora container as a dagger.Container object
Return Type
Container !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| from | String ! | - | base container image to pull FROM |
Example
dagger -m github.com/scottames/daggerverse/fedora@0d7b7de707fe14a147f43e3528b2d941dd5547e0 call \
container-from --from stringfunc (m *MyModule) Example(from string) *dagger.Container {
return dag.
Fedora().
ContainerFrom(from)
}@function
def example(from_: str) -> dagger.Container:
return (
dag.fedora()
.container_from(from_)
)@func()
example(from: string): Container {
return dag
.fedora()
.containerFrom(from)
}containerVersionFromLabel() 🔗
ContainerVersionFromLabel returns the label value for the image version, defined as ‘version’ OR ‘org.opencontainers.image.version’ and a possible error
Return Type
String !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| ctr | Container | - | Container to use to determine the release version from |
Example
dagger -m github.com/scottames/daggerverse/fedora@0d7b7de707fe14a147f43e3528b2d941dd5547e0 call \
container-version-from-labelfunc (m *MyModule) Example(ctx context.Context) string {
return dag.
Fedora().
ContainerVersionFromLabel(ctx)
}@function
async def example() -> str:
return await (
dag.fedora()
.container_version_from_label()
)@func()
async example(): Promise<string> {
return dag
.fedora()
.containerVersionFromLabel()
}containerReleaseVersionFromLabel() 🔗
ContainerReleaseVersionFromLabel returns the label value for the image version, defined as ‘version’ OR ‘org.opencontainers.image.version’ - if the version contains sub-versions & dates delimited by ‘.’ they will parsed out
Return Type
String !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| ctr | Container | - | Container to use to determine the release version from |
Example
dagger -m github.com/scottames/daggerverse/fedora@0d7b7de707fe14a147f43e3528b2d941dd5547e0 call \
container-release-version-from-labelfunc (m *MyModule) Example(ctx context.Context) string {
return dag.
Fedora().
ContainerReleaseVersionFromLabel(ctx)
}@function
async def example() -> str:
return await (
dag.fedora()
.container_release_version_from_label()
)@func()
async example(): Promise<string> {
return dag
.fedora()
.containerReleaseVersionFromLabel()
}withFile() 🔗
WithFile will upload the given File (file) at the given destination
Return Type
Fedora !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| destination | String ! | - | path in Container image to place the source file |
| file | File ! | - | file to be uploaded to the Container image |
Example
dagger -m github.com/scottames/daggerverse/fedora@0d7b7de707fe14a147f43e3528b2d941dd5547e0 call \
with-file --destination string --file file:pathfunc (m *MyModule) Example(destination string, file *dagger.File) *dagger.Fedora {
return dag.
Fedora().
WithFile(destination, file)
}@function
def example(destination: str, file: dagger.File) -> dagger.Fedora:
return (
dag.fedora()
.with_file(destination, file)
)@func()
example(destination: string, file: File): Fedora {
return dag
.fedora()
.withFile(destination, file)
}withLabel() 🔗
WithLabel will append a label to the generated Container image
maps not currently supported: https://github.com/dagger/dagger/issues/6138 if they do become supported this should be simplified to allow passing a map
Return Type
Fedora !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| name | String ! | - | No description provided |
| value | String ! | - | No description provided |
Example
dagger -m github.com/scottames/daggerverse/fedora@0d7b7de707fe14a147f43e3528b2d941dd5547e0 call \
with-label --name string --value stringfunc (m *MyModule) Example(name string, value string) *dagger.Fedora {
return dag.
Fedora().
WithLabel(name, value)
}@function
def example(name: str, value: str) -> dagger.Fedora:
return (
dag.fedora()
.with_label(name, value)
)@func()
example(name: string, value: string): Fedora {
return dag
.fedora()
.withLabel(name, value)
}withDescription() 🔗
WithDescription will append a label to the generated Container image with the given description
example: org.opencontainers.image.description=<description>
Return Type
Fedora !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| description | String ! | - | description to be added to the generated Container image |
Example
dagger -m github.com/scottames/daggerverse/fedora@0d7b7de707fe14a147f43e3528b2d941dd5547e0 call \
with-description --description stringfunc (m *MyModule) Example(description string) *dagger.Fedora {
return dag.
Fedora().
WithDescription(description)
}@function
def example(description: str) -> dagger.Fedora:
return (
dag.fedora()
.with_description(description)
)@func()
example(description: string): Fedora {
return dag
.fedora()
.withDescription(description)
}getBaseImage() 🔗
Return Type
String ! Example
dagger -m github.com/scottames/daggerverse/fedora@0d7b7de707fe14a147f43e3528b2d941dd5547e0 call \
get-base-imagefunc (m *MyModule) Example(ctx context.Context) string {
return dag.
Fedora().
GetBaseImage(ctx)
}@function
async def example() -> str:
return await (
dag.fedora()
.get_base_image()
)@func()
async example(): Promise<string> {
return dag
.fedora()
.getBaseImage()
}defaultTags() 🔗
DefaultTags returns the default image tags for the output Fedora image as:
<release version> (if determined),
<release version>-<date>,
<latest> (if set to true)
Return Type
[String ! ] !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| latest | Boolean | false | if true the "latest" tag will be appended to the returned list |
Example
dagger -m github.com/scottames/daggerverse/fedora@0d7b7de707fe14a147f43e3528b2d941dd5547e0 call \
default-tagsfunc (m *MyModule) Example(ctx context.Context) []string {
return dag.
Fedora().
DefaultTags(ctx)
}@function
async def example() -> List[str]:
return await (
dag.fedora()
.default_tags()
)@func()
async example(): Promise<string[]> {
return dag
.fedora()
.defaultTags()
}DirectoryFromSource 🔗
DirectoryFromSource represents a Directory to be placed in the generated Container image at the Destination
source() 🔗
Return Type
Directory ! Example
Function FedoraDirectoryFromSource.source is not accessible from the fedora moduleFunction FedoraDirectoryFromSource.source is not accessible from the fedora moduleFunction FedoraDirectoryFromSource.source is not accessible from the fedora moduleFunction FedoraDirectoryFromSource.source is not accessible from the fedora moduledestination() 🔗
Return Type
String ! Example
Function FedoraDirectoryFromSource.destination is not accessible from the fedora moduleFunction FedoraDirectoryFromSource.destination is not accessible from the fedora moduleFunction FedoraDirectoryFromSource.destination is not accessible from the fedora moduleFunction FedoraDirectoryFromSource.destination is not accessible from the fedora moduleFileFromSource 🔗
FileFromSource represents a File to be placed in the generated Container image at the Destination
destination() 🔗
Return Type
String ! Example
Function FedoraFileFromSource.destination is not accessible from the fedora moduleFunction FedoraFileFromSource.destination is not accessible from the fedora moduleFunction FedoraFileFromSource.destination is not accessible from the fedora moduleFunction FedoraFileFromSource.destination is not accessible from the fedora modulesource() 🔗
Return Type
File ! Example
Function FedoraFileFromSource.source is not accessible from the fedora moduleFunction FedoraFileFromSource.source is not accessible from the fedora moduleFunction FedoraFileFromSource.source is not accessible from the fedora moduleFunction FedoraFileFromSource.source is not accessible from the fedora moduleSwap 🔗
remove() 🔗
Return Type
String ! Example
Function FedoraSwap.remove is not accessible from the fedora moduleFunction FedoraSwap.remove is not accessible from the fedora moduleFunction FedoraSwap.remove is not accessible from the fedora moduleFunction FedoraSwap.remove is not accessible from the fedora moduleinstall() 🔗
Return Type
String ! Example
Function FedoraSwap.install is not accessible from the fedora moduleFunction FedoraSwap.install is not accessible from the fedora moduleFunction FedoraSwap.install is not accessible from the fedora moduleFunction FedoraSwap.install is not accessible from the fedora moduleRepo 🔗
Repo represents a yum repository object
url() 🔗
Return Type
String ! Example
Function FedoraRepo.url is not accessible from the fedora moduleFunction FedoraRepo.url is not accessible from the fedora moduleFunction FedoraRepo.url is not accessible from the fedora moduleFunction FedoraRepo.url is not accessible from the fedora modulefileName() 🔗
Return Type
String ! Example
Function FedoraRepo.fileName is not accessible from the fedora moduleFunction FedoraRepo.fileName is not accessible from the fedora moduleFunction FedoraRepo.fileName is not accessible from the fedora moduleFunction FedoraRepo.fileName is not accessible from the fedora modulekeep() 🔗
Return Type
Boolean ! Example
Function FedoraRepo.keep is not accessible from the fedora moduleFunction FedoraRepo.keep is not accessible from the fedora moduleFunction FedoraRepo.keep is not accessible from the fedora moduleFunction FedoraRepo.keep is not accessible from the fedora moduleContainerLabel 🔗
ContainerLabel represents a Label to be placed in the generated Container image at the Destination
name() 🔗
Return Type
String ! Example
Function FedoraContainerLabel.name is not accessible from the fedora moduleFunction FedoraContainerLabel.name is not accessible from the fedora moduleFunction FedoraContainerLabel.name is not accessible from the fedora moduleFunction FedoraContainerLabel.name is not accessible from the fedora modulevalue() 🔗
Return Type
String ! Example
Function FedoraContainerLabel.value is not accessible from the fedora moduleFunction FedoraContainerLabel.value is not accessible from the fedora moduleFunction FedoraContainerLabel.value is not accessible from the fedora moduleFunction FedoraContainerLabel.value is not accessible from the fedora module