From 9763c04a76c0d5e390a56785b6aa4a7ce674b7fb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hubert=20Figui=C3=A8re?= Date: Thu, 12 Oct 2023 14:01:57 -0400 Subject: [PATCH 1/2] Adjust Docker development server installation steps MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Some of the package don't exist (they are python3- instead of python-) - The nodesource procedure has changed - Clarified the steps a little bit - The service name for mariadb is mariadb - Added missing libjwt-dev - Python packages are still build for 2.7 Signed-off-by: Hubert Figuière --- manual/build_seafile/server.md | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/manual/build_seafile/server.md b/manual/build_seafile/server.md index 173b68c8d..2ad16ea5c 100644 --- a/manual/build_seafile/server.md +++ b/manual/build_seafile/server.md @@ -10,14 +10,25 @@ Note, the following commands are all executed in the seafile-ce-env docker conta ## Update Source and Install Dependencies. +Update base system and install base dependencies: + ``` apt-get update && apt-get upgrade -y -apt-get install -y ssh libevent-dev libcurl4-openssl-dev libglib2.0-dev uuid-dev intltool libsqlite3-dev libmysqlclient-dev libarchive-dev libtool libjansson-dev valac libfuse-dev python-dateutil cmake re2c flex sqlite3 python-pip python-simplejson git libssl-dev libldap2-dev libonig-dev vim vim-scripts wget cmake gcc autoconf automake mysql-client librados-dev libxml2-dev curl sudo telnet netcat unzip netbase ca-certificates apt-transport-https build-essential libxslt1-dev libffi-dev libpcre3-dev libz-dev xz-utils nginx pkg-config poppler-utils libmemcached-dev sudo ldap-utils libldap2-dev +apt-get install -y ssh libevent-dev libcurl4-openssl-dev libglib2.0-dev uuid-dev intltool libsqlite3-dev libmysqlclient-dev libarchive-dev libtool libjansson-dev valac libfuse-dev python3-dateutil cmake re2c flex sqlite3 python-pip python3-simplejson git libssl-dev libldap2-dev libonig-dev vim vim-scripts wget cmake gcc autoconf automake mysql-client librados-dev libxml2-dev curl sudo telnet netcat unzip netbase ca-certificates apt-transport-https build-essential libxslt1-dev libffi-dev libpcre3-dev libz-dev xz-utils nginx pkg-config poppler-utils libmemcached-dev sudo ldap-utils libldap2-dev libjwt-dev +``` + +Install Node 16 from nodesource: -curl -sL https://deb.nodesource.com/setup_16.x | sudo -E bash - +``` +curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | sudo gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg +echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_16.x nodistro main" | sudo tee /etc/apt/sources.list.d/nodesource.list apt-get install -y nodejs +``` + +Install other Python 3 dependencies: +``` apt-get install -y python3 python3-dev python3-pip python3-setuptools python3-ldap python3 -m pip install --upgrade pip @@ -29,7 +40,7 @@ pip3 install Django==4.2.* django-statici18n==2.3.* django_webpack_loader==1.7.* ``` apt-get install -y mariadb-server -service mysql start +service mariadb start mysqladmin -u root password 123456 ``` @@ -153,7 +164,7 @@ seaf-server -c /root/dev/conf -d /root/dev/seafile-data -D all -f -l - & ``` cd ~/dev/source-code/seahub/ -export PYTHONPATH=/usr/local/lib/python3.10/site-packages/:/root/dev/source-code/seahub/thirdpart:$PYTHONPATH +export PYTHONPATH=/usr/local/lib/python2.7/dist-packages/:/root/dev/source-code/seahub/thirdpart:$PYTHONPATH export CCNET_CONF_DIR=/root/dev/conf export SEAFILE_CONF_DIR=/root/dev/seafile-data export SEAFILE_CENTRAL_CONF_DIR=/root/dev/conf From d79bbc0e88ea60856244fec43b50f29f9f76d7f3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=AC=A2=E4=B9=90=E9=A9=AC?= <38058090+SkywalkerSpace@users.noreply.github.com> Date: Mon, 16 Oct 2023 03:22:03 -0500 Subject: [PATCH 2/2] Update server.md python3-pip --- manual/build_seafile/server.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manual/build_seafile/server.md b/manual/build_seafile/server.md index 2ad16ea5c..14c499262 100644 --- a/manual/build_seafile/server.md +++ b/manual/build_seafile/server.md @@ -15,7 +15,7 @@ Update base system and install base dependencies: ``` apt-get update && apt-get upgrade -y -apt-get install -y ssh libevent-dev libcurl4-openssl-dev libglib2.0-dev uuid-dev intltool libsqlite3-dev libmysqlclient-dev libarchive-dev libtool libjansson-dev valac libfuse-dev python3-dateutil cmake re2c flex sqlite3 python-pip python3-simplejson git libssl-dev libldap2-dev libonig-dev vim vim-scripts wget cmake gcc autoconf automake mysql-client librados-dev libxml2-dev curl sudo telnet netcat unzip netbase ca-certificates apt-transport-https build-essential libxslt1-dev libffi-dev libpcre3-dev libz-dev xz-utils nginx pkg-config poppler-utils libmemcached-dev sudo ldap-utils libldap2-dev libjwt-dev +apt-get install -y ssh libevent-dev libcurl4-openssl-dev libglib2.0-dev uuid-dev intltool libsqlite3-dev libmysqlclient-dev libarchive-dev libtool libjansson-dev valac libfuse-dev python3-dateutil cmake re2c flex sqlite3 python3-pip python3-simplejson git libssl-dev libldap2-dev libonig-dev vim vim-scripts wget cmake gcc autoconf automake mysql-client librados-dev libxml2-dev curl sudo telnet netcat unzip netbase ca-certificates apt-transport-https build-essential libxslt1-dev libffi-dev libpcre3-dev libz-dev xz-utils nginx pkg-config poppler-utils libmemcached-dev sudo ldap-utils libldap2-dev libjwt-dev ``` Install Node 16 from nodesource: