From 1d2654b9fa1373e6019011bd00e317bff018024e Mon Sep 17 00:00:00 2001 From: Darth Pika <103236915+darth-pika-hu@users.noreply.github.com> Date: Thu, 27 Apr 2023 12:02:11 -0700 Subject: [PATCH] Update setup.sh Create required directories on the host machine if they don't exist. --- setup.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/setup.sh b/setup.sh index 952eab35..15fd0694 100755 --- a/setup.sh +++ b/setup.sh @@ -1,6 +1,11 @@ #!/bin/bash cd "$(dirname "$0")" || exit +# Create the required directories on the host machine if they don't exist +[ ! -d "./application/indexes" ] && mkdir -p ./application/indexes +[ ! -d "./application/inputs" ] && mkdir -p ./application/inputs +[ ! -d "./application/vectors" ] && mkdir -p ./application/vectors + # Build frontend and backend images docker build -t frontend_image ./frontend docker build -t backend_image ./application