Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
759ee93
Basic workflow and adapter exception messages
athul-rs Feb 26, 2024
badf00d
Corrected alignment of the OnBoard page to accommodate various screen…
mohamed-siddhiq Feb 27, 2024
e839070
Merge branch 'main' into onboarding-page-alignment-fix
mohamed-siddhiq Feb 28, 2024
910e2c5
Merge branch 'main' into onboarding-page-alignment-fix
mohamed-siddhiq Feb 28, 2024
2064d49
Adapter error messages updated
athul-rs Feb 28, 2024
5d17097
Merge branch 'main' into fix/exception-handling-workflows
athul-rs Feb 28, 2024
60f062b
removed translator, PII redactor and workflow settings
muhammad-ali-e Feb 28, 2024
f9921f8
ocr tool with adapter support
vishnuszipstack Feb 28, 2024
bda3af0
Merge branch 'main' into RemoveWorkflowConfigurations
muhammad-ali-e Feb 29, 2024
f71a405
Merge branch 'main' into feature/OCR-Tool
vishnuszipstack Feb 29, 2024
8b263ed
Changed service name for document in docker compose (#17)
ritwik-g Feb 29, 2024
fc395a1
Conflict fix and additional case for connection error
athul-rs Feb 29, 2024
cd136e6
Merge branch 'main' into feature/OCR-Tool
vishnuszipstack Feb 29, 2024
4f466d6
Merge branch 'main' into fix/exception-handling-workflows
athul-rs Feb 29, 2024
8484bf6
PR comments addressed
vishnuszipstack Feb 29, 2024
b596dd3
Merge pull request #4 from Zipstack/fix/exception-handling-workflows
nehabagdia Feb 29, 2024
157a6a5
Merge branch 'main' into fix/RemoveWorkflowConfigurations
nehabagdia Feb 29, 2024
9101eab
Merge pull request #16 from Zipstack/fix/RemoveWorkflowConfigurations
nehabagdia Feb 29, 2024
77adf4f
Merge branch 'main' into feature/OCR-Tool
nehabagdia Feb 29, 2024
29df7ef
Merge branch 'main' into onboarding-page-alignment-fix
nehabagdia Feb 29, 2024
0071dd8
Merge pull request #15 from Zipstack/feature/OCR-Tool
nehabagdia Feb 29, 2024
42817ab
Merge branch 'main' into onboarding-page-alignment-fix
nehabagdia Feb 29, 2024
9a90409
Merge pull request #6 from Zipstack/onboarding-page-alignment-fix
nehabagdia Feb 29, 2024
af8134f
Merge branch 'main' into feature/App-Deployment-Chat-Engine
ritwik-g Feb 29, 2024
a01ff45
Added docker fixes
ritwik-g Feb 29, 2024
efd53fb
Merge branch 'feature/App-Deployment' into feature/App-Deployment-Doc…
ritwik-g Feb 29, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
53 changes: 53 additions & 0 deletions app-deployment/nginx.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
# Running as non-root user will trigger warning.
# user nginx;
worker_processes auto;

error_log /var/log/nginx/error.log notice;
# Running as non-root user will trigger warning
# for default /var/run/ prefix.
pid /tmp/nginx.pid;

events {
worker_connections 1024;
}


http {
include /etc/nginx/mime.types;
default_type application/octet-stream;

log_format main '$remote_addr - $remote_user [$time_local] "$request" '
'$status $body_bytes_sent "$http_referer" '
'"$http_user_agent" "$http_x_forwarded_for"';

access_log /var/log/nginx/access.log main;

sendfile on;
#tcp_nopush on;
server_tokens off;
keepalive_timeout 65;

gzip on;

# Non-root user will not have access to default
# /var/cache/nginx/ prefix.
client_body_temp_path /tmp/client_temp 1 2;
proxy_temp_path /tmp/proxy_temp 1 2;
fastcgi_temp_path /tmp/fastcgi_temp 1 2;
uwsgi_temp_path /tmp/uwsgi_temp 1 2;
scgi_temp_path /tmp/scgi_temp 1 2;

server {
listen 80;
root /usr/share/nginx/html;
include /etc/nginx/mime.types;

# If a react app URI is directly accessed we will get 404
# since there will be no file representing that path.
# Below config will load index.html file in such case and
# browser will load the proper path using JS.
location / {
try_files $uri /index.html;
}
}
}
6 changes: 3 additions & 3 deletions docker/docker-compose.build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@ services:
build:
dockerfile: docker/dockerfiles/x2text.Dockerfile
context: ..
app-template:
image: unstract/app-template:${VERSION}
app-deployment:
image: unstract/app-deployment:${VERSION}
build:
dockerfile: utils/dockerfiles/app-template.Dockerfile
dockerfile: docker/dockerfiles/app-deployment.Dockerfile
context: ..

10 changes: 4 additions & 6 deletions docker/docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -157,11 +157,9 @@ services:
- traefik.enable=false

# app template react app
app-template:
image: unstract/app-template:${VERSION}
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf
container_name: unstract-app-template
app-deployment:
image: unstract/app-deployment:${VERSION}
container_name: unstract-app-deployment
# network_mode: host
ports:
- "3005:80"
Expand All @@ -171,7 +169,7 @@ services:
- ENVIRONMENT=development
labels:
- traefik.enable=true
- traefik.http.services.app-template.loadbalancer.server.port=80
- traefik.http.services.app-deployment.loadbalancer.server.port=80

volumes:
unstract_data:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Use an official Node.js runtime as the base image
FROM node:16 AS build-stage
FROM node:16 AS builder

ENV APP_TEMPLATE_PATH unstract-app-deployment-templates/chat-templates
ENV APP_TEMPLATE_PATH app-deployment
# Set the working directory inside the container
WORKDIR /app

Expand All @@ -23,7 +23,8 @@ RUN npm run build
FROM nginx:1.25 AS production-stage

# Copy the build files from the build-stage
COPY --from=build-stage /app/build /usr/share/nginx/html
COPY --from=builder /app/build /usr/share/nginx/html
COPY --from=builder /app/nginx.conf /etc/nginx/nginx.conf

# Expose port 80 for NGINX
EXPOSE 80
2 changes: 1 addition & 1 deletion docker/dockerfiles/worker.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ RUN set -e; \
pdm sync --prod --no-editable; \
\
# REF: https://docs.gunicorn.org/en/stable/deploy.html#using-virtualenv
pip install --no-cache-dir gunicorn gevent;
pip install --no-cache-dir gunicorn gunicorn[gthread];


EXPOSE 5002
Expand Down