bundles/{matrix-dimension,mx-puppet-discord}: nodejs-dependency-hölle, once again

This commit is contained in:
Franzi 2022-11-05 07:47:07 +01:00
parent ee9f7b8875
commit 73e6ba0872
Signed by: kunsi
GPG key ID: 12E3D2136B818350
3 changed files with 19 additions and 1 deletions

View file

@ -51,7 +51,11 @@ files = {
actions = {
'matrix_dimension_build': {
'command': 'cd ' + node.metadata.get('matrix-dimension/install_dir') + ' && sudo -u matrix-dimension npm install && sudo -u matrix-dimension npm run build',
'command': ' && '.join([
'cd ' + node.metadata.get('matrix-dimension/install_dir'),
'sudo -u matrix-dimension npm install --legacy-peer-deps',
'sudo -u matrix-dimension NODE_OPTIONS=--openssl-legacy-provider npm run build',
]),
'needs': {
'pkg_apt:nodejs',
},

View file

@ -78,7 +78,12 @@ actions = {
'command': 'cd /opt/mx-puppet-discord/src && sudo -u mx-puppet-discord yarn install',
'needs': {
'action:mx-puppet-discord_chown',
'pkg_apt:libcairo2-dev',
'pkg_apt:libgif-dev',
'pkg_apt:libpango1.0-dev',
'pkg_apt:libpixman-1-dev',
'pkg_apt:nodejs',
'pkg_apt:pkg-config',
'user:mx-puppet-discord',
},
'triggered': True,

View file

@ -1,4 +1,13 @@
defaults = {
'apt': {
'packages': {
'libcairo2-dev': {},
'libgif-dev': {},
'libpango1.0-dev': {},
'libpixman-1-dev': {},
'pkg-config': {},
},
},
'matrix-synapse': {
'appservice_configs': {
'/opt/mx-puppet-discord/registration.yaml',