-
Notifications
You must be signed in to change notification settings - Fork 77
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Work on a proper mquery package #365
Conversation
Tests fixed, now just fix dev dockerfiles, and figure out how to build it
Also refactor the dockerfiles, we just need to |
@@ -8,5 +8,4 @@ RUN apt update; apt install -y cmake | |||
COPY requirements.txt src/plugins/requirements-*.txt /tmp/ | |||
RUN ls /tmp/requirements*.txt | xargs -i,, pip --no-cache-dir install -r ,, | |||
|
|||
# ./src is expected to be mounted with a docker volume | |||
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "5000", "--reload"] | |||
CMD pip install -e /usr/src/app && uvicorn mquery.app:app --host 0.0.0.0 --port 5000 --reload |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is only a dev dockerfile, we need to install the pip package in editable mode to have hot reload.
@@ -4,6 +4,5 @@ RUN npm install -g serve | |||
COPY src/mqueryfront /app | |||
WORKDIR /app | |||
RUN npm install --legacy-peer-deps && \ | |||
mkdir ./public/monaco-vs && \ | |||
cp -r ./node_modules/monaco-editor/min/vs/. ./public/monaco-vs | |||
cp -r ./node_modules/monaco-editor/min/vs ./public/monaco-vs |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this cp step will be fixed in a follow-up PR anyway.
@@ -4,20 +4,18 @@ RUN npm install -g serve | |||
COPY src/mqueryfront /app | |||
WORKDIR /app | |||
RUN npm install --legacy-peer-deps && \ | |||
mkdir ./public/monaco-vs && \ | |||
cp -r ./node_modules/monaco-editor/min/vs/. ./public/monaco-vs && \ | |||
cp -r ./node_modules/monaco-editor/min/vs ./public/monaco-vs && \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this cp step will be fixed in a follow-up PR anyway.
@@ -8,5 +8,4 @@ RUN apt update; apt install -y cmake | |||
COPY requirements.txt src/plugins/requirements-*.txt /tmp/ | |||
RUN ls /tmp/requirements*.txt | xargs -i,, pip --no-cache-dir install -r ,, | |||
|
|||
# ./src is expected to be mounted with a docker volume | |||
CMD ["./autoreload", "python3", "daemon.py"] | |||
CMD pip install -e /usr/src/app && mquery-daemon |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(this broke autoreload)
WIP PR, I still need to update documentation etc. But I've tested this and it roughly works.
Your checklist for this pull request
What is the current behaviour?
No python package
What is the new behaviour?
Package installable with
pip
is available