更新 'Dockerfile'

This commit is contained in:
zhongjin 2023-05-12 08:22:52 +08:00
parent dde2611477
commit bc8a186d0c

View File

@ -178,28 +178,20 @@ RUN git clone https://github.com/CartoDB/Windshaft-cartodb.git && \
mkdir logs mkdir logs
# Install CartoDB # Install CartoDB
RUN git clone https://git.kongjian.xin:8443/cartodb/cartodb-4.29.git cartodb && \ RUN git clone --recursive https://github.com/CartoDB/cartodb.git && \
cd cartodb && \ cd cartodb && \
git checkout $CARTODB_VERSION && \
# Install cartodb extension # Install cartodb extension
cd lib && \ cd lib/sql && \
git clone https://github.com/CartoDB/cartodb-postgresql.git sql && \
cd sql && \
git checkout 667ec0e32c && \
PGUSER=postgres make install && \ PGUSER=postgres make install && \
service postgresql start && /bin/su postgres -c \ service postgresql start && /bin/su postgres -c \
/tmp/cartodb_pgsql.sh && service postgresql stop /tmp/cartodb_pgsql.sh && service postgresql stop && \
cd - && \
RUN cd /cartodb && npm install npm install && \
# rm -r /tmp/npm-* /root/.npm && \ rm -r /tmp/npm-* /root/.npm && \
perl -pi -e 's/gdal==1\.10\.0/gdal==2.2.2/' python_requirements.txt && \
#RUN cd /cartodb && \ pip install --no-binary :all: -r python_requirements.txt && \
# perl -pi -e 's/gdal==1\.10\.0/gdal==2.2.2/' python_requirements.txt && \ gem install bundler --version=1.17.3 && gem install compass archive-tar-minitar rack && \
# pip install --no-binary :all: -r python_requirements.txt
# pip install python_requirements.txt
RUN cd /cartodb && \
gem install bundler --version=1.17.3 && \
gem install compass archive-tar-minitar rack && \
bundle update thin && \ bundle update thin && \
/bin/bash -l -c 'bundle install' && \ /bin/bash -l -c 'bundle install' && \
cp config/grunt_development.json ./config/grunt_true.json && \ cp config/grunt_development.json ./config/grunt_true.json && \