mirror of
https://github.com/tursodatabase/libsql.git
synced 2025-06-08 14:14:13 +00:00
.cargo
.github
bindings
bottomless
bottomless-cli
docker-compose
docs
libsql
libsql-ffi
libsql-replication
libsql-server
perf
scripts
gen_certs.py
gen_jwt.py
install-deps.sh
prometheus_docker.yml
run_prometheus_docker.sh
src
tests
Cargo.toml
README.md
build.rs
libsql-shell
libsql-sqlite3
libsql-sys
vendored
xtask
.dockerignore
.env
.gitignore
.gitmodules
CODE_OF_CONDUCT.md
Cargo.lock
Cargo.toml
Dockerfile
Dockerfile.dev
LICENSE.md
README-libsql.md
README.md
docker-entrypoint.sh
fly.toml
rust-toolchain.toml
37 lines
824 B
Bash
Executable File
37 lines
824 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -e
|
|
set -o pipefail
|
|
|
|
if [[ "$OSTYPE" == "linux-gnu"* ]]; then
|
|
if [ -f "/etc/os-release" ]; then
|
|
. /etc/os-release
|
|
fi
|
|
|
|
if [ "$ID" = "ubuntu" ] || [ "$ID" = "debian" ]; then
|
|
curl -sL https://deb.nodesource.com/setup_14.x | sudo bash -
|
|
apt install --yes \
|
|
bundler \
|
|
libpq-dev \
|
|
libsqlite3-dev \
|
|
nodejs \
|
|
protobuf-compiler
|
|
elif [ "$ID" = "fedora" ]; then
|
|
dnf install -y \
|
|
libpq-devel \
|
|
libsqlite3x-devel \
|
|
nodejs \
|
|
npm \
|
|
protobuf-compiler \
|
|
rubygem-bundler \
|
|
rubygem-sqlite3 \
|
|
ruby-devel
|
|
else
|
|
echo "Linux distribution $ID is not supported by this installer."
|
|
fi
|
|
elif [[ "$OSTYPE" == "darwin"* ]]; then
|
|
brew install protobuf
|
|
else
|
|
echo "Your operating system is not supported by this installer."
|
|
fi
|