This buildpack aims at installing a Mattermost instance on Scalingo and let you configure it at your convenance.
Simply deploy by cliking on this button:
Or create an app. You must have an add-on database postgresql or mysql.
Add this buildpack environment variable to your Scalingo application to install the Mattermost server:
BUILDPACK_URL=https://github.com/MTES-MCT/mattermost-buildpack#mainAnd other environment variables are set by example in a .env.sample file.
PORT and SCALINGO_POSTGRESQL_URL are provided by Scalingo.
Addon configuration by default:
MM_SQLSETTINGS_DRIVERNAME=postgres # if required replace by mysql
MM_SQLSETTINGS_DATASOURCE=$SCALINGO_POSTGRESQL_URL # SCALINGO_POSTGRESQL_URL is provided by scalingo at app boot stepWarning MM_SQLSETTINGS_DATASOURCE and change sslmode if prefer is unknown by mattermost.
By default the buildpack install the latest release enterprise edition:
MATTERMOST_EDITION= # enterprise by default, set team if you prefer
MATTERMOST_VERSION=latest # latest release by default, you can change with specific versionAll other environment variables are specific to mattermost, see documentation.
You can also persist your config in each build and deploy:
MM_CONFIG=$SCALINGO_POSTGRESQL_URL # persists config in databaseYou can list plugins to install at build:
## From marketplace set ids
MATTERMOST_MARKETPLACE_PLUGINS=com.github.matterpoll.matterpoll,memes
## From Github set owner/repo
MATTERMOST_GITHUB_PLUGINS=blindsidenetworks/mattermost-plugin-bigbluebutton,scottleedavis/mattermost-plugin-remindYou set environment variables in .env:
cp .env.sample .envRun an interactive docker scalingo stack:
docker run --name mattermost -it -p 8065:8065 -v "$(pwd)"/.env:/env/.env -v "$(pwd)":/buildpack scalingo/scalingo-18:latest bashAnd test in it:
bash buildpack/bin/detect
bash buildpack/bin/env.sh /env/.env /env
bash buildpack/bin/compile /build /cache /env
bash buildpack/bin/releaseRun Mattermost server:
export PATH=$PATH:/build/mattermost/bin
mattermost serverYou can also use docker-compose in order to test with a complete stack (db, s3, smtp):
docker-compose up --build -dYou can test postdeploy (install plugins list):
bash /app/mattermost/bin/postdeploy.env.sample is configured to work with this stack. You just need to create the bucket mattermost in minio.