From c0bcbb6104e9b60a7178c1d5e7b227af782a467d Mon Sep 17 00:00:00 2001 From: Matteo Parrucci <parruc@gmail.com> Date: Sun, 14 Feb 2021 02:32:52 +0100 Subject: [PATCH] using new frontend repo for now --- README.md | 21 +++++++++++++++++++++ frontend/Dockerfile | 2 +- 2 files changed, 22 insertions(+), 1 deletion(-) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..8cb3bbf --- /dev/null +++ b/README.md @@ -0,0 +1,21 @@ +# For common users: +Set the needed variables in .env (take librephotos.env as model) +Just pull the repo and run +docker-compose up -d +This will get the pre-built images and start all the needed processes + +# For developers: +Set the needed variables in .evn (take librephotos.env as model) +Also set the codedir variable that tells docker where your source folder are +Pull frontend code into ${codedir}/frontend/ +Pull backend code into ${codedir}/backend/ +Pull this repo and run +docker-compose -f docker-compose.yml -f docker-compose.dev.yml up -d +This will build images from scratch (can take a long time) +Now you can develop and benefit from code auto reload from both backend and frontend +N.B. If you already built this image once, when you do changes you have to run + +docker-compose build --no-cache frontend +docker-compose build --no-cache backend + +based on which one you changed if these changes need rebuild as for added dependencies/libraries etc. \ No newline at end of file diff --git a/frontend/Dockerfile b/frontend/Dockerfile index 6e4b333..650b3e0 100644 --- a/frontend/Dockerfile +++ b/frontend/Dockerfile @@ -6,7 +6,7 @@ RUN mkdir -p /usr/src/app WORKDIR /usr/src/app RUN npm install -g npm ENV CLI_WIDTH 80 -RUN git clone https://github.com/LibrePhotos/librephotos-frontend.git /usr/src/app +RUN git clone https://github.com/parruc/librephotos-frontend.git /usr/src/app RUN npm ci EXPOSE 3000 -- GitLab