Skip to content

Commit fb62984

Browse files
fix: modify default port (#15)
1 parent ec6492f commit fb62984

File tree

4 files changed

+4
-37
lines changed

4 files changed

+4
-37
lines changed

.github/workflows/ci_cd.yml

Lines changed: 0 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -191,36 +191,3 @@ jobs:
191191
platforms: linux/amd64,linux/arm64
192192
tags: |
193193
ghcr.io/${{ github.repository }}:${{ github.ref_name }}
194-
195-
main-repo-release:
196-
name: Update main allie repo and create release
197-
if: github.event_name == 'push' && contains(github.ref, 'refs/tags')
198-
needs: [release-docker, release]
199-
runs-on: ubuntu-latest
200-
steps:
201-
- name: Checkout allie repository
202-
run: |
203-
git clone --branch main https://${{ secrets.ALLIE_RELEASE_TOKEN }}@github.com/ansys-internal/allie.git
204-
205-
- name: Setup Go
206-
uses: actions/setup-go@v5
207-
with:
208-
go-version-file: 'allie/scripts/releasehelper/go.mod'
209-
210-
- name: Run tag script
211-
run: |
212-
cd allie/scripts/releasehelper
213-
go run main.go "tag" ${{ github.ref_name }} ${{ secrets.ALLIE_RELEASE_TOKEN }}
214-
215-
- name: Commit and push to allie
216-
run: |
217-
cd allie
218-
git config --global user.email '${{ github.actor }}@users.noreply.github.com'
219-
git config --global user.name '${{ github.actor }}'
220-
git commit -a -m 'New release triggered by ${{ github.event.repository.name }}'
221-
git push origin main
222-
223-
- name: Run release script
224-
run: |
225-
cd allie/scripts/releasehelper
226-
go run main.go "release" ${{ github.ref_name }} ${{ secrets.ALLIE_RELEASE_TOKEN }}

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ Allie FlowKit Python can be run locally or as a Docker container. Follow the ins
7272
```
7373
You can specify the host, port, and number of workers as needed.
7474

75-
2. The service will expose the functions as REST APIs on the specified port (default: 8000).
75+
2. The service will expose the functions as REST APIs on the specified port (default: 50052).
7676

7777
3. Integrate these APIs into your Allie workflows as needed.
7878

docker/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@ COPY configs/config.yaml /app
1414
RUN echo $(ls)
1515
RUN pip install --no-cache-dir .[all]
1616

17-
EXPOSE 8000
17+
EXPOSE 50052
1818

1919
# Set default number of workers
2020
ENV WORKERS=4
2121

2222
# Use the environment variable in CMD
23-
CMD ["sh", "-c", "allie-flowkit-python --host 0.0.0.0 --port 8000 --workers $WORKERS"]
23+
CMD ["sh", "-c", "allie-flowkit-python --host 0.0.0.0 --port 50052 --workers $WORKERS"]

src/allie/flowkit/__main__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def main():
3333
"""Run entrypoint for the FlowKit service."""
3434
parse = argparse.ArgumentParser()
3535
parse.add_argument("--host", type=str, default="0.0.0.0", help="The host to run the service on. By default 0.0.0.0")
36-
parse.add_argument("--port", type=int, default=8000, help="The port to run the service on. By default 8000")
36+
parse.add_argument("--port", type=int, default=50052, help="The port to run the service on. By default 50052")
3737
parse.add_argument("--workers", type=int, default=4, help="The number of workers to use. By default 4")
3838
args = parse.parse_args()
3939
uvicorn.run("allie.flowkit:flowkit_service", host=args.host, port=args.port, workers=args.workers)

0 commit comments

Comments
 (0)