plone
This module has been generated via dagger init and serves as a reference tobasic module structure as you get started with Dagger.
Two functions have been pre-created. You can modify, delete, or add to them,
as needed. They demonstrate usage of arguments and return types using simple
echo and grep commands. The functions can be called from the dagger CLI or
from one of the SDKs.
The first line in this comment block is a short description line and the
rest is a long description with more detail on the module's purpose or usage,
if appropriate. All modules should have a short description.
Installation
dagger install github.com/gotcha/dagger_plone@608edbab57c4e56087db833dceb55d3a13dac367
Entrypoint
Return Type
Plone !
Example
dagger -m github.com/gotcha/dagger_plone@608edbab57c4e56087db833dceb55d3a13dac367 call \
func (m *MyModule) Example() *dagger.Plone {
return dag.
Plone()
}
@function
def example() -> dagger.Plone:
return (
dag.plone()
)
@func()
example(): Plone {
return dag
.plone()
}
Types
Plone 🔗
withBuildout() 🔗
Returns a container with buildout installed
Return Type
Container !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
python | Container ! | - | An OCI-compatible container, also known as a Docker container. |
buildoutVersion | String ! | "4.1.9" | No description provided |
setuptoolsVersion | String ! | "80.2.0" | No description provided |
Example
dagger -m github.com/gotcha/dagger_plone@608edbab57c4e56087db833dceb55d3a13dac367 call \
with-buildout --python IMAGE:TAG --buildout-version string --setuptools-version string
func (m *MyModule) Example(python *dagger.Container, buildoutVersion string, setuptoolsVersion string) *dagger.Container {
return dag.
Plone().
WithBuildout(python, buildoutVersion, setuptoolsVersion)
}
@function
def example(python: dagger.Container, buildout_version: str, setuptools_version: str) -> dagger.Container:
return (
dag.plone()
.with_buildout(python, buildout_version, setuptools_version)
)
@func()
example(python: Container, buildoutVersion: string, setuptoolsVersion: string): Container {
return dag
.plone()
.withBuildout(python, buildoutVersion, setuptoolsVersion)
}
withPlone() 🔗
Install Plone into a container where buildout is installed.
Return Type
Container !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
buildout | Container ! | - | An OCI-compatible container, also known as a Docker container. |
ploneVersion | String ! | "6.0.15" | No description provided |
Example
dagger -m github.com/gotcha/dagger_plone@608edbab57c4e56087db833dceb55d3a13dac367 call \
with-plone --buildout IMAGE:TAG --plone-version string
func (m *MyModule) Example(buildout *dagger.Container, ploneVersion string) *dagger.Container {
return dag.
Plone().
WithPlone(buildout, ploneVersion)
}
@function
def example(buildout: dagger.Container, plone_version: str) -> dagger.Container:
return (
dag.plone()
.with_plone(buildout, plone_version)
)
@func()
example(buildout: Container, ploneVersion: string): Container {
return dag
.plone()
.withPlone(buildout, ploneVersion)
}