DroneCI plugin with Python3 and MariaDB/MySQL utilities.
1.0K
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
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
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.
This drone plugin was created by Peter Grønbæk Andersen and is licensed under GNU GPL v3.
Content type
Image
Digest
sha256:6834b312a…
Size
474.9 MB
Last updated
over 1 year ago
docker pull pgroenbaek/drone-python3-mariadb