-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* update changelog * delete circle ci file * add specific docker ini file * fix production ini file * Update dockerfile to ubuntu noble * add pip to dependabot checks
- Loading branch information
Showing
6 changed files
with
79 additions
and
118 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,11 @@ | ||
ARG DISTRO=jammy | ||
ARG DISTRO=noble | ||
|
||
FROM ubuntu:${DISTRO} AS base | ||
LABEL org.opencontainers.image.authors="Makina Corpus <[email protected]>" | ||
|
||
RUN apt-get update && apt-get install -y -qq python3 libreoffice default-jre libreoffice-java-common inkscape python3-magic && \ | ||
apt-get autoclean && apt-get clean all && rm -rf /var/apt/lists/* | ||
|
||
|
||
WORKDIR /opt/apps/convertit | ||
|
||
COPY .docker/run.sh /usr/local/bin/run | ||
|
@@ -37,6 +36,6 @@ COPY convertit /opt/apps/convertit/convertit | |
COPY setup.py /opt/apps/convertit/setup.py | ||
COPY README.rst /opt/apps/convertit/README.rst | ||
RUN /opt/venv/bin/pip install . | ||
COPY production.ini /opt/apps/convertit/production.ini | ||
COPY docker.ini /opt/apps/convertit/production.ini | ||
VOLUME /var/cache/convertit/downloads | ||
VOLUME /var/cache/convertit/converted |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
[app:main] | ||
use = egg:convertit | ||
|
||
pyramid.reload_templates = false | ||
pyramid.debug_authorization = false | ||
pyramid.debug_notfound = false | ||
pyramid.debug_routematch = false | ||
pyramid.default_locale_name = en | ||
|
||
convertit.downloads_path = /var/cache/convertit/downloads | ||
convertit.downloads_max_age = 60 | ||
convertit.converted_path = /var/cache/convertit/converted | ||
convertit.converted_max_age = 60 | ||
# The retrieve url of converted files | ||
# It can be a full url like http://static.domain.tld/full/path/ | ||
convertit.converted_url = converted | ||
# Available options: | ||
# url_hostname: the url hostname | ||
# url_port: the url port | ||
# url_dirname: the url path's dirname with '/' replaced by '_' | ||
# url_filename: filename part of the url path's basename | ||
# url_extension: extension part of the url path's basename | ||
# extension: the converted extension | ||
# Exemple: url=http://exemple.com:8080/path/to/foo.bar&to=application/pdf | ||
# url_hostname: exemple.com | ||
# url_port: 8080 | ||
# url_dirname: path_to | ||
# url_filename: foo | ||
# url_extension: .bar | ||
# extension: .pdf | ||
convertit.converted_name = {url_hostname}_{url_port}_{url_dirname}_{url_filename}{extension} | ||
convertit.converters = | ||
convertit.converters.unoconv | ||
convertit.converters.inkscape | ||
|
||
[server:main] | ||
use = egg:gunicorn#main | ||
host = 0.0.0.0 | ||
port = 6543 | ||
|
||
# Begin logging configuration | ||
|
||
[loggers] | ||
keys = root, convertit | ||
|
||
[handlers] | ||
keys = console | ||
|
||
[formatters] | ||
keys = generic | ||
|
||
[logger_root] | ||
level = WARN | ||
handlers = console | ||
|
||
[logger_convertit] | ||
level = WARN | ||
handlers = | ||
qualname = convertit | ||
|
||
[handler_console] | ||
class = StreamHandler | ||
args = (sys.stderr,) | ||
level = NOTSET | ||
formatter = generic | ||
|
||
[formatter_generic] | ||
format = %(asctime)s %(levelname)-5.5s [%(name)s][%(threadName)s] %(message)s | ||
|
||
# End logging configuration |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters