mariadb
This module allows you to easily add MariaDB as a service to your pipeline.Installation
dagger install github.com/levlaz/daggerverse/mariadb@v0.2.1
Entrypoint
Return Type
Mariadb
Example
dagger -m github.com/levlaz/daggerverse/mariadb@250b1d6bc506b9ab68fe5cfce44ce8ed1c5763b9 call \
func (m *myModule) example() *Mariadb {
return dag.
Mariadb()
}
@function
def example() -> dag.Mariadb:
return (
dag.mariadb()
)
@func()
example(): Mariadb {
return dag
.mariadb()
}
Types
Mariadb 🔗
base() 🔗
Return MariaDB Container
Return Type
Container !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
version | String | "latest" | Version of MariaDB to use |
dbName | String | - | Database name |
Example
dagger -m github.com/levlaz/daggerverse/mariadb@250b1d6bc506b9ab68fe5cfce44ce8ed1c5763b9 call \
base
func (m *myModule) example() *Container {
return dag.
Mariadb().
Base()
}
@function
def example() -> dagger.Container:
return (
dag.mariadb()
.base()
)
@func()
example(): Container {
return dag
.mariadb()
.base()
}
serve() 🔗
Return MariaDB as a Service example usage: dagger call serve up
if you’d like to run on a different port then: dagger call serve up –ports=3308:3306
Return Type
Service !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
version | String | "latest" | Version of MariaDB to use |
dbName | String | "sample-database" | Database name |
Example
dagger -m github.com/levlaz/daggerverse/mariadb@250b1d6bc506b9ab68fe5cfce44ce8ed1c5763b9 call \
serve
func (m *myModule) example() *Service {
return dag.
Mariadb().
Serve()
}
@function
def example() -> dagger.Service:
return (
dag.mariadb()
.serve()
)
@func()
example(): Service {
return dag
.mariadb()
.serve()
}
debug() 🔗
Debug MariaDB from Client Container
example usage: dagger call debug terminal
this will pop you into a shell, you can then connect to the
mariadb container with mariadb -h db
and see the sample database
with use sample-datbase
Return Type
Container !
Example
dagger -m github.com/levlaz/daggerverse/mariadb@250b1d6bc506b9ab68fe5cfce44ce8ed1c5763b9 call \
debug
func (m *myModule) example() *Container {
return dag.
Mariadb().
Debug()
}
@function
def example() -> dagger.Container:
return (
dag.mariadb()
.debug()
)
@func()
example(): Container {
return dag
.mariadb()
.debug()
}