Skip to content

Commit

Permalink
Add backend submodule and update docker-compose
Browse files Browse the repository at this point in the history
  • Loading branch information
shreeyash07 committed Oct 25, 2024
1 parent 2f30905 commit c19fe04
Show file tree
Hide file tree
Showing 6 changed files with 30 additions and 12 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ on:

env:
APP_TITLE: ${{ vars.APP_TITLE }}
APP_GRAPHQL_CODEGEN_ENDPOINT: ${{ vars.APP_GRAPHQL_CODEGEN_ENDPOINT }}
GITHUB_WORKFLOW: true

jobs:
Expand All @@ -16,6 +17,8 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: true

- uses: pnpm/action-setup@v4
name: Install pnpm
Expand All @@ -37,6 +40,8 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: true

- uses: pnpm/action-setup@v4
name: Install pnpm
Expand All @@ -58,6 +63,8 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: true

- uses: pnpm/action-setup@v4
name: Install pnpm
Expand Down Expand Up @@ -100,6 +107,8 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: true

- uses: pnpm/action-setup@v4
name: Install pnpm
Expand All @@ -122,6 +131,8 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: true

- uses: pnpm/action-setup@v4
name: Install pnpm
Expand Down
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "backend"]
path = backend
url = [email protected]:toggle-corp/ai-chatbot-backend.git
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ RUN apt-get update -y \
git bash g++ make \
&& rm -rf /var/lib/apt/lists/*

RUN npm install pnpm
RUN npm install -g pnpm

WORKDIR /code

Expand Down
1 change: 1 addition & 0 deletions backend
Submodule backend added at 6b18cc
14 changes: 14 additions & 0 deletions docker-compose-with-backend.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: chatbot

services:
react:
build: ../
command: sh -c 'pnpm install && pnpm start --host'
environment:
APP_TITLE: ${APP_TITLE:- CMS}
volumes:
- ../:/code
ports:
- 127.0.0.1:3000:3000
depends_on:
- web
11 changes: 0 additions & 11 deletions docker-compose.yml

This file was deleted.

0 comments on commit c19fe04

Please sign in to comment.