1
0
mirror of https://github.com/SmartHoneybee/ubiquitous-memory synced 2025-10-24 23:33:48 +02:00

Compare commits

...

57 Commits

Author SHA1 Message Date
parnic-sks
81b4106fc7 Mattermost 5.30.1 release (#98)
* Mattermost 5.30.0 release

* Update to 5.30.1 due to Mattermost release bug
2020-12-21 09:07:32 -06:00
dependabot-preview[bot]
f92e152276 Bump github.com/mattermost/mattermost-server/v5 from 5.29.0 to 5.29.1 in /dependabot (#97)
* Bump github.com/mattermost/mattermost-server/v5 in /dependabot

Bumps [github.com/mattermost/mattermost-server/v5](https://github.com/mattermost/mattermost-server) from 5.29.0 to 5.29.1.
- [Release notes](https://github.com/mattermost/mattermost-server/releases)
- [Changelog](https://github.com/mattermost/mattermost-server/blob/master/CHANGELOG.md)
- [Commits](https://github.com/mattermost/mattermost-server/compare/v5.29.0...v5.29.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

* Fix dependabot go.mod

* Update build-release.patch for mmctl changes

* Remove additional mmctl script reference

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
Co-authored-by: parnic-sks <chris@straykitestudios.com>
2020-12-06 10:52:33 -06:00
dependabot-preview[bot]
df047ff1c3 Bump github.com/mattermost/mattermost-server/v5 from 5.28.1 to 5.29.0 in /dependabot (#95)
Bump github.com/mattermost/mattermost-server/v5 in /dependabot

Bumps [github.com/mattermost/mattermost-server/v5](https://github.com/mattermost/mattermost-server) from 5.28.1 to 5.29.0.
- [Release notes](https://github.com/mattermost/mattermost-server/releases)
- [Changelog](https://github.com/mattermost/mattermost-server/blob/master/CHANGELOG.md)
- [Commits](https://github.com/mattermost/mattermost-server/compare/v5.28.1...v5.29.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Co-authored-by: parnic-sks <chris@straykitestudios.com>
2020-11-21 14:30:01 +00:00
parnic-sks
34f7ec2895 Update to Mattermost 5.28.1 (#94)
* Update to Mattermost 5.28.1

* Update release.mk patch for 5.28

* Repair to original patch text

* Run patch in batch mode

* Try to fix patch file

I'm having a hard time understanding why this is not working on CI.

* Working 5.28.1 release.mk patch

I was previously working off mattermost-server HEAD's copy of release.mk which has apparently changed since 5.28.1, so future PRs will need to make more changes to this patch. But for now, this should allow the patch to be applied.
2020-10-23 15:34:25 +00:00
dependabot-preview[bot]
04f32e9214 Bump github.com/mattermost/mattermost-server/v5 in /dependabot (#93) 2020-09-15 04:01:06 +00:00
dependabot-preview[bot]
e4b062a7f4 Bump github.com/mattermost/mattermost-server/v5 in /dependabot (#92) 2020-09-04 04:14:16 +00:00
dependabot-preview[bot]
fae0f5b8b6 Bump github.com/mattermost/mattermost-server/v5 in /dependabot (#91) 2020-08-28 23:10:00 +00:00
dependabot-preview[bot]
608535bba2 Bump github.com/mattermost/mattermost-server/v5 in /dependabot (#90) 2020-08-13 04:01:47 +00:00
dependabot-preview[bot]
1ff3276ef1 Bump github.com/mattermost/mattermost-server/v5 in /dependabot (#89) 2020-08-05 17:30:27 +00:00
dependabot-preview[bot]
9b99cea31b Bump github.com/mattermost/mattermost-server/v5 in /dependabot (#88) 2020-07-25 08:59:59 +00:00
dependabot-preview[bot]
0f99d5847c Bump github.com/mattermost/mattermost-server/v5 in /dependabot (#87) 2020-07-16 04:05:07 +00:00
dependabot-preview[bot]
f16cacf3ea Bump github.com/mattermost/mattermost-server/v5 in /dependabot (#86) 2020-07-02 19:43:30 +00:00
dependabot-preview[bot]
6ef90eb436 Bump github.com/mattermost/mattermost-server/v5 in /dependabot (#85) 2020-06-22 03:55:32 +00:00
dependabot-preview[bot]
06a96e5cdf Bump github.com/mattermost/mattermost-server/v5 from 5.23.0 to 5.23.1 in /dependabot (#83)
Bumps [github.com/mattermost/mattermost-server/v5](https://github.com/mattermost/mattermost-server) from 5.23.0 to 5.23.1.
- [Release notes](https://github.com/mattermost/mattermost-server/releases)
- [Changelog](https://github.com/mattermost/mattermost-server/blob/master/CHANGELOG.md)
- [Commits](https://github.com/mattermost/mattermost-server/compare/v5.23.0...v5.23.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-06-11 15:27:57 +00:00
dependabot-preview[bot]
f3192dba71 Bump github.com/mattermost/mattermost-server/v5 in /dependabot (#82) 2020-05-15 04:04:51 +00:00
dependabot-preview[bot]
ca10b305e4 Bump github.com/mattermost/mattermost-server/v5 in /dependabot (#81) 2020-05-12 04:01:23 +00:00
dependabot-preview[bot]
475839128e Bump github.com/mattermost/mattermost-server/v5 in /dependabot (#80) 2020-05-06 21:53:39 +00:00
dependabot-preview[bot]
ec8de37859 Bump github.com/mattermost/mattermost-server/v5 in /dependabot (#79) 2020-04-23 21:32:17 +00:00
dependabot-preview[bot]
5e267c639f Bump github.com/mattermost/mattermost-server/v5 in /dependabot (#78) 2020-04-16 16:52:18 +00:00
dependabot-preview[bot]
3afd62ebaa Bump github.com/mattermost/mattermost-server/v5 in /dependabot (#77) 2020-03-16 03:46:40 +00:00
dependabot-preview[bot]
4449fd0723 Bump github.com/mattermost/mattermost-server/v5 in /dependabot (#76) 2020-03-13 03:35:28 +00:00
dependabot-preview[bot]
6f1748b909 Bump github.com/mattermost/mattermost-server/v5 in /dependabot (#75) 2020-02-17 03:47:07 +00:00
dependabot-preview[bot]
5e14b05358 Bump github.com/mattermost/mattermost-server/v5 from 5.19.1 to 5.20.0 in /dependabot (#74)
Bump github.com/mattermost/mattermost-server/v5 in /dependabot

Bumps [github.com/mattermost/mattermost-server/v5](https://github.com/mattermost/mattermost-server) from 5.19.1 to 5.20.0.
- [Release notes](https://github.com/mattermost/mattermost-server/releases)
- [Changelog](https://github.com/mattermost/mattermost-server/blob/master/CHANGELOG.md)
- [Commits](https://github.com/mattermost/mattermost-server/compare/v5.19.1...v5.20.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-02-15 16:19:48 +00:00
dependabot-preview[bot]
c696751a66 Bump github.com/mattermost/mattermost-server/v5 from 5.19.0 to 5.19.1 in /dependabot (#72)
Bump github.com/mattermost/mattermost-server/v5 in /dependabot

Bumps [github.com/mattermost/mattermost-server/v5](https://github.com/mattermost/mattermost-server) from 5.19.0 to 5.19.1.
- [Release notes](https://github.com/mattermost/mattermost-server/releases)
- [Changelog](https://github.com/mattermost/mattermost-server/blob/master/CHANGELOG.md)
- [Commits](https://github.com/mattermost/mattermost-server/compare/v5.19.0...v5.19.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-01-31 20:35:52 +00:00
kartoffelsalat
9b16070789 version 5.19.1 (#71) 2020-01-23 20:00:24 +00:00
dependabot-preview[bot]
ab54cd5f53 Bump github.com/mattermost/mattermost-server in /dependabot (#70) 2020-01-08 21:44:47 +00:00
dependabot-preview[bot]
0e12504498 Bump github.com/mattermost/mattermost-server from 5.17.1 to 5.17.2 in /dependabot (#69)
Bump github.com/mattermost/mattermost-server in /dependabot

Bumps [github.com/mattermost/mattermost-server](https://github.com/mattermost/mattermost-server) from 5.17.1 to 5.17.2.
- [Release notes](https://github.com/mattermost/mattermost-server/releases)
- [Changelog](https://github.com/mattermost/mattermost-server/blob/master/CHANGELOG.md)
- [Commits](https://github.com/mattermost/mattermost-server/compare/v5.17.1...v5.17.2)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-12-19 14:39:56 +00:00
dependabot-preview[bot]
4e3ab42325 Bump github.com/mattermost/mattermost-server in /dependabot (#68) 2019-11-26 22:34:55 +00:00
dependabot-preview[bot]
44df1cad21 Bump github.com/mattermost/mattermost-server in /dependabot (#67) 2019-11-17 16:01:41 +00:00
dependabot-preview[bot]
0f76d17e4b Bump github.com/mattermost/mattermost-server in /dependabot (#66) 2019-11-07 00:44:12 +00:00
dependabot-preview[bot]
b825885790 Bump github.com/mattermost/mattermost-server in /dependabot (#65) 2019-11-03 17:41:48 +00:00
dependabot-preview[bot]
1aab309dbe Bump github.com/mattermost/mattermost-server in /dependabot (#64) 2019-10-25 06:36:54 +00:00
dependabot-preview[bot]
b0e13adaec Bump github.com/mattermost/mattermost-server from 5.15.1 to 5.16.0 in /dependabot (#63)
* Bump github.com/mattermost/mattermost-server in /dependabot

Bumps [github.com/mattermost/mattermost-server](https://github.com/mattermost/mattermost-server) from 5.15.1 to 5.16.0.
- [Release notes](https://github.com/mattermost/mattermost-server/releases)
- [Changelog](https://github.com/mattermost/mattermost-server/blob/master/CHANGELOG.md)
- [Commits](https://github.com/mattermost/mattermost-server/compare/v5.15.1...v5.16.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-10-18 08:19:01 +02:00
dependabot-preview[bot]
6af28466ed Bump github.com/mattermost/mattermost-server in /dependabot (#62) 2019-10-14 06:55:02 +00:00
dependabot-preview[bot]
423a1fc7a4 Bump github.com/mattermost/mattermost-server in /dependabot (#61) 2019-09-17 06:37:03 +00:00
dependabot-preview[bot]
f3a313d74b Bump github.com/mattermost/mattermost-server in /dependabot (#60) 2019-09-02 06:39:33 +00:00
dependabot-preview[bot]
d1f0a22e8c Bump github.com/mattermost/mattermost-server in /dependabot (#59) 2019-08-29 06:34:48 +00:00
dependabot-preview[bot]
d91fcfea61 Bump github.com/mattermost/mattermost-server from 5.13.2 to 5.14.0 in /dependabot (#58)
Bump github.com/mattermost/mattermost-server in /dependabot

Bumps [github.com/mattermost/mattermost-server](https://github.com/mattermost/mattermost-server) from 5.13.2 to 5.14.0.
- [Release notes](https://github.com/mattermost/mattermost-server/releases)
- [Changelog](https://github.com/mattermost/mattermost-server/blob/master/CHANGELOG.md)
- [Commits](https://github.com/mattermost/mattermost-server/compare/v5.13.2...v5.14.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-08-18 15:47:26 +02:00
dependabot-preview[bot]
dc20b43f6b Bump github.com/mattermost/mattermost-server in /dependabot (#57) 2019-07-25 06:47:29 +00:00
dependabot-preview[bot]
69dd3108db Bump github.com/mattermost/mattermost-server in /dependabot (#56) 2019-07-20 09:45:06 +00:00
dependabot-preview[bot]
ec85f8e9bf Bump github.com/mattermost/mattermost-server in /dependabot (#55) 2019-07-17 06:40:46 +00:00
dependabot-preview[bot]
793ea4bec3 Bump github.com/mattermost/mattermost-server in /dependabot (#54) 2019-07-16 06:40:10 +00:00
dependabot-preview[bot]
5395cf700d Bump github.com/mattermost/mattermost-server in /dependabot (#53) 2019-07-10 06:38:35 +00:00
dependabot-preview[bot]
9696123c42 Bump github.com/mattermost/mattermost-server in /dependabot (#52) 2019-07-04 06:50:31 +00:00
dependabot-preview[bot]
36e5d61564 Bump github.com/mattermost/mattermost-server in /dependabot (#51) 2019-06-30 22:48:19 +00:00
dependabot-preview[bot]
55cd923ead Bump github.com/mattermost/mattermost-server in /dependabot (#50) 2019-06-16 18:52:14 +02:00
dependabot[bot]
def77fa66d Bump github.com/mattermost/mattermost-server in /dependabot (#49) 2019-05-16 07:12:22 +00:00
dependabot[bot]
ee936bdd8f Bump github.com/mattermost/mattermost-server in /dependabot (#48) 2019-04-17 07:03:45 +00:00
dependabot[bot]
df7a149a4e Bump github.com/mattermost/mattermost-server in /dependabot (#47) 2019-03-17 16:08:18 +00:00
dependabot[bot]
1d503644eb Bump github.com/mattermost/mattermost-server in /dependabot (#46) 2019-02-17 01:36:02 +00:00
dependabot[bot]
0b5dcbb8a7 Bump github.com/mattermost/mattermost-server in /dependabot (#45) 2019-02-03 14:56:47 +00:00
dependabot[bot]
df4840729c Bump github.com/mattermost/mattermost-server (#44) 2019-01-16 07:17:10 +00:00
dependabot[bot]
fcd469daab Bump github.com/mattermost/mattermost-server (#42) 2018-12-20 16:18:22 +00:00
dependabot[bot]
a9d3978d23 Bump github.com/mattermost/mattermost-server from 5.5.1 to 5.6.0 in /dependabot (#41)
* Bump github.com/mattermost/mattermost-server

Bumps [github.com/mattermost/mattermost-server](https://github.com/mattermost/mattermost-server) from 5.5.1 to 5.6.0.
- [Release notes](https://github.com/mattermost/mattermost-server/releases)
- [Changelog](https://github.com/mattermost/mattermost-server/blob/master/CHANGELOG.md)
- [Commits](https://github.com/mattermost/mattermost-server/compare/v5.5.1...v5.6.0)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2018-12-14 23:59:41 +00:00
dependabot[bot]
12213cc988 Bump github.com/mattermost/mattermost-server (#40) 2018-12-06 12:09:00 +00:00
Bee
d1747432be Update .travis.yml (#39) 2018-11-15 23:13:04 +00:00
Bee
30ae5ae434 dependabot (#38) 2018-11-15 21:43:35 +00:00
7 changed files with 184 additions and 76 deletions

15
.github/workflows/lock.yml vendored Normal file
View File

@@ -0,0 +1,15 @@
name: 'Lock threads'
on:
schedule:
- cron: '0 0 * * *'
jobs:
lock:
runs-on: ubuntu-latest
steps:
- uses: dessant/lock-threads@v2
with:
github-token: ${{ github.token }}
issue-lock-inactive-days: 3
pr-lock-inactive-days: 3

View File

@@ -1,69 +1,44 @@
language: c
dist: trusty
sudo: required
service:
os: linux
dist: bionic
services:
- docker
env:
global:
- APT_KEY_NODEJS='9FD3B784BC1C6FC31A8A0A1C1655A0AB68576280'
- DEBIAN_RELEASE='stretch'
- DOCKER_BUILD_USER='build-user'
- DEBIAN_RELEASE='buster'
- DOCKER_PWD='/root'
- DOCKER_IMAGE="debian:${DEBIAN_RELEASE}"
- GOPATH='${HOME}/go'
- SRCROOT="${GOPATH}/src/github.com/mattermost"
matrix:
- V=5.4.0
- GOOS='dragonfly' GOARCH='amd64'
- GOOS='freebsd' GOARCH='amd64'
- GOOS='freebsd' GOARCH='arm'
- GOOS='linux' GOARCH='arm'
- GOOS='linux' GOARCH='arm64'
- GOOS='linux' GOARCH='mips'
- GOOS='linux' GOARCH='mips64'
- GOOS='linux' GOARCH='mips64le'
- GOOS='linux' GOARCH='mipsle'
- GOOS='linux' GOARCH='ppc64'
- GOOS='linux' GOARCH='ppc64le'
- GOOS='linux' GOARCH='s390x'
- GOOS='netbsd' GOARCH='amd64'
- GOOS='netbsd' GOARCH='arm'
- GOOS='openbsd' GOARCH='amd64'
- GOOS='openbsd' GOARCH='arm'
before_install:
- l() { echo "${@}" >> setup.sh; }
- l '#!/bin/bash'
- l set -ex
# setup build environment as root
- l 'if [ ${UID} -eq 0 ]; then'
- l useradd -md "${DOCKER_PWD}/${DOCKER_BUILD_USER}" "${DOCKER_BUILD_USER}"
- l echo 'APT::Install-Recommends "0"\; APT::Install-Suggests "0"\;' '>' /etc/apt/apt.conf.d/99reduce-it
- l apt-get update
- l apt-get install -yq gnupg2 dirmngr apt-transport-https ca-certificates
- l apt-key adv --keyserver keyserver.ubuntu.com --recv-keys "${APT_KEY_NODEJS}"
- l echo "deb http://deb.debian.org/debian ${DEBIAN_RELEASE}-backports main" '>' /etc/apt/sources.list.d/backports.list
- l echo "deb-src http://deb.debian.org/debian ${DEBIAN_RELEASE} main" '>' /etc/apt/sources.list.d/stable-source.list
- l echo "deb https://deb.nodesource.com/node_10.x ${DEBIAN_RELEASE} main" '>' /etc/apt/sources.list.d/bad-node.list
- l apt-get update
- l apt-get install -yqt "${DEBIAN_RELEASE}-backports" golang-go
- l apt-get install -yq wget build-essential patch git nodejs
- l apt-get build-dep -yq pngquant
- l install -d -o "${DOCKER_BUILD_USER}" '"$(go env GOROOT)/pkg/linux_arm"'
- l cp --verbose '"${0}"' "${DOCKER_PWD}/${DOCKER_BUILD_USER}"
# switch to non-root user
- l exec su --shell /bin/bash --login "${DOCKER_BUILD_USER}" '"${0}"' '"${@}"'
- l 'fi'
# build as non-root user
- l install -d "${SRCROOT}/mattermost-{server,webapp}" "${GOPATH}/bin"
- l npm install yarn
- l wget -q "https://github.com/mattermost/mattermost-server/archive/v${V}.tar.gz" -O mattermost-server.tar.gz
- l tar -C "${SRCROOT}/mattermost-server" --strip-components=1 -xf mattermost-server.tar.gz
- l wget -q "https://github.com/mattermost/mattermost-webapp/archive/v${V}.tar.gz" -O mattermost-webapp.tar.gz
- l tar -C "${SRCROOT}/mattermost-webapp" --strip-components=1 -xf mattermost-webapp.tar.gz
- l make build -C "${SRCROOT}/mattermost-webapp"
# workaround (instead of patch): platform binary is in GOOS_GOARCH, Makefile expects it in linux_amd64
- l ln -s "${GOPATH}/bin/linux_arm" "${GOPATH}/bin/linux_amd64"
# adapt and revert reverted commit, https://github.com/mattermost/mattermost-server/pull/8537
- l patch -d "${SRCROOT}/mattermost-server" -p1 '<' "${DOCKER_PWD}/build-release.patch"
# workaround (instead of patch): overwrite GO variable to enforce desired GOARCH
- l export GOPATH="${GOPATH}" GOARM=7
- l make config-reset build-linux package-linux -C "${SRCROOT}/mattermost-server" PLUGIN_PACKAGES="" GO='"GOARCH=arm $(which go)"' BUILD_NUMBER="dev-arm-tag${V}"
# workaround (instead of patch): Makefile creates *-amd64.tar.gz
- l mv "${SRCROOT}/mattermost-server/dist/mattermost-team-linux-amd64.tar.gz" "${DOCKER_PWD}/${DOCKER_BUILD_USER}/mattermost-${V}-arm.tar.gz"
- l sha512sum "${DOCKER_PWD}/${DOCKER_BUILD_USER}/mattermost-${V}-arm.tar.gz" '|' tee "${DOCKER_PWD}/${DOCKER_BUILD_USER}/mattermost-${V}-arm.tar.gz.sha512sum"
- export MATTERMOST_RELEASE="$(grep 'mattermost' dependabot/go.mod | cut -d' ' -f3)"
- docker pull "${DOCKER_IMAGE}"
- chmod +x setup.sh
- chmod +x build.sh
script:
- docker run --interactive=true --mount="type=bind,source=${PWD},destination=${DOCKER_PWD}" --rm=true --tty=true --workdir="${DOCKER_PWD}" "${DOCKER_IMAGE}" ./setup.sh
- docker run --interactive=true --mount="type=bind,source=${PWD},destination=${DOCKER_PWD}" --rm=true --tty=true --workdir="${DOCKER_PWD}" -e DEBIAN_RELEASE -e MATTERMOST_RELEASE -e GOOS -e GOARCH "${DOCKER_IMAGE}" ./build.sh
before_deploy:
- git config --local user.name 'Travis CI'
- git config --local user.email 'travis@travis-ci.org'
- git tag "${MATTERMOST_RELEASE}" || true
deploy:
provider: releases
api_key: "${GITHUB_OAUTH_TOKEN}"
file:
- "${TRAVIS_BUILD_DIR}/${DOCKER_BUILD_USER}/setup.sh"
- "${TRAVIS_BUILD_DIR}/${DOCKER_BUILD_USER}/mattermost-${V}-arm.tar.gz"
- "${TRAVIS_BUILD_DIR}/${DOCKER_BUILD_USER}/mattermost-${V}-arm.tar.gz.sha512sum"
- "${TRAVIS_BUILD_DIR}/mattermost-${MATTERMOST_RELEASE}-${GOOS}-${GOARCH}.tar.gz"
- "${TRAVIS_BUILD_DIR}/mattermost-${MATTERMOST_RELEASE}-${GOOS}-${GOARCH}.tar.gz.sha512sum"
skip_cleanup: true

View File

@@ -1,10 +1,9 @@
# ubiquitous-memory: [Here be dragons][3]
# ubiquitous-memory: [Here be dragons][2]
[![Build Status](https://travis-ci.org/SmartHoneybee/ubiquitous-memory.svg?branch=master)](https://travis-ci.org/SmartHoneybee/ubiquitous-memory)
[Travis CI][0] recipe that builds [Mattermost][1] for Linux on [ARMv7][2]-compatible devices.
[Travis CI][0] recipe that builds [Mattermost][1] for various operating systems and architectures.
[0]: https://travis-ci.org/SmartHoneybee/ubiquitous-memory
[1]: https://mattermost.com/
[2]: https://github.com/golang/go/wiki/GoArm#supported-architectures
[3]: https://en.wikipedia.org/wiki/Here_be_dragons
[2]: https://en.wikipedia.org/wiki/Here_be_dragons

View File

@@ -1,18 +1,18 @@
From 556e16211ed1b4c146ca2a094688618458182ae7 Mon Sep 17 00:00:00 2001
From: Your Name <you@example.com>
Date: Wed, 6 Jun 2018 12:34:56 +0100
Subject: [PATCH] Split make goal
---
build/release.mk | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/build/release.mk b/build/release.mk
index 238343e..1b7859f 100644
index fa6b17566d..d0409a6953 100644
--- a/build/release.mk
+++ b/build/release.mk
@@ -61,7 +61,7 @@ endif
cp README.md $(DIST_PATH)
@@ -97,7 +97,7 @@ package:
cp -RL $(BUILD_WEBAPP_DIR)/dist/* $(DIST_PATH)/client
@#Download MMCTL
- scripts/download_mmctl_release.sh "" $(DIST_PATH)/bin
+ #scripts/download_mmctl_release.sh "" $(DIST_PATH)/bin
@# Help files
ifeq ($(BUILD_ENTERPRISE_READY),true)
@@ -126,7 +126,7 @@ endif
@# ----- PLATFORM SPECIFIC -----
-
@@ -20,14 +20,20 @@ index 238343e..1b7859f 100644
@# Make osx package
@# Copy binary
ifeq ($(BUILDER_GOOS_GOARCH),"darwin_amd64")
@@ -106,7 +106,7 @@ endif
rm -f $(DIST_PATH)/bin/mattermost.exe
rm -f $(DIST_PATH)/bin/platform.exe
@@ -195,6 +195,7 @@ endif
rm -f $(DIST_PATH)/bin/mmctl.exe
rm -f $(DIST_PATH)/prepackaged_plugins/*
-
+package-linux: package
@# Make linux package
@# Copy binary
ifeq ($(BUILDER_GOOS_GOARCH),"linux_amd64")
--
2.11.0
@@ -204,7 +205,7 @@ else
cp $(GOBIN)/linux_amd64/mattermost $(DIST_PATH)/bin # from cross-compiled bin dir
cp $(GOBIN)/linux_amd64/platform $(DIST_PATH)/bin # from cross-compiled bin dir
endif
- MMCTL_FILE="linux_amd64.tar" && curl -f -O -L https://releases.mattermost.com/mmctl/v5.30.0/$$MMCTL_FILE && tar -xvf $$MMCTL_FILE -C $(DIST_PATH)/bin && rm $$MMCTL_FILE
+ #MMCTL_FILE="linux_amd64.tar" && curl -f -O -L https://releases.mattermost.com/mmctl/v5.30.0/$$MMCTL_FILE && tar -xvf $$MMCTL_FILE -C $(DIST_PATH)/bin && rm $$MMCTL_FILE
@# Prepackage plugins
@for plugin_package in $(PLUGIN_PACKAGES) ; do \
ARCH="linux-amd64"; \

107
build.sh Normal file
View File

@@ -0,0 +1,107 @@
#!/bin/sh
set -eux
# build user
BUILD_USER_HOME="${BUILD_USER_HOME:-/build}"
BUILD_USER_NAME="${BUILD_USER_NAME:-build}"
# Debian release used during build
DEBIAN_RELEASE="${DEBIAN_RELEASE:-stretch}"
# Mattermost version to build
MATTERMOST_RELEASE="${MATTERMOST_RELEASE:-v5.4.0}"
# node key id and release
NODE_KEY="${NODE_KEY:-9FD3B784BC1C6FC31A8A0A1C1655A0AB68576280}"
NODE_RELEASE="${NODE_RELEASE:-10}"
if [ "$(id -u)" -eq 0 ]; then # as root user
# create build user, if needed
set +e
if ! id -u "${BUILD_USER_NAME}"; then # create build user
set -e
useradd --create-home --home-dir "${BUILD_USER_HOME}" --skel "${PWD}" \
"${BUILD_USER_NAME}"
fi
set -e
# configure apt
printf 'APT::Install-Recommends "0";' \
> '/etc/apt/apt.conf.d/99-no-install-recommends'
printf 'APT::Install-Suggests "0";' \
> '/etc/apt/apt.conf.d/99-no-install-suggests'
printf 'APT::Get::Assume-Yes "true";' \
> '/etc/apt/apt.conf.d/99-assume-yes'
# update repositories
apt-get update
# dependencies to setup repositories
apt-get install --quiet \
gnupg2 dirmngr apt-transport-https ca-certificates parallel
# receive missing key (retry on failure)
parallel --verbose --delay=30 --retries=5 "apt-key adv --keyserver 'ipv4.pool.sks-keyservers.net' --recv-keys '{}'" ::: "${NODE_KEY}"
# add required additional repositories
printf 'deb-src http://deb.debian.org/debian %s main' "${DEBIAN_RELEASE}" \
> "/etc/apt/sources.list.d/${DEBIAN_RELEASE}-source.list"
printf 'deb http://deb.debian.org/debian %s-backports main' "${DEBIAN_RELEASE}" \
> "/etc/apt/sources.list.d/${DEBIAN_RELEASE}-backports.list"
printf 'deb https://deb.nodesource.com/node_%s.x %s main' "${NODE_RELEASE}" "${DEBIAN_RELEASE}" \
> '/etc/apt/sources.list.d/nodesource.list'
# update repositories
apt-get update
# install go from Debian backports
apt-get install --quiet --target-release "${DEBIAN_RELEASE}-backports" \
golang-go
# install dependencies
apt-get install --quiet \
wget build-essential patch git nodejs
# install 'pngquant' build dependencies (required by node module)
apt-get build-dep --quiet \
pngquant
# FIXME go (executed by build user) writes to GOROOT
install --directory --owner="${BUILD_USER_NAME}" \
"$(go env GOROOT)/pkg/$(go env GOOS)_$(go env GOARCH)"
# switch to build user
runuser -u "${BUILD_USER_NAME}" -- "${0}"
# salvage build artifacts
cp --verbose \
"${BUILD_USER_HOME}/mattermost-${MATTERMOST_RELEASE}-$(go env GOOS)-$(go env GOARCH).tar.gz" \
"${BUILD_USER_HOME}/mattermost-${MATTERMOST_RELEASE}-$(go env GOOS)-$(go env GOARCH).tar.gz.sha512sum" \
"${HOME}"
exit 0
fi
# as non-root user
cd "${HOME}"
# download and extract Mattermost sources
for COMPONENT in server webapp; do
install --directory "${HOME}/go/src/github.com/mattermost/mattermost-${COMPONENT}"
wget --quiet --continue --output-document="mattermost-${COMPONENT}.tar.gz" \
"https://github.com/mattermost/mattermost-${COMPONENT}/archive/${MATTERMOST_RELEASE}.tar.gz"
tar --directory="${HOME}/go/src/github.com/mattermost/mattermost-${COMPONENT}" \
--strip-components=1 --extract --file="mattermost-${COMPONENT}.tar.gz"
done
# build Mattermost webapp
npm set progress false
sed -i -e 's#--verbose#--display minimal#' \
"${HOME}/go/src/github.com/mattermost/mattermost-webapp/package.json"
make --directory="${HOME}/go/src/github.com/mattermost/mattermost-webapp" \
build
# build Mattermost server
install --directory "${HOME}/go/bin"
if [ "$(go env GOOS)_$(go env GOARCH)" != 'linux_amd64' ]; then
ln --symbolic \
"${HOME}/go/bin/$(go env GOOS)_$(go env GOARCH)" \
"${HOME}/go/bin/linux_amd64"
fi
patch --directory="${HOME}/go/src/github.com/mattermost/mattermost-server" \
--strip=1 -t < "${HOME}/build-release.patch"
sed -i \
-e 's#go generate#env --unset=GOOS --unset=GOARCH go generate#' \
-e 's#$(GO) generate#env --unset=GOOS --unset=GOARCH go generate#' \
-e 's#PWD#CURDIR#' \
"${HOME}/go/src/github.com/mattermost/mattermost-server/Makefile" \
"${HOME}/go/src/github.com/mattermost/mattermost-server/build/release.mk"
make --directory="${HOME}/go/src/github.com/mattermost/mattermost-server" \
config-reset build-linux package-linux \
BUILD_NUMBER="dev-$(go env GOOS)-$(go env GOARCH)-${MATTERMOST_RELEASE}" \
GO="GOARCH=$(go env GOARCH) GOOS=$(go env GOOS) $(command -v go)" \
PLUGIN_PACKAGES=''
# rename archive and calculate its SHA512 sum
mv "${HOME}/go/src/github.com/mattermost/mattermost-server/dist/mattermost-team-linux-amd64.tar.gz" \
"${HOME}/mattermost-${MATTERMOST_RELEASE}-$(go env GOOS)-$(go env GOARCH).tar.gz"
sha512sum "${HOME}/mattermost-${MATTERMOST_RELEASE}-$(go env GOOS)-$(go env GOARCH).tar.gz" | \
tee "${HOME}/mattermost-${MATTERMOST_RELEASE}-$(go env GOOS)-$(go env GOARCH).tar.gz.sha512sum"

3
dependabot/dummy.go Normal file
View File

@@ -0,0 +1,3 @@
package main
import _ "github.com/mattermost/mattermost-server/model"
func main() {/* dummy file */}

3
dependabot/go.mod Normal file
View File

@@ -0,0 +1,3 @@
module github.com/SmartHoneybee/ubiquitous-memory/dependabot
require github.com/mattermost/mattermost-server/v5 v5.30.1