Dagger
Search

mariadb

This module allows you to easily add MariaDB as a service
to your pipeline.

Installation

dagger install github.com/levlaz/daggerverse/mariadb@v0.3.0

Entrypoint

Return Type
Mariadb !
Arguments
NameTypeDescription
versionString Version of MariaDB to use
dbNameString Database name
dbUserString Database Username
dbPasswordString Database Password
Example
dagger -m github.com/levlaz/daggerverse/mariadb@cea1668da940b45864116049bd20087855c8c787 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@cea1668da940b45864116049bd20087855c8c787 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@cea1668da940b45864116049bd20087855c8c787 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@cea1668da940b45864116049bd20087855c8c787 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@cea1668da940b45864116049bd20087855c8c787 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@cea1668da940b45864116049bd20087855c8c787 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@cea1668da940b45864116049bd20087855c8c787 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@cea1668da940b45864116049bd20087855c8c787 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()
}