Port Pocketbase to ARM64

Also code server as well
This commit is contained in:
Sam Heinz
2024-05-09 16:58:02 +10:00
parent 51d72c114e
commit d44ad22fc1
4 changed files with 14 additions and 10 deletions
+6 -4
View File
@@ -150,6 +150,7 @@ If you would like to offer support, I would appreciate a star on the repository,
| Pihole | ☑️ | | | Pihole | ☑️ | |
| Pingvin | ☑️ | | | Pingvin | ☑️ | |
| Plex | ☑️ | | | Plex | ☑️ | |
| Pocketbase | ⭕ | |
| Podman-Home Assistant | ☑️ | | | Podman-Home Assistant | ☑️ | |
| Podman | ☑️ | | | Podman | ☑️ | |
| PostgreSQL | ☑️ | | | PostgreSQL | ☑️ | |
@@ -198,7 +199,8 @@ If you would like to offer support, I would appreciate a star on the repository,
## Miscellaneous Compatibility Guide ## Miscellaneous Compatibility Guide
| Script | Status | Notes | | Script | Status | Notes |
| --------- | ------ | -------------------- | | ----------- | ------ | -------------------- |
| Olivetin | ☑️ | | | Code Server | | |
| Tailscale | | No changes required. | | Olivetin | ☑️ | |
| Tailscale | ✅ | No changes required. |
+1 -1
View File
@@ -1,5 +1,5 @@
#!/usr/bin/env bash #!/usr/bin/env bash
source <(curl -s https://raw.githubusercontent.com/tteck/Proxmox/main/misc/build.func) source <(curl -s https://raw.githubusercontent.com/asylumexp/Proxmox/main/misc/build.func)
# Copyright (c) 2021-2024 tteck # Copyright (c) 2021-2024 tteck
# Author: tteck (tteckster) # Author: tteck (tteckster)
# License: MIT # License: MIT
+2 -1
View File
@@ -17,11 +17,12 @@ msg_info "Installing Dependencies"
$STD apt-get install -y curl $STD apt-get install -y curl
$STD apt-get install -y sudo $STD apt-get install -y sudo
$STD apt-get install -y mc $STD apt-get install -y mc
$STD apt-get install -y wget
msg_ok "Installed Dependencies" msg_ok "Installed Dependencies"
msg_info "Installing Pocketbase" msg_info "Installing Pocketbase"
RELEASE=$(curl -s https://api.github.com/repos/pocketbase/pocketbase/releases/latest | grep "tag_name" | awk '{print substr($2, 3, length($2)-4) }') RELEASE=$(curl -s https://api.github.com/repos/pocketbase/pocketbase/releases/latest | grep "tag_name" | awk '{print substr($2, 3, length($2)-4) }')
wget -q https://github.com/pocketbase/pocketbase/releases/download/v${RELEASE}/pocketbase_${RELEASE}_linux_amd64.zip -O /tmp/pocketbase.zip wget -q https://github.com/pocketbase/pocketbase/releases/download/v${RELEASE}/pocketbase_${RELEASE}_linux_arm64.zip -O /tmp/pocketbase.zip
mkdir -p /opt/pocketbase/{pb_public,pb_migrations,pb_hooks} mkdir -p /opt/pocketbase/{pb_public,pb_migrations,pb_hooks}
unzip -q -o /tmp/pocketbase.zip -d /opt/pocketbase unzip -q -o /tmp/pocketbase.zip -d /opt/pocketbase
+5 -4
View File
@@ -46,7 +46,7 @@ function error_exit() {
} }
clear clear
header_info header_info
if command -v pveversion >/dev/null 2>&1; then echo -e "⚠️ Can't Install on Proxmox "; exit; fi if command -v pveversion >/dev/null 2>&1; then echo -e "⚠️ Can't Install on Proxmox Host"; exit; fi
if [ -e /etc/alpine-release ]; then echo -e "⚠️ Can't Install on Alpine"; exit; fi if [ -e /etc/alpine-release ]; then echo -e "⚠️ Can't Install on Alpine"; exit; fi
while true; do while true; do
read -p "This will Install ${APP} on $hostname. Proceed(y/n)?" yn read -p "This will Install ${APP} on $hostname. Proceed(y/n)?" yn
@@ -71,6 +71,7 @@ msg_info "Installing Dependencies"
apt-get update &>/dev/null apt-get update &>/dev/null
apt-get install -y curl &>/dev/null apt-get install -y curl &>/dev/null
apt-get install -y git &>/dev/null apt-get install -y git &>/dev/null
apt-get install -y wget &>/dev/null
msg_ok "Installed Dependencies" msg_ok "Installed Dependencies"
VERSION=$(curl -s https://api.github.com/repos/coder/code-server/releases/latest | VERSION=$(curl -s https://api.github.com/repos/coder/code-server/releases/latest |
@@ -78,9 +79,9 @@ VERSION=$(curl -s https://api.github.com/repos/coder/code-server/releases/latest
awk '{print substr($2, 3, length($2)-4) }') awk '{print substr($2, 3, length($2)-4) }')
msg_info "Installing Code-Server v${VERSION}" msg_info "Installing Code-Server v${VERSION}"
curl -fOL https://github.com/coder/code-server/releases/download/v$VERSION/code-server_${VERSION}_amd64.deb &>/dev/null curl -fOL https://github.com/coder/code-server/releases/download/v$VERSION/code-server_${VERSION}_arm64.deb &>/dev/null
dpkg -i code-server_${VERSION}_amd64.deb &>/dev/null dpkg -i code-server_${VERSION}_arm64.deb &>/dev/null
rm -rf code-server_${VERSION}_amd64.deb rm -rf code-server_${VERSION}_arm64.deb
mkdir -p ~/.config/code-server/ mkdir -p ~/.config/code-server/
systemctl enable -q --now code-server@$USER systemctl enable -q --now code-server@$USER
cat <<EOF >~/.config/code-server/config.yaml cat <<EOF >~/.config/code-server/config.yaml