[server] Create quickstart hello (#5379)

This commit is contained in:
Manav Rathi
2025-03-20 12:51:24 +05:30
committed by GitHub
3 changed files with 38 additions and 3 deletions

3
server/.gitignore vendored
View File

@@ -8,4 +8,5 @@ tmp/**
museum.yaml
bin/**
data/
__debug_bin*
my-ente/
__debug_bin*

35
server/hello.sh Executable file
View File

@@ -0,0 +1,35 @@
#!/bin/sh
#
# Ente self-host quickstart helper script.
#
# Usage:
# sh -c "$(curl -fsSL https://raw.githubusercontent.com/ente-io/ente/HEAD/server/hello.sh)"
#
# Docs:
# https://github.com/ente-io/ente/blob/main/server/quickstart/README.md
if test -d my-ente
then
printf "ERROR: A directory named 'my-ente' already exists.\n"
printf " Aborting script to avoid accidentally overwriting user data.\n"
exit 1
fi
printf "\n - \033[1mH E L L O\033[0m - \033[1;32mE N T E\033[0m -\n\n"
mkdir my-ente && cd my-ente
printf " \033[1;32mE\033[0m Created directory my-ente\n"
curl -fsSOL https://raw.githubusercontent.com/ente-io/ente/HEAD/server/quickstart/compose.yaml
printf " \033[1;32mN\033[0m Fetched compose.yaml\n"
touch museum.yaml
printf " \033[1;32mT\033[0m Created museum.yaml\n"
printf " \033[1;32mE\033[0m Starting docker compose\n"
printf "\nAfter the cluster has started, open web app at http://localhost:3000\n"
printf "For more details, see https://github.com/ente-io/ente/blob/main/server/quickstart/README.md\n\n"
sleep 1
docker compose up

View File

@@ -25,8 +25,7 @@ services:
command: "TCP-LISTEN:3200,fork,reuseaddr TCP:minio:3200"
web:
# image: ghcr.io/ente-io/web
image: web-test:latest # WIP
image: ghcr.io/ente-io/web
# Uncomment what you need to tweak.
ports:
- 3000:3000 # Photos web app