29 Commits

Author SHA1 Message Date
Will Hunt
819c089aa4
Update minimum Node version to 22 (#990)
* Update dependencies

* Node 22 is now the new minimum version.

* changelog.

* Begin porting eslint to new config format.

* Make linter happy.

* Update reqwest to fix SSL issue?

* Fix test types

* quick check on ubuntu LTS 24.04

* Change cache key

* update rust action

* revert mocha due to esminess

* Remove the only usage of pqueue

* Use babel for TS transformations to get around ESM import bug.

* Dependency bundle upgrade

* Drop babel, not actually used.

* lint

* lint

* update default config (mostly sections moving around)
2024-11-28 15:04:01 +00:00
Andrew Ferrazzutti
5c5e8ce767
Pin the Node minor version for Docker builds (#949)
* Pin the Node minor version for Docker builds

as 20.13 & 20.14 cause Hookshot to crash on startup (at least on arm64)

* Add changelog
2024-06-21 15:56:06 +00:00
davidegirardi
9a6d4317b2
Use production mode (#904)
* Set NODE_ENV to production

* Disable the X-Powered-By HTTP header

* Explain what the different values do

* Add changelog file
2024-02-27 14:35:03 +00:00
Will Hunt
2a4b06bdbd
Use node:20-slim for Docker (#849)
* Use node:20-slim

* Add curl

* Lint

* retrigger

* Update stale cargo deps

* Update axios

* Add pkg-config and remove stale comment

* changelog

* Add openssl dep

* Add libssl-dev
2023-12-06 10:28:52 +00:00
Justin Carlson
0c4a493c56
Add support for uploading avatars (#767)
* Add uploading configured avatar images

* Add avatar assets

* Update docs and sample config

* Add changelog

* Fix sample config

* Add removing avatars when none configured
2023-05-24 13:16:37 +00:00
Will Hunt
c864dc6b42
Support node 20, drop node 16 (#724)
* Support node 20, drop node 16

* Update workflow versions

* Update backendmeta

* Use version file

* Update packages

* Yarn updates

* Changelog

* Fix glibc compatibility

* Target es2021

Without this, CI tests fail

* Drop unused metrics parameter

* Revert "Drop unused metrics parameter"

This reverts commit 4d874549bcec3dea0d6941215ac5c4f4707966ac.

* Make a note about broken support

---------

Co-authored-by: Andrew Ferrazzutti <andrewf@element.io>
2023-04-27 12:24:06 +01:00
Will Hunt
707ce0de2d
Cache yarn dependencies (#615)
* Cache yarn dependencies

* changelog
2023-01-06 17:21:08 +00:00
Will Hunt
45d82c7a31
Remove debug steps 2022-10-17 22:29:41 +01:00
Andrew Ferrazzutti
c0efb91c9a
Fix Docker builds hanging/OOMing (#535)
* Add network timeouts to Docker builds

* Split cargo build out

* Put cargo in the right place

* debug usage

* install time

* Fix docker build OOMing in CI for arm64 builds

Yoinked from synapse:
- https://github.com/matrix-org/synapse/pull/14173
- 424d1d28cc

* Update changelog

Co-authored-by: Half-Shot <will@half-shot.uk>
2022-10-17 13:09:15 -04:00
Will Hunt
10e4e88431
Remove --no-script from yarn (#448)
* Remove --no-script from yarn

As it turns out, we need to run the script to build the all important
crypto modules that we don't use. The --no-script is intended to avoid
us trying to build the project, but in practise I think this does more
harm than good (we don't seem to build when the production flag is used)

* changelog
2022-08-22 10:52:48 +01:00
Will Hunt
00927175a2
Update matrix-bot-sdk to 0.6.0 (#417)
* Update matrix-bot-sdk to 0.6.0

* changelog

* More package updates

* Don't need to copy bindings anymore

* Expliclty require Node 16

* Drop node 14 test

* fix rust bindings fetch

* Update .github/workflows/main.yml

Co-authored-by: Tadeusz Sośnierz <tadzik@tadzik.net>

* Update main.yml

Co-authored-by: Tadeusz Sośnierz <tadzik@tadzik.net>
2022-08-12 10:59:24 +01:00
Justin Carlson
b0eaa8b3b0
Reorder dockerfile to optimize rebuilds (#438)
* Reorder dockerfile to optimize rebuilds

* Add changelog
2022-08-11 18:11:55 +01:00
Will Hunt
ab59fe4e98
Dockerfile: Move --pure-lockfile to yarn (install) (#391)
* Move --pure-lockfile to yarn (install)

* Debug rust

* Update Dockerfile
2022-07-06 12:49:26 +01:00
Will Hunt
c02d4349a3
Get ARM64 builds working (#339)
* Use node:16-slim for final image build

* changelog

* Add ignore scripts to final install step

* Copy matrix-sdk-crypto-nodejs built files

* Add workaround to build images foo crypto-nodejs

* chmod +x

* require bash for builds

* Add apt install to hopefully make the rust bits build for arm

* Fix missing multilib (#349)

* Update and rename 336.misc to 339.bugfix

Co-authored-by: Paul Tötterman <ptman@users.noreply.github.com>
2022-05-10 15:55:30 +01:00
Will Hunt
eea075e7ab
Use node:16-slim for final image build (#336)
* Use node:16-slim for final image build

* changelog

* Add ignore scripts to final install step
2022-05-06 15:54:45 +01:00
Will Hunt
4463e1c112
Clean cache, and don't generate a lockfile (#319)
* Clean cache, and don't generate a lockfile

* changelog
2022-04-25 16:11:25 +01:00
Slavi Pantaleev
818bb03364
Do not explicitly pass --target to rustup (#184)
* Do not explicitly pass --target to rustup

It doesn't seem to be necessary to install Rust.
Passing `--target` prevents the Dockerfile from being built on different architectures.
Not passing it makes it auto-detect what to install.

Discussed here: https://github.com/spantaleev/matrix-docker-ansible-deploy/pull/1505

* Add changelog entry
2022-01-31 18:27:10 +00:00
Will Hunt
40a75fa4d3 Rename project 2021-11-22 16:02:07 +00:00
Will Hunt
175a2c592e Package tweaks 2021-11-21 13:21:58 +00:00
Will Hunt
5bdd5c40ca Working around cargo/debian bugs 2021-11-21 12:52:05 +00:00
Will Hunt
39c6e81cbb Lots of changes 2021-11-21 12:34:56 +00:00
Will Hunt
51b70505c5 Small bug fixes 2021-09-17 13:19:25 +01:00
Will Hunt
07bd0e8be4 Urgh version 2021-04-16 13:11:54 +01:00
Will Hunt
aec1cb74e8 Tweak docker a bit 2021-04-11 18:39:26 +01:00
Will Hunt
7857a7f454 Update dockerfile with Node14 + widget support 2020-12-13 13:35:10 +00:00
Travis Ralston
80d8a14b03
Fix config.yml reference in dockerfile
This is a breaking change for those who use the docker image, but oh well.
2019-08-09 22:44:27 -06:00
Will Hunt
a53bb2fb7f Fix dockerfile 2019-08-07 21:29:04 +01:00
Half-Shot
6644d9f0a8 Update dockerfile 2019-08-07 19:09:35 +01:00
Travis Ralston
132984bc00 Add a simple Dockerfile 2019-08-03 18:45:06 -06:00