Skip to content
Snippets Groups Projects
Commit 77873e6ff199 authored by Cédric Krier's avatar Cédric Krier :atom:
Browse files

Install tinyMCE

Closes #12
parent 7167284bee38
No related branches found
No related tags found
1 merge request!28Draft: Install tinyMCE
Pipeline #83556 passed
......@@ -4,6 +4,16 @@
RUN curl -L https://downloads.tryton.org/${SERIES}/tryton-sao-last.tgz | tar zxf - -C /
RUN cd /package && bower install --allow-root
WORKDIR /tinymce
RUN npm install tinymce@^7
RUN curl https://download.tiny.cloud/tinymce/community/languagepacks/4/langs.zip -o /tmp/langs.zip \
&& unzip -d node_modules/tinymce /tmp/langs.zip \
&& (cd node_modules/tinymce/langs && \
for l in ??_??.js; do \
[ ! -e ${l%_??.js}.js ] && cp $l ${l%_??.js}.js && sed -i -e "1s@${l%.js}@${l%_??.js}@" ${l%_??.js}.js || true; \
done) \
&& mv node_modules/tinymce /package
FROM debian:12-slim
LABEL maintainer="Tryton <foundation@tryton.org>" \
org.label-schema.name="Tryton" \
......
......@@ -11,6 +11,7 @@
: ${DB_HOSTNAME:=${POSTGRES_PORT_5432_TCP_ADDR:='postgres'}}
: ${DB_PORT:=${POSTGRES_PORT_5432_TCP_PORT:='5432'}}
: ${TRYTOND_DATABASE_URI:="postgresql://$(quote ${DB_USER}):$(quote ${DB_PASSWORD})@${DB_HOSTNAME}:${DB_PORT}/"}
: ${TRYTOND_HTML__SRC:='/tinymce/tinymce.js'}
: ${PYTHONOPTIMIZE:=1}
: ${LANG:=C.UTF-8}
......@@ -14,7 +15,7 @@
: ${PYTHONOPTIMIZE:=1}
: ${LANG:=C.UTF-8}
export TRYTOND_DATABASE_URI PYTHONOPTIMIZE
export TRYTOND_DATABASE_URI TRYTOND_HTML__SRC PYTHONOPTIMIZE
if [ "${1:0:1}" = '-' ]; then
set -- gunicorn --config=/etc/gunicorn.conf.py "$@"
......
......@@ -4,6 +4,16 @@
RUN curl -L https://downloads.tryton.org/${SERIES}/tryton-sao-last.tgz | tar zxf - -C /
RUN cd /package && bower install --allow-root
WORKDIR /tinymce
RUN npm install tinymce@^7
RUN curl https://download.tiny.cloud/tinymce/community/languagepacks/7/langs.zip -o /tmp/langs.zip \
&& unzip -d node_modules/tinymce /tmp/langs.zip \
&& (cd node_modules/tinymce/langs && \
for l in ??_??.js; do \
[ ! -e ${l%_??.js}.js ] && cp $l ${l%_??.js}.js && sed -i -e "1s@${l%.js}@${l%_??.js}@" ${l%_??.js}.js || true; \
done) \
&& mv node_modules/tinymce /package
FROM debian:12-slim
LABEL maintainer="Tryton <foundation@tryton.org>" \
org.label-schema.name="Tryton" \
......
......@@ -11,6 +11,7 @@
: ${DB_HOSTNAME:=${POSTGRES_PORT_5432_TCP_ADDR:='postgres'}}
: ${DB_PORT:=${POSTGRES_PORT_5432_TCP_PORT:='5432'}}
: ${TRYTOND_DATABASE_URI:="postgresql://$(quote ${DB_USER}):$(quote ${DB_PASSWORD})@${DB_HOSTNAME}:${DB_PORT}/"}
: ${TRYTOND_HTML__SRC:='/tinymce/tinymce.js'}
: ${PYTHONOPTIMIZE:=1}
: ${LANG:=C.UTF-8}
......@@ -14,7 +15,7 @@
: ${PYTHONOPTIMIZE:=1}
: ${LANG:=C.UTF-8}
export TRYTOND_DATABASE_URI PYTHONOPTIMIZE
export TRYTOND_DATABASE_URI TRYTOND_HTML__SRC PYTHONOPTIMIZE
if [ "${1:0:1}" = '-' ]; then
set -- gunicorn --config=/etc/gunicorn.conf.py "$@"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment