Sign inSign up

mindgrub/mysql-via-http

By mindgrub

•Updated about 2 years ago

This Alpine-based Docker image downloads a SQL file, connects to MySQL, and executes the statements

Image
Databases & storage
0

7.4K

mindgrub/mysql-via-http repository overview

⁠docker-mysql-via-http

An Alpine-based Docker image for downloading a file and executing it with the mysql client.

There are tags for Alpine 3.19, 3.18, and 3.17. Both linux/amd64 and linux/arm64.

⁠Environment Variables

  • SQL_FILE_URL – Required. The URL of the .sql or .sql.gz to ingest.
  • DB_HOST – Required. The hostname to which mysql will connect.
  • DB_PORT – Optional. The TCP port to which mysql will connect (Default: "3306").
  • DB_NAME – Required. The name of the database to dump.
  • DB_USER – Required. The username to use to connect.
  • DB_PASS – Required. The password to use to connect.
  • MYSQL_OPTS – Optional. Additional command line options to provide to mysql.
  • COMPLETED_WEBHOOK – Optional. A URL to receive a POST request containing JSON content once ingestion completes.
  • SFN_TASK_TOKEN – Optional. A Step Functions Task Token⁠. If present, this token will be used to call SendTaskHeartbeat⁠ and SendTaskSuccess⁠. The task output sent to SendTaskSuccess will consist of a JSON object with a single property: uri (containing the S3 URI of the database dump).
  • MYSQL_NET_BUFFER_LENGTH – [Deprecated] Optional. The net_buffer_length setting for mysqldump.

⁠Technical Details

Since this image is based on Alpine, the version of mysql in this image is actually MariaDB.

The following CLI arguments are included in the call to mysql: --comments. Use the MYSQL_OPTS environment variable to specify additional options.

Tag summary

Content type

Image

Digest

sha256:0c3453543…

Size

66.5 MB

Last updated

about 2 years ago

docker pull mindgrub/mysql-via-http