build: rename bbb-graphql-actions-adapter-server to bbb-graphql-actions

This commit is contained in:
Anton Georgiev 2023-12-14 10:59:10 -05:00
parent 0942a91d20
commit 354566bd2c
105 changed files with 90 additions and 60 deletions

View File

@ -48,7 +48,7 @@ updates:
# upcoming release branch
## excluding bigbluebutton-tests/playwright, bigbluebutton-tests/puppeteer, docs, bbb-graphql-client-test
- package-ecosystem: npm
directory: "/bbb-graphql-actions-adapter-server"
directory: "/bbb-graphql-actions"
target-branch: "v3.0.x-release"
schedule:
interval: daily

View File

@ -54,7 +54,7 @@ jobs:
build-list: bbb-playback bbb-playback-notes bbb-playback-podcast bbb-playback-presentation bbb-playback-screenshare bbb-playback-video bbb-record-core
- package: bbb-graphql-server
build-name: bbb-graphql-server
build-list: bbb-graphql-server bbb-graphql-middleware bbb-graphql-actions-adapter-server
build-list: bbb-graphql-server bbb-graphql-middleware bbb-graphql-actions
- package: bbb-etherpad
cache-files-list: bbb-etherpad.placeholder.sh
cache-urls-list: https://api.github.com/repos/mconf/ep_pad_ttl/commits https://api.github.com/repos/alangecker/bbb-etherpad-plugin/commits https://api.github.com/repos/mconf/ep_redis_publisher/commits https://api.github.com/repos/alangecker/bbb-etherpad-skin/commits

View File

@ -1,24 +0,0 @@
#!/usr/bin/env bash
cd "$(dirname "$0")"
for var in "$@"
do
if [[ $var == --reset ]] ; then
echo "Performing a full reset..."
rm -rf node_modules
fi
done
if [ ! -d ./node_modules ] ; then
npm ci --no-progress
fi
npm run build
mv -f dist/index.js dist/bbb-graphql-actions-adapter-server.js
sudo cp -rf dist/* /usr/local/bigbluebutton/bbb-graphql-actions-adapter-server/
sudo systemctl restart bbb-graphql-actions-adapter-server
echo ''
echo ''
echo '----------------'
echo 'bbb-graphql-actions-adapter-server updated'

32
bbb-graphql-actions/deploy.sh Executable file
View File

@ -0,0 +1,32 @@
#!/usr/bin/env bash
cd "$(dirname "$0")"
for var in "$@"
do
if [[ $var == --reset ]] ; then
echo "Performing a full reset..."
rm -rf node_modules
fi
done
if [ ! -d ./node_modules ] ; then
npm ci --no-progress
fi
npm run build
# handle renaming circa dec 2023
if [[ -d /usr/local/bigbluebutton/bbb-graphql-actions-adapter-server ]] ; then
sudo systemctl stop bbb-graphql-actions-adapter-server
sudo rm -f /usr/lib/systemd/system/bbb-graphql-actions-adapter-server.service
sudo systemctl daemon-reload
sudo rm -rf /usr/local/bigbluebutton/bbb-graphql-actions-adapter-server
fi
mv -f dist/index.js dist/bbb-graphql-actions.js
sudo cp -rf dist/* /usr/local/bigbluebutton/bbb-graphql-actions
sudo systemctl restart bbb-graphql-actions
echo ''
echo ''
echo '----------------'
echo 'bbb-graphql-actions updated'

View File

@ -1,11 +1,11 @@
{
"name": "bbb-graphql-actions-adapter-server",
"name": "bbb-graphql-actions",
"version": "0.0.1",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "bbb-graphql-actions-adapter-server",
"name": "bbb-graphql-actions",
"version": "0.0.1",
"license": "LGPL-3.0",
"dependencies": {

View File

@ -1,5 +1,5 @@
{
"name": "bbb-graphql-actions-adapter-server",
"name": "bbb-graphql-actions",
"version": "0.0.1",
"description": "A server component designed to interface between Hasura GraphQL actions and BigBlueButton ecosystem.",
"main": "index.ts",
@ -10,7 +10,7 @@
},
"repository": {
"type": "git",
"url": "git+https://github.com/bigbluebutton/bigbluebutton/tree/develop/bbb-graphql-actions-adapter-server"
"url": "git+https://github.com/bigbluebutton/bigbluebutton/tree/develop/bbb-graphql-actions"
},
"keywords": [
"bigbluebutton",
@ -22,7 +22,7 @@
"bugs": {
"url": "https://github.com/bigbluebutton/bigbluebutton/issues"
},
"homepage": "https://github.com/bigbluebutton/bigbluebutton/tree/develop/bbb-graphql-actions-adapter-server#readme",
"homepage": "https://github.com/bigbluebutton/bigbluebutton/tree/develop/bbb-graphql-actions#readme",
"dependencies": {
"@types/express": "^4.17.18",
"@types/node": "^20.7.0",

View File

@ -13,5 +13,5 @@ if [ ! -d ./node_modules ] ; then
npm install
fi
sudo systemctl stop bbb-graphql-actions-adapter-server
sudo systemctl stop bbb-graphql-actions
npm start

View File

@ -6,7 +6,7 @@ export const createRedisClient = () => {
const redisClient = redis.createClient({
url: `redis://${REDIS_HOST}:${REDIS_PORT}`, // Construct URL from host and port.
disableOfflineQueue: true, // Disable offline queueing of commands.
name: 'bbb-graphql-actions-adapter-server', // Assign a name to this client.
name: 'bbb-graphql-actions', // Assign a name to this client.
socket: {
reconnectStrategy: (times) => 500 // Reconnect strategy with a fixed delay.
}

View File

@ -396,8 +396,8 @@ display_bigbluebutton_status () {
done
fi
if [ -f /usr/lib/systemd/system/bbb-graphql-actions-adapter-server.service ]; then
units="$units bbb-graphql-actions-adapter-server"
if [ -f /usr/lib/systemd/system/bbb-graphql-actions.service ]; then
units="$units bbb-graphql-actions"
fi
if [ -f /usr/lib/systemd/system/bbb-graphql-middleware.service ]; then

View File

@ -7,7 +7,7 @@ DEBNAME_TO_SOURCEDIR[bbb-export-annotations]="bbb-export-annotations"
DEBNAME_TO_SOURCEDIR[bbb-freeswitch-core]="freeswitch bbb-voice-conference"
DEBNAME_TO_SOURCEDIR[bbb-freeswitch-sounds]="do_not_copy_anything"
DEBNAME_TO_SOURCEDIR[bbb-fsesl-akka]="akka-bbb-fsesl bbb-common-message bbb-fsesl-client"
DEBNAME_TO_SOURCEDIR[bbb-graphql-actions-adapter-server]="bbb-graphql-actions-adapter-server"
DEBNAME_TO_SOURCEDIR[bbb-graphql-actions]="bbb-graphql-actions"
DEBNAME_TO_SOURCEDIR[bbb-graphql-middleware]="bbb-graphql-middleware"
DEBNAME_TO_SOURCEDIR[bbb-graphql-server]="bbb-graphql-server"
DEBNAME_TO_SOURCEDIR[bbb-html5]="bigbluebutton-html5"

View File

@ -1,3 +0,0 @@
#!/bin/bash -e
stopService bbb-graphql-actions-adapter-server || echo "bbb-graphql-actions-adapter-server could not be unregistered or stopped"

View File

@ -1,5 +1,5 @@
after-install.sh
bbb-graphql-actions-adapter-server.service
bbb-graphql-actions.service
before-remove.sh
build.sh
opts-jammy.sh

View File

@ -5,9 +5,9 @@ case "$1" in
fc-cache -f
if [ ! -f /.dockerenv ]; then
systemctl enable bbb-graphql-actions-adapter-server.service
systemctl enable bbb-graphql-actions.service
systemctl daemon-reload
startService bbb-graphql-actions-adapter-server.service || echo "bbb-graphql-actions-adapter-server service could not be registered or started"
startService bbb-graphql-actions.service || echo "bbb-graphql-actions service could not be registered or started"
fi
;;

View File

@ -6,10 +6,10 @@ PartOf=bigbluebutton.target
StartLimitIntervalSec=0
[Service]
WorkingDirectory=/usr/local/bigbluebutton/bbb-graphql-actions-adapter-server
ExecStart=/usr/bin/node bbb-graphql-actions-adapter-server.js
WorkingDirectory=/usr/local/bigbluebutton/bbb-graphql-actions
ExecStart=/usr/bin/node bbb-graphql-actions.js
Restart=always
SyslogIdentifier=bbb-graphql-actions-adapter-server
SyslogIdentifier=bbb-graphql-actions
User=bigbluebutton
Group=bigbluebutton
Environment=NODE_ENV=production

View File

@ -0,0 +1,21 @@
#!/bin/bash -e
case "$1" in
install|upgrade|1|2)
# handle renaming circa dec 2023
if [[ -d /usr/local/bigbluebutton/bbb-graphql-actions-adapter-server ]] ; then
stopService bbb-graphql-actions-adapter-server || echo "bbb-graphql-actions-adapter-server could not be unregistered or stopped"
rm -f /usr/lib/systemd/system/bbb-graphql-actions-adapter-server.service
systemctl daemon-reload
rm -rf /usr/local/bigbluebutton/bbb-graphql-actions-adapter-server/
fi
;;
abort-upgrade)
;;
*)
echo "## preinst called with unknown argument \`$1'" >&2
;;
esac

Some files were not shown because too many files have changed in this diff Show More