From 7fdf378cee15a7a28387e4c449b53368bfd1da1b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergio=20Mart=C3=ADnez=20Portela?= Date: Mon, 3 Oct 2022 00:50:40 +0200 Subject: [PATCH] Add script to demo search-server's docker usage. --- scripts/search-server.sh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 scripts/search-server.sh diff --git a/scripts/search-server.sh b/scripts/search-server.sh new file mode 100644 index 0000000..49f0250 --- /dev/null +++ b/scripts/search-server.sh @@ -0,0 +1,15 @@ +#!/usr/bin/env bash + +set -eu + +PORT=${PORT:-3001} + +cd "$(dirname "$0")/search-server" + +docker build -t search-server . + +cd ../../_gen/notes/ + +set -x + +exec docker run -it --rm -p $PORT:80 -e PORT=80 -e DB_PATH=/db.sqlite3 -v `pwd`/db.sqlite3:/db.sqlite3:ro search-server