Skip to content
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

Versions upgrade #570

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
FROM node:10 as build-stage
FROM node:14 as build-stage

WORKDIR /workspace/
COPY ./client /workspace/client

RUN npm install -g @vue/cli@3.3.0
RUN npm install -g @vue/cli-service@3.3.0
RUN npm install -g @vue/cli@3.12.1
RUN npm install -g @vue/cli-service@3.12.1

COPY ./client/package* /workspace/

Expand Down
2 changes: 1 addition & 1 deletion backend/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ COPY ./backend/requirements.txt /workspace/

# Install python package dependices
RUN pip install -r requirements.txt && \
pip install gunicorn[eventlet]==19.9.0 && \
pip install gunicorn[eventlet]==21.1.0 && \
pip install pycocotools

# Install maskrcnn
Expand Down
12 changes: 6 additions & 6 deletions backend/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
eventlet==0.24.1
opencv-python==4.0.0.21
flask==1.0.2
flask-cors==3.0.7
eventlet==0.30.2
opencv-python==4.2.0.32
flask==1.1.2
flask-cors==3.0.9
flask-login==0.4.1
flask-restplus==0.12.1
flask-mongoengine==0.9.5
flask-mongoengine==1.0.0
numpy
cython
scikit-image
Expand All @@ -15,7 +15,7 @@ pytest==3.9.3
pytest-ordering==0.6
imantics==0.1.9
flask-socketio==3.3.2
celery==4.2.2
celery==5.1.2
Shapely==1.7.0
scipy
Pillow
Expand Down
6 changes: 3 additions & 3 deletions backend/workers/tasks/thumbnails.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
from database import ImageModel
from celery import task
from celery import shared_task


@task
@shared_task
def thumbnail_generate_single_image(image_id):
image = ImageModel.objects(id=image_id).first()
image.thumbnail()
image.flag_thumbnail(flag=False)


__all__ = ["thumbnail_generate_single_image"]
__all__ = ["thumbnail_generate_single_image"]
8 changes: 4 additions & 4 deletions client/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
FROM node:10
FROM node:14

RUN npm install -g --quiet \
@vue/cli@3.3.0 \
@vue/cli-service@3.3.0
@vue/cli@3.12.1 \
@vue/cli-service@3.12.1

WORKDIR /workspace/

Expand All @@ -13,4 +13,4 @@ ENV NODE_PATH=/workspace/node_modules
WORKDIR /workspace/client/

EXPOSE 8080
CMD npm run serve
CMD npm run serve
Loading