Skip to content

Commit

Permalink
keycloak integration, mysql enablement, megaservice refactor and impo…
Browse files Browse the repository at this point in the history
…rt sample button (#27)

* refactor backend from 'projects' to 'workflows'

Signed-off-by: wwanarif <[email protected]>

* enabled keycloak and mysql integration

Signed-off-by: wwanarif <[email protected]>

* update e2e workflow

Signed-off-by: wwanarif <[email protected]>

* removed gateway dependency

Signed-off-by: wwanarif <[email protected]>

* fixed @tabler/icons-react version

Signed-off-by: wwanarif <[email protected]>

* update templates to always pull opea images

Signed-off-by: wwanarif <[email protected]>

* add button to import sample-workflows in studio-fe and fix UI_FEATURES disabling in app-fe

Signed-off-by: wwanarif <[email protected]>

* Fix Input and output alignment to follow latest images

Signed-off-by: Chin, Yi Xiang <[email protected]>

* replace harbor with local registry as the default under onpremise k8 setup

Signed-off-by: wwanarif <[email protected]>

* enabled remote svc healthcheck before running microsvc

Signed-off-by: wwanarif <[email protected]>

* integrate mysql playbook under the setup genai studio playbook

Signed-off-by: wwanarif <[email protected]>

* Fix input for simple llm example

Signed-off-by: Chin, Yi Xiang <[email protected]>

* temp update mysqlhost in e2e CI

Signed-off-by: wwanarif <[email protected]>

* update microservice image names

Signed-off-by: wwanarif <[email protected]>

* udpate retriever variables

Signed-off-by: wwanarif <[email protected]>

---------

Signed-off-by: wwanarif <[email protected]>
Signed-off-by: wwanarif <[email protected]>
Signed-off-by: Chin, Yi Xiang <[email protected]>
Co-authored-by: wwanarif <[email protected]>
Co-authored-by: Chin, Yi Xiang <[email protected]>
  • Loading branch information
3 people authored Jan 17, 2025
1 parent 250dbc8 commit 6862d57
Show file tree
Hide file tree
Showing 80 changed files with 5,612 additions and 699 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/_e2e-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ jobs:
fi
sleep 5
sudo apt install ansible -y
ansible-playbook genai-studio.yml -e "container_registry=${OPEA_IMAGE_REPO}opea" -e "container_tag=${{ inputs.tag }}"
ansible-playbook genai-studio.yml -e "container_registry=${OPEA_IMAGE_REPO}opea" -e "container_tag=${{ inputs.tag }}" -e "mysql_host=$(hostname -I | awk '{print $1}')"
sleep 5
kubectl wait --for=condition=ready pod --all --namespace=studio --timeout=300s --field-selector=status.phase!=Succeeded
kubectl wait --for=condition=ready pod --all --namespace=monitoring --timeout=300s --field-selector=status.phase!=Succeeded
Expand All @@ -74,7 +74,7 @@ jobs:
- name: Update Playwright Config
run: |
NODE_IP=$(kubectl get nodes -o jsonpath='{.items[0].status.addresses[?(@.type=="InternalIP")].address}')
sed -i "s|baseURL:.*|baseURL: \"http://$NODE_IP:30007\",|" playwright.config.js
sed -i "s|baseURL:.*|baseURL: \"https://$NODE_IP:30007\",|" playwright.config.js
working-directory: ${{ github.workspace }}/tests/playwright

- name: Run Playwright Tests
Expand Down
6 changes: 2 additions & 4 deletions app-backend/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,12 @@ RUN useradd -m -s /bin/bash user && \
chown -R user /home/user/

WORKDIR /home/user/
# temporary pointing to v1.1 GenAIComps for Gateway dependency
RUN git clone https://github.com/opea-project/GenAIComps.git -b v1.1rc
RUN git clone --depth 1 https://github.com/opea-project/GenAIComps.git

WORKDIR /home/user/GenAIComps
RUN pip install --no-cache-dir --upgrade pip==24.3.1 setuptools==75.3.0 && \
pip install --no-cache-dir -r /home/user/GenAIComps/requirements.txt

COPY ./app_gateway.py /home/user/app_gateway.py
COPY ./templates/microservices/* /home/user/templates/microservices/
COPY ./megaservice.py /home/user/megaservice.py
COPY config/* /home/user/config/
Expand All @@ -32,4 +30,4 @@ WORKDIR /home/user

RUN echo 'ulimit -S -n 999999' >> ~/.bashrc

ENTRYPOINT ["python", "megaservice.py"]
ENTRYPOINT ["python", "megaservice.py"]
89 changes: 0 additions & 89 deletions app-backend/app_gateway.py

This file was deleted.

Loading

0 comments on commit 6862d57

Please sign in to comment.