Merge branch 'develop' of dev.funkwhale.audio:funkwhale/funkwhale into develop

This commit is contained in:
Eliot Berriot 2020-02-04 11:07:25 +01:00
commit b07cc4c643
No known key found for this signature in database
GPG Key ID: 6B501DFD73514E14
5 changed files with 17 additions and 10 deletions

View File

@ -120,7 +120,7 @@ test_api:
interruptible: true
services:
- postgres:11
- redis:3
- redis:5
stage: test
image: funkwhale/funkwhale:develop
cache:

View File

@ -19,7 +19,18 @@ RUN \
libffi-dev \
make \
zlib-dev \
openldap-dev && \
openldap-dev \
jpeg-dev \
zlib-dev \
freetype-dev \
lcms2-dev \
openjpeg-dev \
tiff-dev \
tk-dev \
tcl-dev \
harfbuzz-dev \
fribidi-dev \
&& \
\
\
ln -s /usr/bin/python3 /usr/bin/python
@ -29,10 +40,6 @@ COPY ./requirements/base.txt /requirements/base.txt
# hack around https://github.com/pypa/pip/issues/6158#issuecomment-456619072
ENV PIP_DOWNLOAD_CACHE=/noop/
RUN \
echo 'fixing requirements file for alpine' && \
sed -i '/Pillow/d' /requirements/base.txt && \
\
\
echo 'installing pip requirements' && \
pip3 install --upgrade pip && \
pip3 install setuptools wheel && \

View File

@ -219,7 +219,7 @@ class StripExifImageField(serializers.ImageField):
with io.BytesIO() as output:
image_without_exif.save(
output,
format=PIL.Image.EXTENSION[os.path.splitext(file_obj.name)[-1]],
format=PIL.Image.EXTENSION[os.path.splitext(file_obj.name)[-1].lower()],
quality=100,
)
content = output.getvalue()

View File

@ -15,7 +15,7 @@ services:
networks:
- default
env_file: .env
image: redis:3
image: redis:5
volumes:
- ./data/redis:/data

View File

@ -33,7 +33,7 @@ services:
env_file:
- .env.dev
- .env
image: redis:3.0
image: redis:5
volumes:
- "./data/${COMPOSE_PROJECT_NAME-node1}/redis:/data"
networks:
@ -152,7 +152,7 @@ services:
- "8001:8001"
api-docs:
image: swaggerapi/swagger-ui:v3.21.0
image: swaggerapi/swagger-ui:v3.25
environment:
- "API_URL=/swagger.yml"
ports: