mirror of
https://github.com/photoprism/photoprism.git
synced 2026-01-23 02:24:24 +00:00
Merge branch 'develop' into feature/custom-tf-model-127
This commit is contained in:
commit
75785ff2f3
19 changed files with 1137 additions and 513 deletions
25
scripts/dist/install-admin-tools.sh
vendored
25
scripts/dist/install-admin-tools.sh
vendored
|
|
@ -2,12 +2,9 @@
|
|||
|
||||
# Installs the "duf" and "muffet" admin tools on Linux.
|
||||
# bash <(curl -s https://raw.githubusercontent.com/photoprism/photoprism/develop/scripts/dist/install-admin-tools.sh)
|
||||
|
||||
# Abort if not executed as root..
|
||||
if [[ $(id -u) != "0" ]]; then
|
||||
echo "Usage: run ${0##*/} as root" 1>&2
|
||||
exit 1
|
||||
fi
|
||||
#
|
||||
# This will install additional admin tools for managing Kubernetes deployments on Linux:
|
||||
# bash <(curl -s https://raw.githubusercontent.com/photoprism/photoprism/develop/scripts/dist/install-k8s-tools.sh)
|
||||
|
||||
set -eux;
|
||||
|
||||
|
|
@ -19,19 +16,11 @@ then
|
|||
fi
|
||||
|
||||
echo "Installing the duf command to check storage usage..."
|
||||
GOBIN="/usr/local/bin" go install github.com/muesli/duf@latest
|
||||
sudo GOBIN="/usr/local/bin" go install github.com/muesli/duf@latest
|
||||
sudo ln -sf /usr/local/bin/duf /usr/local/bin/df
|
||||
|
||||
echo "Installing muffet, a tool for checking links..."
|
||||
GOBIN="/usr/local/bin" go install github.com/raviqqe/muffet@latest
|
||||
sudo GOBIN="/usr/local/bin" go install github.com/raviqqe/muffet@latest
|
||||
|
||||
echo "Installing petname to generate pronounceable names..."
|
||||
GOBIN="/usr/local/bin" go install github.com/dustinkirkland/golang-petname/cmd/petname@latest
|
||||
|
||||
echo "Installing doctl for using the DigitalOcean API...."
|
||||
GOBIN="/usr/local/bin" go install github.com/digitalocean/doctl/cmd/doctl@latest
|
||||
|
||||
echo "Installing Kustomize for Kubernetes configuration management...."
|
||||
GOBIN="/usr/local/bin" go install sigs.k8s.io/kustomize/kustomize/v5@latest
|
||||
|
||||
# Create a symbolic link for "duf" so that it is used instead of the original "df".
|
||||
ln -sf /usr/local/bin/duf /usr/local/bin/df
|
||||
sudo GOBIN="/usr/local/bin" go install github.com/dustinkirkland/golang-petname/cmd/petname@latest
|
||||
|
|
|
|||
41
scripts/dist/install-forward-dns.sh
vendored
Executable file
41
scripts/dist/install-forward-dns.sh
vendored
Executable file
|
|
@ -0,0 +1,41 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
# Installs and configures BIND 9 on Ubuntu/Debian to provide a forward DNS service for private IP address ranges.
|
||||
# bash <(curl -s https://raw.githubusercontent.com/photoprism/photoprism/develop/scripts/dist/install-forward-dns.sh)
|
||||
|
||||
set -e
|
||||
|
||||
echo "Installing BIND 9..."
|
||||
sudo apt -qq update
|
||||
sudo apt -qq install bind9
|
||||
|
||||
echo "Configuring BIND 9 for use as an internal forward DNS service..."
|
||||
sudo tee /etc/bind/named.conf >/dev/null <<-EOF
|
||||
options{
|
||||
directory "/var/cache/bind";
|
||||
recursion yes;
|
||||
allow-query {
|
||||
10.0.0.0/8;
|
||||
127.0.0.0/8;
|
||||
172.16.0.0/12;
|
||||
192.168.0.0/16;
|
||||
fc00::/7;
|
||||
fe80::/10;
|
||||
};
|
||||
forwarders {
|
||||
8.8.8.8;
|
||||
8.8.4.4;
|
||||
2001:4860:4860::8888;
|
||||
2001:4860:4860::8844;
|
||||
};
|
||||
forward only;
|
||||
};
|
||||
EOF
|
||||
|
||||
echo "Checking configuration..."
|
||||
sudo named-checkconf /etc/bind/named.conf
|
||||
|
||||
echo "Restarting service..."
|
||||
sudo service bind9 restart
|
||||
|
||||
echo "Done."
|
||||
19
scripts/dist/install-k8s-tools.sh
vendored
Executable file
19
scripts/dist/install-k8s-tools.sh
vendored
Executable file
|
|
@ -0,0 +1,19 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
# Installs additional admin tools for managing Kubernetes deployments on Linux.
|
||||
# bash <(curl -s https://raw.githubusercontent.com/photoprism/photoprism/develop/scripts/dist/install-k8s-tools.sh)
|
||||
|
||||
set -eux;
|
||||
|
||||
# Is Go installed?
|
||||
if ! command -v go &> /dev/null
|
||||
then
|
||||
echo "Go must be installed to run this."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo "Installing K9s for managing Kubernetes clusters...."
|
||||
sudo GOBIN="/usr/local/bin" go install github.com/derailed/k9s@latest
|
||||
|
||||
echo "Installing Kustomize for Kubernetes configuration management...."
|
||||
sudo GOBIN="/usr/local/bin" go install sigs.k8s.io/kustomize/kustomize/v5@latest
|
||||
Loading…
Add table
Add a link
Reference in a new issue