Replies: 1 comment
-
Just found that in my Dockerfile the line "RUN datasette install datasette-comments" upgrade Datasette to a version from 0.64.6 to 1.0a7 So it break the "search all" function. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello Datasette Guru's,
I've tried to tweak my own datasette config in a Dockerfile :
`# Download base image Datasette
FROM datasetteproject/datasette:0.64.3
LABEL about the custom image
LABEL version="0.06"
RUN apt-get update
RUN apt-get clean
Custom config for Datasette
RUN pip config set global.trusted-host "pypi.org pypi.python.org files.pythonhosted.org"
RUN datasette install datasette-comments
RUN datasette install datasette-pretty-json
RUN datasette install datasette-upload-dbs
RUN datasette install datasette-cluster-map
RUN datasette install datasette-configure-fts
RUN pip install datasette-search-all
RUN pip install datasette-cors`
Then try to use it thru a docker-compose stack as follow :
`version: '3'
services:
my-datasette:
container_name: my-datasette
hostname: my-datasette
image: my-datasette:0.06
restart: unless-stopped
network_mode: bridge
entrypoint: ["datasette", "-p", "8001", "-h", "0.0.0.0", "--cors", "-m", "/databases/upload.yaml", "--root"]
ports:
- 8001:8001
volumes:
- 'C:\my-ubuntu-data\db:/databases'`
upload.yaml look like this :
plugins: datasette-upload-dbs: directory: /databases
fts is enabled on some databases only.
Datasette start well, I can see all my dbs and the full search text area.
Whatever I try to search I see he is working on all searchage tables but display no results at all.
inspect sub menu of Chrome browser show me this error :
Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'map')
at displayResults (search?q=srv:906:28)
at search?q=srv:944:13
Please note it work well for a specific table.
I use Docker-Desktop on Windows 10 Enterprise.
What I'm doing wrong ? any help apprecied ;-)
Thank in advance.
Regards
Beta Was this translation helpful? Give feedback.
All reactions