From 4e7f9e99392d2f0beab01b0468b5e503843686df Mon Sep 17 00:00:00 2001 From: zhongjin Date: Thu, 11 May 2023 13:21:36 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20'Dockerfile'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index 97691fb..74ff726 100644 --- a/Dockerfile +++ b/Dockerfile @@ -51,14 +51,11 @@ 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 ENV PATH /usr/local/rvm/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin + + RUN mkdir -p /cartodb/log && touch /cartodb/log/users_modifications && \ /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 && \ - service postgresql start && service redis-server start && \ - perl -pi -e 's/0\.22\.0/0.22.2/' /cartodb/app/models/user/db_service.rb && \ - bash -l -c "cd /cartodb && bash script/create_dev_user && \ - bash script/setup_organization.sh && bash script/geocoder.sh" && \ - service postgresql stop && service redis-server stop && \ chmod +x /cartodb/script/fill_geocoder.sh && \ chmod +x /cartodb/script/sync_tables_trigger.sh