If you need to install Docker Image:
docker image inspect europe-west3-docker.pkg.dev/yourown-chat/docker/mattermost:<tag_with_patched>Go to the server module:
cd serverIf go.work is missing for some reason, create it once:
go work init
go work use .
go work use ./publicBuild a binary for your machine, mostly to check that everything compiles:
go build -buildvcs=false -o ./bin/mattermost ./cmd/mattermostCheck it:
./bin/mattermost versionIf you need the same linux binary that goes into the Docker image:
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 \
go build -buildvcs=false -ldflags='-s -w' \
-o ./bin/mattermost-linux-amd64 \
./cmd/mattermostOr build only the binary inside Docker, without building the full image:
docker run --rm \
-v "$PWD/server:/src/server" \
-v gomod-cache:/go/pkg/mod \
-v gobuild-cache:/root/.cache/go-build \
-w /src/server \
golang:1.26-alpine \
sh -lc 'go work init 2>/dev/null || true; go work use . ./public; CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -buildvcs=false -ldflags="-s -w" -o ./bin/mattermost-linux-amd64 ./cmd/mattermost'Short version: for a quick compile check, go build ./cmd/mattermost is usually enough. For the container, build with GOOS=linux GOARCH=amd64.
If you changed code and want to test it locally, build the full Docker image from the repo root with the same tag that compose already uses:
docker build \
-t europe-west3-docker.pkg.dev/yourown-chat/docker/mattermost:<tag_with_patched> \
.Then recreate only the patched Mattermost container:
cd /Users/pilprod/Projects/chatops/mvp
docker compose up -d --force-recreate --no-deps mattermost-patchedAfter push to public-pached-11.7, Cloud Build publishes this image:
europe-west3-docker.pkg.dev/yourown-chat/docker/mattermost:<tag_with_patched>On the server, pull it and recreate only the patched Mattermost container:
cd ~/chat-stack
docker compose pull mattermost-patched
docker compose up -d --force-recreate mattermost-patchedQuick check after restart:
docker compose logs -f --tail=100 mattermost-patchedMattermost uses a hybrid licensing model.
Official compiled Mattermost binaries provided by Mattermost, Inc. can be used under the terms described in the MIT-COMPILED-LICENSE.
However, modifications to the Mattermost source code may fall under the GNU AGPL v3 license obligations.
AGPL obligations may apply if you:
- modify Mattermost source code;
- build and distribute a modified Mattermost binary;
- provide a modified Mattermost-based network service;
- or create a derivative work based on Mattermost core components.
In such cases, the corresponding modified source code may need to be made available under AGPLv3 terms.
This repository does not claim ownership of Mattermost trademarks.
“Mattermost” and related marks belong to Mattermost, Inc.
For official licensing details, see:
Mattermost использует гибридную модель лицензирования.
Официальные собранные бинарные версии Mattermost, распространяемые Mattermost, Inc., могут использоваться в соответствии с условиями MIT-COMPILED-LICENSE.
Однако модификация исходного кода Mattermost может подпадать под требования лицензии GNU AGPL v3.
Требования AGPL могут применяться, если вы:
- модифицируете исходный код Mattermost;
- собираете и распространяете изменённую версию Mattermost;
- предоставляете пользователям сетевой сервис на основе модифицированного Mattermost;
- создаёте производную работу на основе core-компонентов Mattermost.
В таких случаях исходный код модификаций может подлежать обязательному раскрытию в соответствии с условиями AGPLv3.
Данный репозиторий не заявляет никаких прав на товарные знаки Mattermost.
“Mattermost” и связанные обозначения принадлежат Mattermost, Inc.
Официальная информация:
