Sign inSign up

pgroenbaek/drone-python3-mariadb

By pgroenbaek

Updated over 1 year ago

DroneCI plugin with Python3 and MariaDB/MySQL utilities.

Image
Integration & delivery
0

1.0K

pgroenbaek/drone-python3-mariadb repository overview

drone-python3-mariadb

Docker Hub release (latest by date) Drone CI Python 3.12 MariaDB 15.1 MySQL 15.1 License GNU GPL v3

This Drone CI plugin allows you to use python and pip in pipelines along with MariaDB and MySQL utilities.

GitHub repo: https://github.com/pgroenbaek/drone-python3-mariadb

Usage

The following example shows how to configure a pipeline step to use the plugin from Docker Hub:

kind: pipeline
name: check version

steps:
  - name: versions
    image: pgroenbaek/drone-python3-mariadb
    commands:
      - python --version
      - pip --version
      - mariadb --version
      - mysql --version
      - mysqldump --version

Using a private container registry

If you would rather use the plugin from a private container registry, clone this repository, then build and push the created docker image to your private registry:

docker login -u <USERNAME> <REGISTRY_URL>
docker build -t <TAGNAME> .
docker tag <TAGNAME> <REGISTRY_URL>/drone-python3-mariadb
docker push <REGISTRY_URL>/drone-python3-mariadb

Replace the <USERNAME>, <TAGNAME> and <REGISTRY_URL> parameters accordingly.

Now you can use the docker image you built as a drone plugin:

kind: pipeline
name: check version

steps:
  - name: versions
    image: <REGISTRY_URL>/drone-python3-mariadb:<TAGNAME>
    commands:
      - python --version
      - pip --version
      - mariadb --version
      - mysql --version
      - mysqldump --version

image_pull_secrets:
- docker_config_json

Note the image_pull_secrets parameter at the bottom.

For Drone CI to know how to authenticate with your private container registry a secret named docker_config_json must be defined for the pipeline.

Add the following as a secret named docker_config_json:

{"auths": {"<REGISTRY_URL>": {"auth": "<PASSWORD>"}}}

Replace the <REGISTRY_URL> and <PASSWORD> parameters with your values.

License

This drone plugin was created by Peter Grønbæk Andersen and is licensed under GNU GPL v3.

Tag summary

Content type

Image

Digest

sha256:6834b312a

Size

474.9 MB

Last updated

over 1 year ago

docker pull pgroenbaek/drone-python3-mariadb