Skip to content

Commit

Permalink
feat: Pre-install npm dependencies for context-diagrams
Browse files Browse the repository at this point in the history
This allows containers to run in environments without internet connection.
  • Loading branch information
MoritzWeber0 committed Apr 27, 2024
1 parent 23114e2 commit 9b6dec1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -50,5 +50,7 @@ RUN chmod -R 777 ./frontend/dist/
# Run as non-root user per default
USER 1001

# Pre-install npm dependencies for context diagrams
RUN python -c "from capellambse_context_diagrams import _elkjs; _elkjs._install_required_npm_pkg_versions()"

ENTRYPOINT ["/entrypoint.sh"]
1 change: 0 additions & 1 deletion capella_model_explorer/backend/explorer.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,6 @@ async def update_last_interaction_time(request: Request, call_next):
not request.url.path == "/metrics"
and not request.url.path == "/favicon.ico"
):
print(request.url.path)
self.last_interaction = time.time()
return await call_next(request)

Expand Down

0 comments on commit 9b6dec1

Please sign in to comment.