summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorThomas Jensen <[email protected]>2019-08-06 00:40:11 +0200
committerKasra Bigdeli <[email protected]>2019-08-05 18:40:11 -0400
commit728456e7c73902c162ebf814ac88d62b8fa9a00e (patch)
tree6d4170ef8eb7ed7e557b2228d07ca16b556c5851
parent370e134ce91bb19a96780bfc3131f29fedfd181e (diff)
downloadcaprover-one-click-apps-728456e7c73902c162ebf814ac88d62b8fa9a00e.tar.gz
caprover-one-click-apps-728456e7c73902c162ebf814ac88d62b8fa9a00e.zip
Added MariaDB (#76)
* Added MariaDB * Set fixed value for default version * Added character sets setting
-rw-r--r--public/v1/apps/mariadb.json52
1 files changed, 52 insertions, 0 deletions
diff --git a/public/v1/apps/mariadb.json b/public/v1/apps/mariadb.json
new file mode 100644
index 0000000..5ee1414
--- /dev/null
+++ b/public/v1/apps/mariadb.json
@@ -0,0 +1,52 @@
+{
+ "captainVersion": "1",
+ "documentation": "Taken from https://hub.docker.com/_/mariadb.",
+ "dockerCompose": {
+ "version": "3.1",
+ "services": {
+ "$$cap_appname-db": {
+ "dockerfileLines": [
+ "FROM mariadb:$$cap_mysql_version",
+ "CMD [\"--character-set-server=$$cap_charset\", \"--collation-server=$$cap_collation\", \"--skip-character-set-client-handshake\"]"
+ ],
+ "notExposeAsWebApp": "true",
+ "volumes": ["$$cap_appname-db-data:/var/lib/mariadb"],
+ "restart": "always",
+ "environment": {
+ "MYSQL_ROOT_PASSWORD": "$$cap_db_pass"
+ }
+ }
+ }
+ },
+ "instructions": {
+ "start": "MariaDB is a community-developed fork of the MySQL relational database management system intended to remain free under the GNU GPL. Being a fork of a leading open source software system, it is notable for being led by the original developers of MySQL, who forked it due to concerns over its acquisition by Oracle. Contributors are required to share their copyright with the MariaDB Foundation. The intent is also to maintain high compatibility with MySQL, ensuring a \"drop-in\" replacement capability with library binary equivalency and exact matching with MySQL APIs and commands. It includes the XtraDB storage engine for replacing InnoDB, as well as a new storage engine, Aria, that intends to be both a transactional and non-transactional engine perhaps even included in future versions of MySQL.",
+ "end": "MariaDB has been successfully deployed. The database is accessable on port 3306 inside the container. If you need to access the database externally, you will have to setup port mapping in the App configs tab. For example serverport: 3306, containerport: 3306. You can change the serverport for connection, but the containerport is predefined."
+ },
+ "variables": [
+ {
+ "id": "$$cap_mysql_version",
+ "label": "MariaDB Version",
+ "defaultValue": "10.4",
+ "description": "Check out their docker page for the valid tags https://hub.docker.com/_/mariadb?tab=tags",
+ "validRegex": "/^([^\\s^\\/])+$/"
+ },
+ {
+ "id": "$$cap_db_pass",
+ "label": "MariaDB Root password",
+ "description": "",
+ "validRegex": "/.{1,}/"
+ },
+ {
+ "id": "$$cap_charset",
+ "label": "Default server character set",
+ "description": "See the MariaDB website for supported character sets (https://mariadb.com/kb/en/library/supported-character-sets-and-collations/#character-sets)",
+ "defaultValue": "utf8mb4"
+ },
+ {
+ "id": "$$cap_collation",
+ "label": "Default server collation",
+ "description": "See the MariaDB website for supported collations (https://mariadb.com/kb/en/library/supported-character-sets-and-collations/#collations)",
+ "defaultValue": "utf8mb4_unicode_ci"
+ }
+ ]
+}