2023-05-10 21:00:00 +08:00
|
|
|
#
|
|
|
|
# Cartodb container
|
2023-05-10 21:07:45 +08:00
|
|
|
# ubuntu:18.04
|
2023-05-10 21:00:00 +08:00
|
|
|
#
|
2023-05-10 21:07:45 +08:00
|
|
|
FROM sverhoeven/cartodb
|
2023-05-10 21:00:00 +08:00
|
|
|
LABEL maintainer="spacen onenetcom <kuaidian@spacen.net>"
|
|
|
|
|
|
|
|
# Configuring locales
|
|
|
|
ENV DEBIAN_FRONTEND noninteractive
|
|
|
|
RUN apt-get update
|
|
|
|
ENV LANG en_US.UTF-8
|
|
|
|
ENV LANGUAGE en_US:en
|
|
|
|
ENV LC_ALL en_US.UTF-8
|
|
|
|
|
2023-05-10 21:03:23 +08:00
|
|
|
ADD ./fonts/SourceHanSansCN-Light.otf /usr/share/fonts/SourceHanSansCN-Light.otf
|
|
|
|
ADD ./fonts/SourceHanSerifCN-Regular.otf /usr/share/fonts/SourceHanSerifCN-Regular.otf
|
|
|
|
ADD ./fonts/SourceHanSansCN-Regular.otf /usr/share/fonts/SourceHanSansCN-Regular.otf
|
|
|
|
|
2023-05-10 22:33:55 +08:00
|
|
|
RUN apt-get install -y nano net-tools ca-certificates
|
|
|
|
|
2023-05-11 13:41:02 +08:00
|
|
|
RUN rm -rf /cartodb
|
2023-05-11 13:28:16 +08:00
|
|
|
|
2023-05-11 13:41:02 +08:00
|
|
|
RUN git clone https://git.kongjian.xin:8443/cartodb/cartodb-4.29.git cartodb && \
|
|
|
|
cd cartodb && \
|
|
|
|
npm install
|
|
|
|
|
|
|
|
RUN cd cartodb && bundle exec grunt
|
2023-05-11 13:28:16 +08:00
|
|
|
|
2023-05-10 22:42:18 +08:00
|
|
|
|
2023-05-11 13:13:26 +08:00
|
|
|
# Copy confs
|
2023-05-11 13:35:03 +08:00
|
|
|
ADD ./config/CartoDB-dev.js \
|
|
|
|
/CartoDB-SQL-API/config/environments/development.js
|
|
|
|
ADD ./config/WS-dev.js \
|
|
|
|
/Windshaft-cartodb/config/environments/development.js
|
|
|
|
ADD ./config/app_config.yml /cartodb/config/app_config.yml
|
|
|
|
ADD ./config/database.yml /cartodb/config/database.yml
|
2023-05-11 13:38:49 +08:00
|
|
|
ADD ./create_dev_user /cartodb/script/create_dev_user
|
|
|
|
ADD ./setup_organization.sh /cartodb/script/setup_organization.sh
|
|
|
|
ADD ./config/cartodb.nginx.proxy.conf /etc/nginx/nginx.conf
|
2023-05-11 13:39:59 +08:00
|
|
|
#ADD ./config/varnish.vcl /etc/varnish.vcl
|
2023-05-11 13:38:49 +08:00
|
|
|
ADD ./geocoder.sh /cartodb/script/geocoder.sh
|
|
|
|
ADD ./geocoder_server.sql /cartodb/script/geocoder_server.sql
|
|
|
|
ADD ./fill_geocoder.sh /cartodb/script/fill_geocoder.sh
|
|
|
|
ADD ./sync_tables_trigger.sh /cartodb/script/sync_tables_trigger.sh
|
2023-05-11 13:39:59 +08:00
|
|
|
ENV PATH /usr/local/rvm/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
|
2023-05-11 13:21:36 +08:00
|
|
|
|
|
|
|
|
2023-05-11 13:28:16 +08:00
|
|
|
#RUN mkdir -p /cartodb/log && touch /cartodb/log/users_modifications && \
|
2023-05-11 13:22:56 +08:00
|
|
|
# /opt/varnish/sbin/varnishd -a :6081 -T localhost:6082 -s malloc,256m -f /etc/varnish.vcl && \
|
|
|
|
# perl -pi.bak -e 's/^bind 127.0.0.1 ::1$/bind 0.0.0.0/' /etc/redis/redis.conf && \
|
2023-05-11 13:28:16 +08:00
|
|
|
# chmod +x /cartodb/script/fill_geocoder.sh && \
|
|
|
|
# chmod +x /cartodb/script/sync_tables_trigger.sh
|
2023-05-11 13:13:26 +08:00
|
|
|
|
|
|
|
EXPOSE 80
|
|
|
|
|
2023-05-11 13:28:16 +08:00
|
|
|
#ENV GDAL_DATA /usr/share/gdal/2.2
|
2023-05-11 13:13:26 +08:00
|
|
|
|
|
|
|
# Number of seconds between a sync tables task is run
|
|
|
|
# Default interval is an hour, use `docker run -e SYNC_TABLES_INTERVAL=60 ...` to change it
|
|
|
|
ENV SYNC_TABLES_INTERVAL 3600
|
|
|
|
|
|
|
|
ADD ./startup.sh /opt/startup.sh
|
|
|
|
|
|
|
|
CMD ["/bin/bash", "/opt/startup.sh"]
|
|
|
|
HEALTHCHECK CMD curl -f http://localhost || exit 1
|
2023-05-10 21:11:39 +08:00
|
|
|
|
|
|
|
|