[FIX] update less to version 3.12.2 instead of 1.6.3

- Fix user documentation generation scss problem
- Migration: remove lessc with sudo apt purge node-less
This commit is contained in:
Mathieu Benoit 2020-10-04 15:25:10 -04:00
parent bfb1643b14
commit 890ca62d42
3 changed files with 9 additions and 5 deletions

View file

@ -24,7 +24,6 @@ RUN apt-get update \
fonts-noto-cjk \
gnupg \
libssl-dev \
node-less \
npm \
python3-num2words \
python3-pip \
@ -47,7 +46,6 @@ RUN apt-get update \
libzip-dev \
libldap2-dev \
libsasl2-dev \
node-less \
gdebi-core \
libffi-dev \
iproute2 \
@ -86,6 +84,10 @@ RUN echo 'deb http://apt.postgresql.org/pub/repos/apt/ buster-pgdg main' > /etc/
&& apt-get install --no-install-recommends -y postgresql-client-12 libpq-dev \
&& rm -rf /var/lib/apt/lists/*
# Install npm dependencies
RUN npm install -g rtlcss less \
&& ln -fs /usr/local/bin/lessc /usr/bin/lessc
# Install python with pyenv
# Reference https://github.com/bopen/docker-ubuntu-pyenv
COPY pyenv-version.txt python-versions.txt /

View file

@ -34,7 +34,7 @@ eval "$(docker-machine env default)"
echo "\n---- Installing nodeJS NPM and rtlcss for LTR support ----"
brew install nodejs npm openssl
sudo npm install -g rtlcss
sudo npm install -g lessc
sudo npm install -g less
yes n|pyenv install 3.7.7
pyenv local 3.7.7

View file

@ -40,13 +40,15 @@ sudo su - postgres -c "createuser -s ${EL_USER}" 2> /dev/null || true
# Install Dependencies
#--------------------------------------------------
echo -e "\n--- Installing debian dependency --"
sudo apt-get install git build-essential wget libxslt-dev libzip-dev libldap2-dev libsasl2-dev node-less libpng12-0 gdebi-core libffi-dev libbz2-dev -y
sudo apt-get install git build-essential wget libxslt-dev libzip-dev libldap2-dev libsasl2-dev libpng12-0 gdebi-core libffi-dev libbz2-dev -y
sudo apt-get install libmariadbd-dev -y
echo -e "\n---- Installing nodeJS NPM and rtlcss for LTR support ----"
sudo apt-get install nodejs npm -y
sudo npm install -g rtlcss
sudo npm install -g lessc
sudo npm install -g less
sudo ln -fs /usr/local/bin/lessc /usr/bin/lessc
if [ ${EL_INSTALL_NGINX} = "True" ]; then
echo -e "\n---- Installing nginx ----"