Compare commits

..

No commits in common. "f285f83f2919f3db71c7b8abda5516a856b25796" and "97b5962d841f846718fd5b6c4b14561682387a79" have entirely different histories.

11 changed files with 24 additions and 147 deletions

View File

@ -46,7 +46,6 @@ To enter in temporary filesystem
- [adguardhome](./ressources/adguardhome) - [adguardhome](./ressources/adguardhome)
- [authelia](./ressources/authelia) - [authelia](./ressources/authelia)
- [bitwarden-desktop](./ressources/bitwarden-desktop) - [bitwarden-desktop](./ressources/bitwarden-desktop)
- [budibase](./ressources/budibase)
- [cloudbeaver](./ressources/cloudbeaver) - [cloudbeaver](./ressources/cloudbeaver)
- [element-web](./ressources/element-web) - [element-web](./ressources/element-web)
- [flame](./ressources/flame) - [flame](./ressources/flame)

View File

@ -1,62 +1,26 @@
#### budibase #### element-web
##### Information ##### Information
Site : https://budibase.com/ Site : https://element.io/
Source : https://github.com/Budibase/budibase Source : https://github.com/vector-im/element-web
##### Install ##### Install
```bash ```bash
apt update apt install -y wget ca-certificates
apt install -y --no-install-recommends curl apt-transport-https gnupg wget ca-certificates
wget -qO - https://deb.lgy.fr/install.sh | bash wget -qO - https://deb.lgy.fr/install.sh | bash
wget -qO - https://deb.nodesource.com/setup_16.x | bash apt-get update
echo "deb [signed-by=/usr/share/keyrings/yarnkey.gpg] https://dl.yarnpkg.com/debian stable main" > /etc/apt/sources.list.d/yarn.list apt install element-web
wget -qO - https://dl.yarnpkg.com/debian/pubkey.gpg | gpg --dearmor > /usr/share/keyrings/yarnkey.gpg
curl https://couchdb.apache.org/repo/keys.asc | gpg --dearmor > /usr/share/keyrings/couchdb-archive-keyring.gpg # sample configuration for apache2
source /etc/os-release
echo "deb [signed-by=/usr/share/keyrings/couchdb-archive-keyring.gpg] https://apache.jfrog.io/artifactory/couchdb-deb/ ${VERSION_CODENAME} main" > /etc/apt/sources.list.d/couchdb.list
apt update cp /usr/share/doc/element-web/apache2-element-web.conf /etc/apache2/sites-available/element-web.conf
apt install -y --no-install-recommends couchdb yarn nodejs nginx redis-server minio budibase a2ensite element-web
# edit /etc/apache2/sites-available/element-web.conf
# edit /etc/element-web/config.json
apt install unzip -y systemctl restart apache2
wget https://github.com/cloudant-labs/clouseau/releases/download/2.21.0/clouseau-2.21.0-dist.zip
unzip clouseau-2.21.0-dist.zip
mv clouseau-2.21.0 /opt/clouseau
wget -qO /opt/clouseau/clouseau.ini https://github.com/Budibase/budibase/raw/develop/hosting/single/clouseau/clouseau.ini
wget -qO /opt/clouseau/log4j.properties https://github.com/Budibase/budibase/raw/develop/hosting/single/clouseau/log4j.properties
wget https://download.java.net/openjdk/jdk7u75/ri/jdk_ri-7u75-b13-linux-x64-18_dec_2014.tar.gz -qO - | tar -zx -C /opt/
/opt/java-se-7u75-ri/bin/java -server \
-Xmx2G \
-Dsun.net.inetaddr.ttl=30 \
-Dsun.net.inetaddr.negative.ttl=30 \
-Dlog4j.configuration=file:/opt/clouseau/log4j.properties \
-XX:OnOutOfMemoryError="kill -9 %p" \
-XX:+UseConcMarkSweepGC \
-XX:+CMSParallelRemarkEnabled \
-classpath '/opt/clouseau/*' \
com.cloudant.clouseau.Main \
/opt/clouseau/clouseau.ini
cat <<EOF > /etc/default/minio
MINIO_ACCESS_KEY=DruccokdudaufElWuejyeerog-Anphoj
MINIO_SECRET_KEY=NorcyagOovLadjonCekUthgeOcyuFrac
MINIO_BROWSER=off
EOF
wget -qO /etc/nginx/sites-enabled/default https://github.com/Budibase/budibase/raw/develop/hosting/single/nginx/nginx-default-site.conf
wget -qO /etc/nginx/nginx.conf https://github.com/Budibase/budibase/raw/develop/hosting/single/nginx/nginx.conf
echo requirepass neddOryianquasJuwrav2DrokVuWeac >> /etc/redis/redis.conf
systemctl restart couchdb minio nginx redis budibase-worker budibase-server
``` ```

View File

@ -1,20 +1,20 @@
#!/bin/bash #!/bin/bash
VERSION=2.0.24 VERSION=2.0.14
APP=budibase APP=budibase
DEPOT=https://github.com/Budibase/budibase.git DEPOT=https://github.com/Budibase/budibase.git
GIT_VERSION=last GIT_VERSION=v${VERSION}
DEB_VERSION=${VERSION}-$(date +%Y%m%d%H%M) DEB_VERSION=${VERSION}-$(date +%Y%m%d%H%M)
DEBIAN_VERSION_CODENAME=bullseye DEBIAN_VERSION_CODENAME=bullseye
IMAGE_SIZE=20 IMAGE_SIZE=12
PACKAGE_DEPENDENCY="yarn nodejs" PACKAGE_DEPENDENCY="yarn nodejs"
main(){ main(){
base_package_upgrade base_package_upgrade
envinit envinit
get_git_source get_git_source
build # build
makedeb # makedeb
} }
envinit() { envinit() {
@ -25,24 +25,16 @@ envinit() {
build() { build() {
cd /tmp/${APP} cd /tmp/${APP}
npm install -g yarn jest lerna --force
yarn yarn
yarn bootstrap yarn bootstrap
yarn build yarn build
rm -fr /tmp/${APP}/packages/*/build
} }
makedeb(){ makedeb(){
PATH_DEB=/tmp/src/rootfs PATH_DEB=/tmp/src/rootfs
mkdir -p ${PATH_DEB}/opt/budibase/ tar -zxf /tmp/${APP}/dist/element-${GIT_VERSION}.tar.gz --strip-components=1 -C ${PATH_DEB}/usr/share/element-web/
mv /tmp/budibase/packages/* ${PATH_DEB}/opt/budibase/ cp /tmp/${APP}/config.sample.json ${PATH_DEB}/etc/element-web/config.json
mkdir -p ${PATH_DEB}/opt/budibase/server/client
cp ${PATH_DEB}/opt/budibase/client/manifest.json ${PATH_DEB}/opt/budibase/server/client
cp ${PATH_DEB}/opt/budibase/client/dist/budibase-client.js ${PATH_DEB}/opt/budibase/server/client
sed -i "s/%VERSION%/$DEB_VERSION/" ${PATH_DEB}/DEBIAN/control sed -i "s/%VERSION%/$DEB_VERSION/" ${PATH_DEB}/DEBIAN/control
fakeroot dpkg-deb -Z gzip --build ${PATH_DEB} /tmp/dist fakeroot dpkg-deb -Z gzip --build ${PATH_DEB} /tmp/dist
$
} }

View File

@ -1,2 +1 @@
/etc/default/budibase-server /etc/element-web/config.json
/etc/default/budibase-worker

View File

@ -1,7 +1,7 @@
Package: budibase Package: element-web
Version: %VERSION% Version: %VERSION%
Section: base Section: base
Priority: optional Priority: optional
Architecture: all Architecture: all
Maintainer: Thomas Legay <thomas@lgy.fr> Maintainer: Thomas Legay <thomas@lgy.fr>
Description: budibase Description: element-web

View File

@ -1,9 +0,0 @@
#!/bin/bash
id budibase-server &> /dev/null || useradd budibase-server -r -s /bin/false -d /var/lib/budibase-server
chown -R budibase-server:budibase-server /var/lib/budibase-server
id budibase-worker &> /dev/null || useradd budibase-worker -r -s /bin/false -d /var/lib/budibase-worker
chown -R budibase-worker:budibase-worker /var/lib/budibase-worker

View File

@ -1,23 +0,0 @@
COUCH_DB_URL=http://admin:admin@localhost:5984
WORKER_URL=http://localhost:4002
MINIO_URL=http://localhost:9000
MINIO_ACCESS_KEY=DruccokdudaufElWuejyeerog-Anphoj
MINIO_SECRET_KEY=NorcyagOovLadjonCekUthgeOcyuFrac
INTERNAL_API_KEY=yaif4ShnumbivfoctErvAsBark?8Koks
BUDIBASE_ENVIRONMENT=prod
PORT=4001
JWT_SECRET=AdliejyiarApsEmNuilyanmuifyojhay
LOG_LEVEL=info
#SENTRY_DSN=https://a34ae347621946bf8acded18e5b7d4b8@o420233.ingest.sentry.io/5338131
#ENABLE_ANALYTICS="true"
REDIS_URL=localhost:6379
REDIS_PASSWORD=neddOryianquasJuwrav2DrokVuWeac
BB_ADMIN_USER_EMAIL=thomas
BB_ADMIN_USER_PASSWORD=thomas
#PLUGINS_DIR=${PLUGINS_DIR}
WORKER_PORT=4002
APP_PORT=4001
DATA_DIR=/root/budibase/packages
NODE_ENV=production
SELF_HOSTED=1
BUDIBASE_ENVIRONMENT=PRODUCTION

View File

@ -1,19 +0,0 @@
CLUSTER_PORT=80
JWT_SECRET=AdliejyiarApsEmNuilyanmuifyojhay
MINIO_ACCESS_KEY=DruccokdudaufElWuejyeerog-Anphoj
MINIO_SECRET_KEY=NorcyagOovLadjonCekUthgeOcyuFrac
MINIO_URL=http://localhost:9000
APPS_URL=http://localhost:4001
COUCH_DB_USERNAME=admin
COUCH_DB_PASSWORD=admin
COUCH_DB_URL=http://admin:admin@localhost:5984
#SENTRY_DSN=https://a34ae347621946bf8acded18e5b7d4b8@o420233.ingest.sentry.io/5338131
INTERNAL_API_KEY=yaif4ShnumbivfoctErvAsBark?8Koks
REDIS_URL=localhost:6379
REDIS_PASSWORD=neddOryianquasJuwrav2DrokVuWeac
PORT=4002
WORKER_PORT=4002
APP_PORT=4001
NODE_ENV=production
SELF_HOSTED=1
BUDIBASE_ENVIRONMENT=PRODUCTION

View File

@ -1,13 +0,0 @@
[Unit]
Description=budibase-server
After=network.target
[Service]
EnvironmentFile=/etc/default/budibase-server
ExecStart=/usr/bin/node /opt/budibase/server/dist/index.js
Restart=always
#User=budibase-server
#Group=budibase-server
[Install]
WantedBy=multi-user.target

View File

@ -1,13 +0,0 @@
[Unit]
Description=budibase-worker
After=network.target
[Service]
EnvironmentFile=/etc/default/budibase-worker
ExecStart=/usr/bin/node /opt/budibase/worker/dist/index.js
Restart=always
#User=budibase-worker
#Group=budibase-worker
[Install]
WantedBy=multi-user.target

View File

@ -1,6 +1,6 @@
#!/bin/bash #!/bin/bash
VERSION=2.9.2 VERSION=2.9.1
APP=joplin-server APP=joplin-server
GIT_VERSION=server-v${VERSION} GIT_VERSION=server-v${VERSION}
DEB_VERSION=$VERSION-$(date +%Y%m%d%H%M) DEB_VERSION=$VERSION-$(date +%Y%m%d%H%M)