mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2026-04-25 17:16:00 +03:00
[GH-ISSUE #1282] Bug: Environment variables passed from docker-compose.yml do not seem to get read #788
Labels
No labels
expected: maybe someday
expected: next release
expected: release after next
expected: unlikely unless contributed
good first ticket
help wanted
pull-request
scope: all users
scope: windows users
size: easy
size: hard
size: medium
size: medium
status: backlog
status: blocked
status: done
status: idea-phase
status: needs followup
status: wip
status: wontfix
touches: API/CLI/Spec
touches: configuration
touches: data/schema/architecture
touches: dependencies/packaging
touches: docs
touches: js
touches: views/replayers/html/css
why: correctness
why: functionality
why: performance
why: security
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/ArchiveBox#788
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @dstengle on GitHub (Dec 6, 2023).
Original GitHub issue: https://github.com/ArchiveBox/ArchiveBox/issues/1282
Describe the bug
While attempting to get sonic to work with docker compose, the environment variables listed in the compose file do not appear to change the configuration.
Steps to reproduce
Download and run the default compose file, uncomment necessary sections and bring it up.
Sonic container runs, but searches don't have full text.
Using config set for SEARCH_BACKEND_ENGINE SEARCH_BACKEND_HOST_NAME SEARCH_BACKEND_PORT are all required to get it working.
Screenshots or log output
ArchiveBox version
$ docker compose exec -u archivebox archivebox archivebox --version
0.7.1+editable
ArchiveBox v0.7.1+editable Cpython Linux Linux-6.2.0-37-generic-x86_64-with-glibc2.36 x86_64
DEBUG=False IN_DOCKER=True IN_QEMU=False IS_TTY=True TZ=UTC FS_ATOMIC=True FS_REMOTE=True FS_USER=1000:1000 FS_PERMS=644 SEARCH_BACKEND=sonic
[i] Dependency versions:
√ PYTHON_BINARY v3.11.6 valid /usr/local/bin/python3.11
√ SQLITE_BINARY v2.6.0 valid /usr/local/lib/python3.11/sqlite3/dbapi2.py
√ DJANGO_BINARY v3.1.14 valid /usr/local/lib/python3.11/site-packages/django/init.py
√ ARCHIVEBOX_BINARY v0.7.1 valid /usr/local/bin/archivebox
√ CURL_BINARY v8.4.0 valid /usr/bin/curl
√ WGET_BINARY v1.21.3 valid /usr/bin/wget
√ NODE_BINARY v21.1.0 valid /usr/bin/node
√ SINGLEFILE_BINARY v1.1.18 valid /app/node_modules/single-file-cli/single-file
√ READABILITY_BINARY v0.0.9 valid /app/node_modules/readability-extractor/readability-extractor
√ MERCURY_BINARY v1.0.0 valid /app/node_modules/@postlight/parser/cli.js
√ GIT_BINARY v2.39.2 valid /usr/bin/git
√ YOUTUBEDL_BINARY v2023.10.13 valid /usr/local/bin/yt-dlp
√ CHROME_BINARY v119.0.6045.9 valid /usr/bin/chromium-browser
√ RIPGREP_BINARY v13.0.0 valid /usr/bin/rg
[i] Source-code locations:
√ PACKAGE_DIR 24 files valid /app/archivebox
√ TEMPLATES_DIR 4 files valid /app/archivebox/templates
[i] Secrets locations:
[i] Data locations:
√ OUTPUT_DIR 8 files @ valid /data
√ SOURCES_DIR 1 files valid ./sources
√ LOGS_DIR 1 files valid ./logs
√ ARCHIVE_DIR 1 files valid ./archive
√ CONFIG_FILE 196.0 Bytes valid ./ArchiveBox.conf
√ SQL_INDEX 212.0 KB valid ./index.sqlite3
@dstengle commented on GitHub (Dec 6, 2023):
I think this might just be user error and trying to update the index directly from the docker image rather than the compose.
whitenoisefor serving static files instead ofdjango.views.static.serve#2010whitenoisefor serving static files instead ofdjango.views.static.serve#3520