1
0
mirror of https://github.com/SmartHoneybee/ubiquitous-memory synced 2025-10-25 15:53:48 +02:00

Compare commits

...

15 Commits

Author SHA1 Message Date
Pierre de La Morinerie
304ed7d646 Attempt to fix Dependabot detection 2021-11-28 09:05:02 +01:00
Pierre de La Morinerie
cef04b0488 Build and package mmctl (#136) 2021-11-08 18:50:47 +01:00
parnic-sks
f3aa038f93 Update to v6.0.2 (#135) 2021-10-29 08:17:39 +02:00
dependabot[bot]
ce52eca004 Bump github.com/mattermost/mattermost-server/v6 in /dependabot (#134)
Bumps [github.com/mattermost/mattermost-server/v6](https://github.com/mattermost/mattermost-server) from 6.0.0 to 6.0.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/v6.0.0...v6.0.1)

---
updated-dependencies:
- dependency-name: github.com/mattermost/mattermost-server/v6
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-10-18 21:39:42 -05:00
parnic-sks
06ac371c53 Update for Mattermost v6 (#133)
* Update for Mattermost v6

* Update release.mk patch

The Mattermost build script has changed to accomplish most of what we
were trying to patch it to support. The config generator is still a
point of contention, and I'm having trouble getting it to work even with
this patch, but wanted to toss it to the build machine to see if it
works there. We may need to dig into the config generator deeper if it
doesn't.

There are additional build script changes after 6.0 that have, for
example, linux-arm64 support already baked in, so we will eventually
need to make larger changes to which platforms we build at all.
2021-10-12 10:44:48 -05:00
parnic-sks
a55b21d6e7 Update Mattermost to v5.39 (#132) 2021-09-16 12:26:42 -05:00
dependabot[bot]
ca9c6e47c5 Bump github.com/mattermost/mattermost-server/v5 from 5.38.1 to 5.38.2 in /dependabot (#131)
* Bump github.com/mattermost/mattermost-server/v5 in /dependabot

Bumps [github.com/mattermost/mattermost-server/v5](https://github.com/mattermost/mattermost-server) from 5.38.1 to 5.38.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.38.1...v5.38.2)

---
updated-dependencies:
- dependency-name: github.com/mattermost/mattermost-server/v5
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

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

* Remove errant requires

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: parnic-sks <chris@straykitestudios.com>
2021-08-26 21:55:32 -05:00
parnic-sks
89f37ddd12 Update to Go 1.16.7 per MM 5.38.2 release notes (#130) 2021-08-26 16:13:47 -05:00
dependabot[bot]
a5c6a921e2 Bump github.com/mattermost/mattermost-server/v5 from 5.38.0 to 5.38.1 in /dependabot (#129)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-08-19 13:19:28 +02:00
Pierre de La Morinerie
02f1846b2b Upgrade to 5.38.0 (#128) 2021-08-17 23:09:46 +02:00
parnic-sks
362f5cf97f Update Golang version per Mattermost 5.38.0 release notes (#127)
* Update Golang version per Mattermost 5.38.0 release notes

* Update version formatting to match download filename
2021-08-16 23:56:56 +02:00
Pierre de La Morinerie
4b09124333 Upgrade to 5.37.1 (#126) 2021-08-08 09:08:19 +02:00
Pierre de La Morinerie
7332922733 Upgrade to Mattermost 5.37.0 (#125) 2021-07-15 23:08:18 +02:00
dependabot[bot]
605dd4992e Bump github.com/mattermost/mattermost-server/v5 from 5.36.0 to 5.36.1 in /dependabot (#124)
Bumps [github.com/mattermost/mattermost-server/v5](https://github.com/mattermost/mattermost-server) from 5.36.0 to 5.36.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.36.0...v5.36.1)

---
updated-dependencies:
- dependency-name: github.com/mattermost/mattermost-server/v5
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-06-23 08:20:30 +02:00
Pierre de La Morinerie
f58b2018c4 Fix build (#123)
Co-authored-by: parnic-sks <chris@straykitestudios.com>
2021-06-23 07:42:40 +02:00
5 changed files with 48 additions and 51 deletions

View File

@@ -9,7 +9,7 @@ env:
DEBIAN_RELEASE: buster DEBIAN_RELEASE: buster
DOCKER_PWD: /root DOCKER_PWD: /root
DOCKER_IMAGE: debian:${DEBIAN_RELEASE} DOCKER_IMAGE: debian:${DEBIAN_RELEASE}
GO_VERSION: 1.15.5 GO_VERSION: 1.16.7
jobs: jobs:
build: build:
@@ -55,7 +55,9 @@ jobs:
uses: actions/checkout@v2 uses: actions/checkout@v2
- name: Set environment from runtime properties - name: Set environment from runtime properties
run: echo "MATTERMOST_RELEASE=$(grep 'mattermost' dependabot/go.mod | cut -d' ' -f3)" >> $GITHUB_ENV run: |
echo "MATTERMOST_RELEASE=$(grep 'mattermost-server' dependabot/go.mod | cut -d' ' -f3)" >> $GITHUB_ENV
echo "MMCTL_RELEASE=$(grep 'mmctl' dependabot/go.mod | cut -d' ' -f3)" >> $GITHUB_ENV
- name: Pull docker image - name: Pull docker image
run: 'docker pull "${{ env.DOCKER_IMAGE }}"' run: 'docker pull "${{ env.DOCKER_IMAGE }}"'
@@ -64,7 +66,7 @@ jobs:
env: env:
GOOS: ${{ matrix.os }} GOOS: ${{ matrix.os }}
GOARCH: ${{ matrix.arch }} GOARCH: ${{ matrix.arch }}
run: docker run --mount="type=bind,source=$PWD,destination=${{ env.DOCKER_PWD }}" --rm=true --tty=true --workdir="${{ env.DOCKER_PWD }}" -e DEBIAN_RELEASE -e MATTERMOST_RELEASE -e GOOS -e GOARCH "${{ env.DOCKER_IMAGE }}" ./build.sh run: docker run --mount="type=bind,source=$PWD,destination=${{ env.DOCKER_PWD }}" --rm=true --tty=true --workdir="${{ env.DOCKER_PWD }}" -e DEBIAN_RELEASE -e MATTERMOST_RELEASE -e MMCTL_RELEASE -e GOOS -e GOARCH "${{ env.DOCKER_IMAGE }}" ./build.sh
- name: Tag release - name: Tag release
if: github.ref == 'refs/heads/master' if: github.ref == 'refs/heads/master'

View File

@@ -1,8 +1,8 @@
diff --git a/build/release.mk b/build/release.mk diff --git a/build/release.mk b/build/release.mk
index 1530e75c6..befe5c9b7 100644 index 7f989d4b4..886119275 100644
--- a/build/release.mk --- a/build/release.mk
+++ b/build/release.mk +++ b/build/release.mk
@@ -76,7 +76,7 @@ package: @@ -71,7 +71,7 @@ package-prep:
@# Resource directories @# Resource directories
mkdir -p $(DIST_PATH)/config mkdir -p $(DIST_PATH)/config
cp -L config/README.md $(DIST_PATH)/config cp -L config/README.md $(DIST_PATH)/config
@@ -11,39 +11,12 @@ index 1530e75c6..befe5c9b7 100644
cp -RL fonts $(DIST_PATH) cp -RL fonts $(DIST_PATH)
cp -RL templates $(DIST_PATH) cp -RL templates $(DIST_PATH)
rm -rf $(DIST_PATH)/templates/*.mjml $(DIST_PATH)/templates/partials/ rm -rf $(DIST_PATH)/templates/*.mjml $(DIST_PATH)/templates/partials/
@@ -98,7 +98,7 @@ package: @@ -201,7 +201,7 @@ else
cp -RL $(BUILD_WEBAPP_DIR)/dist/* $(DIST_PATH)/client cp $(GOBIN)/linux_amd64/mattermost $(DIST_PATH_LIN)/bin # from cross-compiled bin dir
@#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)
@@ -127,7 +127,7 @@ endif
@# ----- PLATFORM SPECIFIC -----
-
+_:
@# Make osx package
@# Copy binary
ifeq ($(BUILDER_GOOS_GOARCH),"darwin_amd64")
@@ -197,7 +197,7 @@ endif
rm -f $(DIST_PATH)/bin/platform.exe
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")
@@ -208,7 +208,7 @@ else
cp $(GOBIN)/linux_amd64/platform $(DIST_PATH)/bin # from cross-compiled bin dir
endif endif
#Download MMCTL for Linux #Download MMCTL for Linux
- scripts/download_mmctl_release.sh "Linux" $(DIST_PATH)/bin - scripts/download_mmctl_release.sh "Linux" $(DIST_PATH_LIN)/bin
+ #scripts/download_mmctl_release.sh "Linux" $(DIST_PATH)/bin + cp "${HOME}/go/src/github.com/mattermost/mmctl/mmctl" $(DIST_PATH_LIN)/bin
@# Prepackage plugins @# Prepackage plugins
@for plugin_package in $(PLUGIN_PACKAGES) ; do \ @for plugin_package in $(PLUGIN_PACKAGES) ; do \
ARCH="linux-amd64"; \ ARCH="linux-amd64"; \

View File

@@ -6,12 +6,13 @@ BUILD_USER_NAME="${BUILD_USER_NAME:-build}"
# Debian release used during build # Debian release used during build
DEBIAN_RELEASE="${DEBIAN_RELEASE:-stretch}" DEBIAN_RELEASE="${DEBIAN_RELEASE:-stretch}"
# Mattermost version to build # Mattermost version to build
MATTERMOST_RELEASE="${MATTERMOST_RELEASE:-v5.4.0}" MATTERMOST_RELEASE="${MATTERMOST_RELEASE:-v5.26.0}"
MMCTL_RELEASE="${MMCTL_RELEASE:-v5.26.0}"
# node key id and release # node key id and release
NODE_KEY="${NODE_KEY:-9FD3B784BC1C6FC31A8A0A1C1655A0AB68576280}" NODE_KEY="${NODE_KEY:-9FD3B784BC1C6FC31A8A0A1C1655A0AB68576280}"
NODE_RELEASE="${NODE_RELEASE:-10}" NODE_RELEASE="${NODE_RELEASE:-10}"
# golang version # golang version
GO_VERSION="${GO_VERSION:-1.15.5}" GO_VERSION="${GO_VERSION:-1.16.7}"
if [ "$(id -u)" -eq 0 ]; then # as root user if [ "$(id -u)" -eq 0 ]; then # as root user
# create build user, if needed # create build user, if needed
@@ -33,9 +34,9 @@ if [ "$(id -u)" -eq 0 ]; then # as root user
apt-get update apt-get update
# dependencies to setup repositories # dependencies to setup repositories
apt-get install --quiet \ apt-get install --quiet \
gnupg2 dirmngr apt-transport-https ca-certificates parallel gnupg2 dirmngr apt-transport-https ca-certificates curl
# receive missing key (retry on failure) # receive missing key
parallel --verbose --delay=30 --retries=5 "apt-key adv --keyserver 'ipv4.pool.sks-keyservers.net' --recv-keys '{}'" ::: "${NODE_KEY}" curl -fsSL https://deb.nodesource.com/gpgkey/nodesource.gpg.key | apt-key add -
# add required additional repositories # add required additional repositories
printf 'deb-src http://deb.debian.org/debian %s main' "${DEBIAN_RELEASE}" \ printf 'deb-src http://deb.debian.org/debian %s main' "${DEBIAN_RELEASE}" \
> "/etc/apt/sources.list.d/${DEBIAN_RELEASE}-source.list" > "/etc/apt/sources.list.d/${DEBIAN_RELEASE}-source.list"
@@ -60,7 +61,7 @@ if [ "$(id -u)" -eq 0 ]; then # as root user
# FIXME go (executed by build user) writes to GOROOT # FIXME go (executed by build user) writes to GOROOT
install --directory --owner="${BUILD_USER_NAME}" \ install --directory --owner="${BUILD_USER_NAME}" \
"$(go env GOROOT)/pkg/$(go env GOOS)_$(go env GOARCH)" "$(go env GOROOT)/pkg/$(go env GOOS)_$(go env GOARCH)"
# switch to build user # Re-invoke this build.sh script with the 'build' user
runuser -u "${BUILD_USER_NAME}" -- "${0}" runuser -u "${BUILD_USER_NAME}" -- "${0}"
# salvage build artifacts # salvage build artifacts
cp --verbose \ cp --verbose \
@@ -81,6 +82,27 @@ for COMPONENT in server webapp; do
tar --directory="${HOME}/go/src/github.com/mattermost/mattermost-${COMPONENT}" \ tar --directory="${HOME}/go/src/github.com/mattermost/mattermost-${COMPONENT}" \
--strip-components=1 --extract --file="mattermost-${COMPONENT}.tar.gz" --strip-components=1 --extract --file="mattermost-${COMPONENT}.tar.gz"
done done
# prepare the go build environment
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
# build mmctl
install --directory "${HOME}/go/src/github.com/mattermost/mmctl"
wget --quiet --continue --output-document="mmctl.tar.gz" \
"https://github.com/mattermost/mmctl/archive/${MMCTL_RELEASE}.tar.gz"
tar --directory="${HOME}/go/src/github.com/mattermost/mmctl" \
--strip-components=1 --extract --file="mmctl.tar.gz"
find "${HOME}/go/src/github.com/mattermost/mmctl/" -type f -name '*.go' | xargs \
sed -i \
-e 's#//go:build linux || darwin#//go:build linux || darwin || dragonfly || freebsd || netbsd || openbsd#' \
-e 's#// +build linux darwin#// +build linux darwin dragonfly freebsd netbsd openbsd#'
make --directory="${HOME}/go/src/github.com/mattermost/mmctl" \
BUILD_NUMBER="dev-$(go env GOOS)-$(go env GOARCH)-${MMCTL_RELEASE}" \
ADVANCED_VET=0 \
GO="GOARCH= GOOS= $(command -v go)"
# build Mattermost webapp # build Mattermost webapp
npm set progress false npm set progress false
sed -i -e 's#--verbose#--display minimal#' \ sed -i -e 's#--verbose#--display minimal#' \
@@ -88,12 +110,6 @@ sed -i -e 's#--verbose#--display minimal#' \
make --directory="${HOME}/go/src/github.com/mattermost/mattermost-webapp" \ make --directory="${HOME}/go/src/github.com/mattermost/mattermost-webapp" \
build build
# build Mattermost server # 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" \ patch --directory="${HOME}/go/src/github.com/mattermost/mattermost-server" \
--strip=1 -t < "${HOME}/build-release.patch" --strip=1 -t < "${HOME}/build-release.patch"
sed -i \ sed -i \

View File

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

View File

@@ -1,3 +1,6 @@
module github.com/SmartHoneybee/ubiquitous-memory/dependabot module github.com/SmartHoneybee/ubiquitous-memory/dependabot
require github.com/mattermost/mattermost-server/v5 v5.36.0 go 1.16
require github.com/mattermost/mattermost-server/v6 v6.0.2
require github.com/mattermost/mmctl/v1 v6.0.0