summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorJeffrey Paul <[email protected]>2020-03-20 15:52:58 -0700
committerGitHub <[email protected]>2020-03-20 18:52:58 -0400
commit14aae8e40bcc9addb32246625f24a70cfd4981d3 (patch)
tree9f1c1de15e2ec264ecfed503a961557f45427867
parent5b3d3004d06d0bcf24dc36772598d776337521d4 (diff)
downloadcaprover-one-click-apps-14aae8e40bcc9addb32246625f24a70cfd4981d3.tar.gz
caprover-one-click-apps-14aae8e40bcc9addb32246625f24a70cfd4981d3.zip
Mattermost One-Click-App (#137)
* adds macOS .DS_Store to .gitignore * add mattermost one-click-app, fixes #73
-rw-r--r--.gitignore1
-rw-r--r--public/v2/apps/mattermost.json74
-rw-r--r--public/v2/logos/mattermost.pngbin0 -> 23650 bytes
3 files changed, 75 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index a6a1aa8..618871d 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,3 +1,4 @@
autoGeneratedList.json
node_modules
+.DS_Store
diff --git a/public/v2/apps/mattermost.json b/public/v2/apps/mattermost.json
new file mode 100644
index 0000000..399dbf6
--- /dev/null
+++ b/public/v2/apps/mattermost.json
@@ -0,0 +1,74 @@
+{
+ "captainVersion": "2",
+ "documentation": "https://github.com/mattermost/mattermost-docker",
+ "displayName": "Mattermost",
+ "description": "Mattermost Team Edition open source collaboration/chat software",
+ "dockerCompose": {
+ "version": "3.3",
+ "services": {
+ "$$cap_appname-postgres": {
+ "image": "postgres@$$cap_postgres_version",
+ "notExposeAsWebApp": "true",
+ "volumes": [
+ "$$cap_appname-postgres-data:/var/lib/postgresql/data"
+ ],
+ "restart": "always",
+ "environment": {
+ "POSTGRES_USER": "mattermost",
+ "POSTGRES_PASSWORD": "$$cap_pg_pass",
+ "POSTGRES_DB": "mattermost"
+ }
+ },
+ "$$cap_appname": {
+ "dockerfileLines": [
+ "FROM mattermost/mattermost-team-edition@$$cap_mattermost_version",
+ "RUN sed -i 's#api.segment.io#xx.example.com#gI' /mattermost/bin/mattermost",
+ "RUN sed -i 's#securityupdatecheck.mattermost.com#xxxxxxxxxxxxxxxxxxxxxx.example.com#gI' /mattermost/bin/mattermost"
+ ],
+ "containerHttpPort": "8065",
+ "depends_on": [
+ "$$cap_appname-postgres"
+ ],
+ "volumes": [
+ "$$cap_appname-data:/mattermost/data",
+ "$$cap_appname-logs:/mattermost/logs",
+ "$$cap_appname-config:/mattermost/config",
+ "$$cap_appname-plugins:/mattermost/plugins",
+ "$$cap_appname-clientplugins:/mattermost/client/plugins"
+ ],
+ "restart": "always",
+ "environment": {
+ "MM_SQLSETTINGS_DATASOURCE": "postgres://mattermost:$$cap_pg_pass@srv-captain--$$cap_appname-postgres:5432/mattermost?sslmode=disable&connect_timeout=10",
+ "MM_SERVICESETTINGS_SITEURL": "https://$$cap_appname.$$cap_root_domain",
+ "MM_LOGSETTINGS_ENABLEDIAGNOSTICS": "false",
+ "MM_SERVICESETTINGS_ENABLESECURITYFIXALERT": "false",
+ "MM_SQLSETTINGS_DRIVERNAME": "postgres"
+ }
+ }
+ }
+ },
+ "instructions": {
+ "start": "Open-source collaboration/chat server Mattermost Team Edition.",
+ "end": "Mattermost is deployed and available as srv-captain--$$cap_appname:80. Note that the application may take up to ten minutes to become available. Following deployment you must verify MM_SERVICESETTINGS_SITEURL in the application's environment refers to your app's official public URL."
+ },
+ "variables": [
+ {
+ "id": "$$cap_postgres_version",
+ "label": "Postgres Docker Image SHA Hash",
+ "defaultValue": "sha256:110d3325db02daa6e1541fdd37725fcbecb7d51411229d922562f208c51d35cc",
+ "description": "Check out their Docker page for the valid tags https://hub.docker.com/r/library/postgres/tags/ - default is 12.2 as of 2020-03-16"
+ },
+ {
+ "id": "$$cap_mattermost_version",
+ "label": "Mattermost Docker Image SHA Hash",
+ "defaultValue": "sha256:f8a4416d0a50a03ebacdbcd44790d5996230da3f48dbefd02307e4fd713567aa",
+ "description": "Check out their Docker page for the valid tags https://hub.docker.com/r/mattermost/mattermost-team-edition/tags - default is current as of 2020-03-16"
+ },
+ {
+ "id": "$$cap_pg_pass",
+ "label": "Postgres Password",
+ "description": "Password must be at least 30 characters. Please use a random string.",
+ "validRegex": "/^[^\\@]{30,}$/"
+ }
+ ]
+}
diff --git a/public/v2/logos/mattermost.png b/public/v2/logos/mattermost.png
new file mode 100644
index 0000000..a68078b
--- /dev/null
+++ b/public/v2/logos/mattermost.png
Binary files differ