diff --git a/docker-compose.yml b/docker-compose.yml index a904962..1bf07cc 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -167,15 +167,9 @@ services: ZOO_4LW_COMMANDS_WHITELIST: mntr,conf,ruok ZOO_CFG_EXTRA: "metricsProvider.className=org.apache.zookeeper.metrics.prometheus.PrometheusMetricsProvider metricsProvider.httpPort=7000 metricsProvider.exportJvmInfo=true" - redis: - container_name: quepid_redis - image: redis:6.2.7-alpine - ports: - - 6379:6379 - quepid: container_name: quepid - image: o19s/quepid:7.18.0 + image: o19s/quepid:8.0.0-rc3 ports: - 3000:3000 command: "foreman s -f Procfile" @@ -184,7 +178,6 @@ services: - RACK_ENV=production - RAILS_ENV=production - DATABASE_URL=mysql2://root:${MYSQL_ROOT_PASSWORD}@mysql:3306/quepid - - REDIS_URL=redis://redis:6379/1 - FORCE_SSL=false - MAX_THREADS=2 - WEB_CONCURRENCY=2 @@ -200,12 +193,11 @@ services: - KEYCLOAK_REALM=chorus - KEYCLOAK_SITE=http://keycloak:9080 - SIGNUP_ENABLED=true + - QUEPID_CONSIDER_ALL_REQUESTS_LOCAL=true links: - mysql - - redis depends_on: - mysql - - redis embeddings: container_name: embeddings diff --git a/quickstart.sh b/quickstart.sh index 22f2a40..3c3498e 100755 --- a/quickstart.sh +++ b/quickstart.sh @@ -410,8 +410,13 @@ if $offline_lab; then fi docker compose run quepid bundle exec thor case:create "Chorus Baseline Relevance" solr ${solr_collection_url} JSONP "id:id, title:title, thumb:img_500x500, name, brand, product_type" "q=#\$query##&useParams=visible_products,querqy_algo" nDCG@10 admin@choruselectronics.com - docker cp ./katas/Broad_Query_Set_rated.csv quepid:/srv/app/Broad_Query_Set_rated.csv - docker exec quepid bundle exec thor ratings:import 1 /srv/app/Broad_Query_Set_rated.csv >> /dev/null + docker cp ./katas/Broad_Query_Set_rated.csv quepid:/rails/Broad_Query_Set_rated.csv + + sleep 5 + docker compose start quepid + + docker exec quepid bundle exec thor ratings:import 1 /rails/Broad_Query_Set_rated.csv #>> /dev/null + fi