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.0
Entrypoint
Return Type
Mariadb
Example
dagger -m github.com/levlaz/daggerverse/mariadb@5d5c3b301595111a336f8233a47e4a3e59c7dd9e 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" | No description provided |
dbName | String | - | No description provided |
Example
dagger -m github.com/levlaz/daggerverse/mariadb@5d5c3b301595111a336f8233a47e4a3e59c7dd9e 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" | No description provided |
dbName | String | "sample-database" | No description provided |
Example
dagger -m github.com/levlaz/daggerverse/mariadb@5d5c3b301595111a336f8233a47e4a3e59c7dd9e 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@5d5c3b301595111a336f8233a47e4a3e59c7dd9e 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()
}