Merge branch 'develop' of dev.funkwhale.audio:funkwhale/funkwhale into develop
This commit is contained in:
commit
b07cc4c643
|
@ -120,7 +120,7 @@ test_api:
|
||||||
interruptible: true
|
interruptible: true
|
||||||
services:
|
services:
|
||||||
- postgres:11
|
- postgres:11
|
||||||
- redis:3
|
- redis:5
|
||||||
stage: test
|
stage: test
|
||||||
image: funkwhale/funkwhale:develop
|
image: funkwhale/funkwhale:develop
|
||||||
cache:
|
cache:
|
||||||
|
|
|
@ -19,7 +19,18 @@ RUN \
|
||||||
libffi-dev \
|
libffi-dev \
|
||||||
make \
|
make \
|
||||||
zlib-dev \
|
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
|
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
|
# hack around https://github.com/pypa/pip/issues/6158#issuecomment-456619072
|
||||||
ENV PIP_DOWNLOAD_CACHE=/noop/
|
ENV PIP_DOWNLOAD_CACHE=/noop/
|
||||||
RUN \
|
RUN \
|
||||||
echo 'fixing requirements file for alpine' && \
|
|
||||||
sed -i '/Pillow/d' /requirements/base.txt && \
|
|
||||||
\
|
|
||||||
\
|
|
||||||
echo 'installing pip requirements' && \
|
echo 'installing pip requirements' && \
|
||||||
pip3 install --upgrade pip && \
|
pip3 install --upgrade pip && \
|
||||||
pip3 install setuptools wheel && \
|
pip3 install setuptools wheel && \
|
||||||
|
|
|
@ -219,7 +219,7 @@ class StripExifImageField(serializers.ImageField):
|
||||||
with io.BytesIO() as output:
|
with io.BytesIO() as output:
|
||||||
image_without_exif.save(
|
image_without_exif.save(
|
||||||
output,
|
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,
|
quality=100,
|
||||||
)
|
)
|
||||||
content = output.getvalue()
|
content = output.getvalue()
|
||||||
|
|
|
@ -15,7 +15,7 @@ services:
|
||||||
networks:
|
networks:
|
||||||
- default
|
- default
|
||||||
env_file: .env
|
env_file: .env
|
||||||
image: redis:3
|
image: redis:5
|
||||||
volumes:
|
volumes:
|
||||||
- ./data/redis:/data
|
- ./data/redis:/data
|
||||||
|
|
||||||
|
|
4
dev.yml
4
dev.yml
|
@ -33,7 +33,7 @@ services:
|
||||||
env_file:
|
env_file:
|
||||||
- .env.dev
|
- .env.dev
|
||||||
- .env
|
- .env
|
||||||
image: redis:3.0
|
image: redis:5
|
||||||
volumes:
|
volumes:
|
||||||
- "./data/${COMPOSE_PROJECT_NAME-node1}/redis:/data"
|
- "./data/${COMPOSE_PROJECT_NAME-node1}/redis:/data"
|
||||||
networks:
|
networks:
|
||||||
|
@ -152,7 +152,7 @@ services:
|
||||||
- "8001:8001"
|
- "8001:8001"
|
||||||
|
|
||||||
api-docs:
|
api-docs:
|
||||||
image: swaggerapi/swagger-ui:v3.21.0
|
image: swaggerapi/swagger-ui:v3.25
|
||||||
environment:
|
environment:
|
||||||
- "API_URL=/swagger.yml"
|
- "API_URL=/swagger.yml"
|
||||||
ports:
|
ports:
|
||||||
|
|
Loading…
Reference in New Issue