Skip to content

Commit

Permalink
ref: test front
Browse files Browse the repository at this point in the history
  • Loading branch information
githubering182 committed Mar 11, 2024
1 parent 1c9da41 commit 8aa321d
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
8 changes: 8 additions & 0 deletions Dockerfile.frtest
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
FROM node:20.4-slim

WORKDIR /app

COPY ./frontend-app/ ./

RUN npm install

2 changes: 1 addition & 1 deletion docker-compose.test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ services:
container_name: iss-test-front
image: iss_front_tst
build:
dockerfile: Dockerfile.frontend
dockerfile: Dockerfile.frtest
context: .
restart: always
depends_on:
Expand Down
2 changes: 1 addition & 1 deletion storage-app/src/shared/app_services.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ def _stream_dataset(self) -> StreamingResponse:
# TODO: find a way to defer closing maybe i could overpass the iterator
async def _iterator(self) -> AsyncGenerator[bytes, None]:
self.file.seek(self.chunk_start)
remaining: int = self.chunk_end
remaining: int = self.chunk_length

while remaining and (chunk := await self.file.read(CHUNK_SIZE)):
remaining -= CHUNK_SIZE if CHUNK_SIZE <= remaining else remaining
Expand Down

0 comments on commit 8aa321d

Please sign in to comment.