wpdagger
No long description provided.
Installation
dagger install github.com/sai-php/wordpress@0df3d870f001c693031de6bee2d0295a1f8517e2Entrypoint
Return Type
Wpdagger Example
dagger -m github.com/sai-php/wordpress@0df3d870f001c693031de6bee2d0295a1f8517e2 call \
func (m *MyModule) Example() *dagger.Wpdagger {
return dag.
Wpdagger()
}@function
def example() -> dagger.Wpdagger:
return (
dag.wpdagger()
)@func()
example(): Wpdagger {
return dag
.wpdagger()
}Types
Wpcontainer 🔗
withPlugin() 🔗
Return Type
Wpcontainer !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| name | String ! | - | No description provided |
| pluginUrl | String | null | No description provided |
| pluginTarBall | File | null | No description provided |
Example
dagger -m github.com/sai-php/wordpress@0df3d870f001c693031de6bee2d0295a1f8517e2 call \
wordpress --php-version string --wordpress-version string \
with-plugin --name stringfunc (m *MyModule) Example(phpVersion string, wordpressVersion string, name string) *dagger.WpdaggerWpcontainer {
return dag.
Wpdagger().
Wordpress(phpVersion, wordpressVersion).
Withplugin(name)
}@function
def example(phpversion: str, wordpressversion: str, name: str) -> dagger.WpdaggerWpcontainer:
return (
dag.wpdagger()
.wordpress(phpversion, wordpressversion)
.withplugin(name)
)@func()
example(phpVersion: string, wordpressVersion: string, name: string): WpdaggerWpcontainer {
return dag
.wpdagger()
.wordpress(phpVersion, wordpressVersion)
.withPlugin(name)
}container() 🔗
Return Type
Container ! Example
dagger -m github.com/sai-php/wordpress@0df3d870f001c693031de6bee2d0295a1f8517e2 call \
wordpress --php-version string --wordpress-version string \
containerfunc (m *MyModule) Example(phpVersion string, wordpressVersion string) *dagger.Container {
return dag.
Wpdagger().
Wordpress(phpVersion, wordpressVersion).
Container()
}@function
def example(phpversion: str, wordpressversion: str) -> dagger.Container:
return (
dag.wpdagger()
.wordpress(phpversion, wordpressversion)
.container()
)@func()
example(phpVersion: string, wordpressVersion: string): Container {
return dag
.wpdagger()
.wordpress(phpVersion, wordpressVersion)
.container()
}Wpdagger 🔗
A generated module for Wpdagger functions
wordpress() 🔗
Builds a WordPress container mirroring the official docker-library/wordpress image, i.e. the default “wordpress” tag: the apache variant on a Debian-based PHP image.
The PHP base container and its standard extensions (bcmath, exif, intl, mysqli, zip) are managed through the sai module. Everything else (ghostscript/HEIC deps, gd and imagick, opcache & error-logging ini files, apache modules, the WordPress tarball, wp-config-docker.php and docker-entrypoint.sh) replicates the upstream Dockerfile.
The result is a Container build graph; export it with exportImage(“wordpress:latest”), publish() it, or run it directly with up()/asService(). Note: the upstream image also declares VOLUME /var/www/html; declare/mount it yourself at runtime.
Return Type
Wpcontainer !Arguments
| Name | Type | Default Value | Description |
|---|---|---|---|
| phpVersion | String ! | "8.4" | PHP version of the base image, e.g. 8.2, 8.3 or 8.4 |
| wordpressVersion | String ! | "7.1.3" | WordPress version to install |
Example
dagger -m github.com/sai-php/wordpress@0df3d870f001c693031de6bee2d0295a1f8517e2 call \
wordpress --php-version string --wordpress-version stringfunc (m *MyModule) Example(phpVersion string, wordpressVersion string) *dagger.WpdaggerWpcontainer {
return dag.
Wpdagger().
Wordpress(phpVersion, wordpressVersion)
}@function
def example(phpversion: str, wordpressversion: str) -> dagger.WpdaggerWpcontainer:
return (
dag.wpdagger()
.wordpress(phpversion, wordpressversion)
)@func()
example(phpVersion: string, wordpressVersion: string): WpdaggerWpcontainer {
return dag
.wpdagger()
.wordpress(phpVersion, wordpressVersion)
}