-
Notifications
You must be signed in to change notification settings - Fork 28
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
Support /asset/<asset id>/download/
URLs
#748
Conversation
Codecov Report
@@ Coverage Diff @@
## master #748 +/- ##
==========================================
- Coverage 84.85% 84.82% -0.03%
==========================================
Files 59 59
Lines 5975 6003 +28
==========================================
+ Hits 5070 5092 +22
- Misses 905 911 +6
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
@satra will enable paid account to manage the builds in the future. Meanwhile I could not even see exactly which Dockerfile was used to build those images! with a little investigation(git)lena:~/proj/dandi/dandi-api[master]dev
$> diff -Naur django.Dockerfile django-public.Dockerfile
--- django.Dockerfile 2021-04-27 15:55:47.888520613 -0400
+++ django-public.Dockerfile 2021-03-05 16:18:19.618554500 -0500
@@ -3,22 +3,11 @@
# * psycopg2
RUN apt-get update && \
apt-get install --no-install-recommends --yes \
- libpq-dev gcc libc6-dev && \
+ libpq-dev gcc libc6-dev && \
rm -rf /var/lib/apt/lists/*
-ENV PYTHONDONTWRITEBYTECODE 1
ENV PYTHONUNBUFFERED 1
-# Copy versioneer.py so it can be accessed by setup.py
-COPY ./versioneer.py /opt/django-project/versioneer.py
-
-# Only copy the setup.py and setup.cfg, it will still force all install_requires to be installed,
-# but find_packages() will find nothing (which is fine). When Docker Compose mounts the real source
-# over top of this directory, the .egg-link in site-packages resolves to the mounted directory
-# and all package modules are importable.
-COPY ./setup.cfg /opt/django-project/setup.cfg
-COPY ./setup.py /opt/django-project/setup.py
-RUN pip install --editable /opt/django-project[dev]
-
-# Use a directory name which will never be an import name, as isort considers this as first-party.
-WORKDIR /opt/django-project
+WORKDIR /opt/django
+COPY . /opt/django/
+RUN pip install -e .[dev]
I would assume that it was the https://github.com/dandi/dandi-api/blob/master/dev/django-public.Dockerfile , will build/compare (for paranoia) and push manually for now. |
@jwodder fresh dandiarchive-api image built! please retrigger tests etc |
@yarikoptic Tests rerun successfully. |
Great. Thank you @jwodder. Since it fixes the download issue , let's also release, added the label. |
Closes #723.
Note that the dandi-api Docker images are currently not building for some reason, and the latest image lacks support for the
/asset/<asset id>/
endpoint. Hence, the tests will fail under the Docker build is fixed.