Skip to content

Commit

Permalink
#2491 - Update ketcher to newer version for indigo-service frontend (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexanderSavelyev authored Oct 4, 2024
1 parent dd38d29 commit 4cec478
Show file tree
Hide file tree
Showing 8 changed files with 21,660 additions and 12,215 deletions.
37 changes: 37 additions & 0 deletions utils/indigo-service/MANUALY_DEPLOY_LOCAL.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# How to Deploy Indigo-Service Locally

Follow these steps to deploy indigo-service on your local machine.

## Deployment Steps

1. Set up a local environment variable `HOST_IP` on your machine. Use the following commands based on your OS:

For Windows: `set HOST_IP=localhost`
For MacOS/Unix: `export HOST_IP=localhost`

2. In the `ui` folder of the frontend part, find the `.env` file and set up the following variables:

```
REACT_APP_API_POSTGRES=/v2
REACT_APP_API_ELASTIC=/v3
```

3. Build the `ui` folder using `npm` by running the following command:

```
npm build
```

**Note**: Don't forget to remove the old build folder if it exists.

4. Open a command prompt or terminal at the root of `indigo-service`, and use Docker to build images and run them with
the following commands:

```
docker-compose build --no-cache
docker-compose up -d
```

Now you have successfully deployed indigo-service on your local machine!


3 changes: 1 addition & 2 deletions utils/indigo-service/frontend/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ RUN apt update && \
apt upgrade -y
#RUN npm install -g yarn
RUN mkdir -p /var/ui
#TODO download from git
COPY ./ui/build /var/ui

FROM nginx:latest
Expand All @@ -17,7 +16,7 @@ RUN cd /opt && \
RUN mv /opt /var/www/ui


COPY ../../../Indigo/utils/indigo-service/frontend/nginx/nginx.conf /etc/nginx/conf.d/default.conf
COPY ./nginx/nginx.conf /etc/nginx/conf.d/default.conf

# Clean
RUN apt autoremove -y && \
Expand Down
10 changes: 5 additions & 5 deletions utils/indigo-service/frontend/nginx/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ server {
listen [::]:80 default_server;
client_header_buffer_size 32k;
large_client_header_buffers 4 32k;
client_max_body_size 1024m;
proxy_connect_timeout 600;
proxy_send_timeout 600;
proxy_read_timeout 600;
send_timeout 600;
client_max_body_size 0;
proxy_connect_timeout 1200;
proxy_send_timeout 1200;
proxy_read_timeout 1200;
send_timeout 1200;

# Internal paths
# start
Expand Down
4 changes: 2 additions & 2 deletions utils/indigo-service/frontend/ui/.env
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ SKIP_PREFLIGHT_CHECK=true
REACT_APP_API_PATH=/v2
PUBLIC_URL=./
GENERATE_SOURCEMAP = false
REACT_APP_API_POSTGRES=http://18.206.56.62:8080/v2
REACT_APP_API_ELASTIC=http://18.206.56.62:8080/v3
REACT_APP_API_POSTGRES=/v2
REACT_APP_API_ELASTIC=/v3
REACT_APP_LIBS_PASSWORD=12345
Loading

0 comments on commit 4cec478

Please sign in to comment.