mariadb
This module allows you to easily add MariaDB as a serviceto your pipeline.
Installation
dagger install github.com/levlaz/daggerverse/mariadb@04376aba3bbdf5c3614f1b04b9e6ae1888b5c80f
Entrypoint
Return Type
Mariadb !
Arguments
Name | Type | Description |
---|---|---|
version | String | Version of MariaDB to use |
dbName | String | Database name |
dbUser | String | Database Username |
dbPassword | String | Database Password |
Example
dagger -m github.com/levlaz/daggerverse/mariadb@04376aba3bbdf5c3614f1b04b9e6ae1888b5c80f 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 🔗
version() 🔗
Return Type
String !
Example
dagger -m github.com/levlaz/daggerverse/mariadb@04376aba3bbdf5c3614f1b04b9e6ae1888b5c80f call \
version
func (m *myModule) example(ctx context.Context) string {
return dag.
Mariadb().
Version(ctx)
}
@function
async def example() -> str:
return await (
dag.mariadb()
.version()
)
@func()
async example(): Promise<string> {
return dag
.mariadb()
.version()
}
dbName() 🔗
Return Type
String !
Example
dagger -m github.com/levlaz/daggerverse/mariadb@04376aba3bbdf5c3614f1b04b9e6ae1888b5c80f call \
db-name
func (m *myModule) example(ctx context.Context) string {
return dag.
Mariadb().
DbName(ctx)
}
@function
async def example() -> str:
return await (
dag.mariadb()
.db_name()
)
@func()
async example(): Promise<string> {
return dag
.mariadb()
.dbName()
}
dbUser() 🔗
Return Type
String !
Example
dagger -m github.com/levlaz/daggerverse/mariadb@04376aba3bbdf5c3614f1b04b9e6ae1888b5c80f call \
db-user
func (m *myModule) example(ctx context.Context) string {
return dag.
Mariadb().
DbUser(ctx)
}
@function
async def example() -> str:
return await (
dag.mariadb()
.db_user()
)
@func()
async example(): Promise<string> {
return dag
.mariadb()
.dbUser()
}
dbPassword() 🔗
Return Type
String !
Example
dagger -m github.com/levlaz/daggerverse/mariadb@04376aba3bbdf5c3614f1b04b9e6ae1888b5c80f call \
db-password
func (m *myModule) example(ctx context.Context) string {
return dag.
Mariadb().
DbPassword(ctx)
}
@function
async def example() -> str:
return await (
dag.mariadb()
.db_password()
)
@func()
async example(): Promise<string> {
return dag
.mariadb()
.dbPassword()
}
base() 🔗
Return MariaDB Container
Return Type
Container !
Example
dagger -m github.com/levlaz/daggerverse/mariadb@04376aba3bbdf5c3614f1b04b9e6ae1888b5c80f 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 !
Example
dagger -m github.com/levlaz/daggerverse/mariadb@04376aba3bbdf5c3614f1b04b9e6ae1888b5c80f 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 example usage without defaults: dagger –version latest –db-name foo –db-user bar –db-password baz 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
, you may need to add --skip-ssl
if the mariadb
client complains about ERROR 2026 (HY000): TLS/SSL error: self-signed certificate
Return Type
Container !
Example
dagger -m github.com/levlaz/daggerverse/mariadb@04376aba3bbdf5c3614f1b04b9e6ae1888b5c80f 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()
}