Giter VIP home page Giter VIP logo

ns8-mariadb's Introduction

mariadb && PhpMyAdmin

Start and configure mariadb instance.

The module uses :

docker.io/library/phpmyadmin 5.1.1 docker.io/library/mariadb 10.6.5

Install

Instantiate the module:

add-module ghcr.io/nethserver/mariadb:latest 1

The output of the command will return the instance name. Output example:

{'module_id': 'mariadb1', 'image_name': 'mariadb', 'image_url': 'ghcr.io/nethserver/mariadb:latest'}

Configure

Let's assume that the mariadb istance is named mariadb1.

Then launch configure-module, by setting the following parameters:

Example:

[root@fedora mariadb]# api-cli run configure-module --agent module/mariadb1 --data - <<EOF
{ 
"path": "/phpmyadmin", 
"http2https": true
}
EOF

The above command will:

  • validate the /webpath (if not already used by another application.)
  • start and configure the mariadb instance
  • retrieve two random ports, one for the phpmyadmin container the other for the external port to connect the mysql client

Uninstall

To uninstall the instance:

remove-module mariadb1 --no-preserve

retrieve configuration

You can retrieve the configuration like the user interface

api-cli run get-configuration --agent module/mariadb1 --data null
Warning: using user "cluster" credentials from the environment
{
"path": "/path", 
"http2https": true
}

Connect to mysl of the container

it is possible to use directly mysql inside the container

ssh mariadb1@localhost
podman exec -ti mariadb-app mysql

ns8-mariadb's People

Contributors

gsanchietti avatar stephdl avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.