mirror of
https://github.com/benbusby/whoogle-search.git
synced 2026-04-25 20:25:51 +03:00
[GH-ISSUE #991] Environmental variables #616
Labels
No labels
Fixed (Pending PR Merge)
Stale
bug
enhancement
enhancement
good first issue
help wanted
keep-open
needs more info
pull-request
question
theme
unfortunate
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/whoogle-search#616
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 @CaptainFrosty on GitHub (Apr 26, 2023).
Original GitHub issue: https://github.com/benbusby/whoogle-search/issues/991
I am trying to add environmental variables to my container. I am using podman rather than docker if that matters. When I add an environmental file argument when I run it the application doesn't work. Then I tried using
podman run --env 'WHOOGLE*' whoogle-searchto add them from my system environment and that didn't work.@CaptainFrosty commented on GitHub (Apr 27, 2023):
This is what happens when I try to run it with variables with either --env or --env-file. It locks up the terminal after the last message. I am not even trying to use Tor.
@CaptainFrosty commented on GitHub (Apr 27, 2023):
The content of whoogle.env is just:
@CaptainFrosty commented on GitHub (Apr 30, 2023):
Well, I guess I'll try a regular install next if I can't get any assistance concerning getting environmental variables to containers without somehow activating Tor instead.
@CaptainFrosty commented on GitHub (Apr 30, 2023):
To be clear it works with no variables passed.
@CaptainFrosty commented on GitHub (Apr 30, 2023):
Or I could try installing real Docker I suppose. If I HAVE to. 😁 Is the correct thing to do to use
podman/docker runeven when working with an already-running container? If that is the case, when ispodman/docker execused? Sorry I am not well-versed with containers. Just making sure I am using the right command, since the podman docs advise me thatexecis generally for operations on already running containers.@benbusby commented on GitHub (May 1, 2023):
So just to clarify, Tor is activated by default -- it's installed as part of the container build, but doesn't have to be used. If you don't activate the "Use Tor" config on the front page, it will just silently run in the background. If the idea of having Tor running (even when not in use) is a problem, you can deactivate it with
WHOOGLE_TOR_SERVICE=0.Regarding the issue with environment variables, I'm not sure what the problem could be. My first guess is that the
whoogle.envfile isn't being copied into the correct location in the container. The app itself looks for that file in the root level of the repo itself (so alongside the readme,run.sh, etc). Can you shell into the container after it's running and see if your environment file is in the correct place?@MrRubberDucky commented on GitHub (May 8, 2023):
That command should work, no idea why it doesn't. You sure you have the .env file there? For me both
podman run --detach --env-file=whoogle.env whoogle-search(while in /podman-files/) andpodman run --detach --env-file=${HOME}/podman-files/whoogle.env whoogle-searchfetch the same result (Tor disabled in .env withWHOOGLE_TOR_SERVICE=0, reflected in containers logs)Granted I'm using Podman 4.3.1, --env-file= might just not be present in your podman version, or your .env file is malformed.
You can alternatively try deploying with podman-compose devel branch, if you need an example then look at Line 34 here https://github.com/MrRubberDucky/rubberverse.xyz/blob/main/podman-files/containers.yaml
@benbusby commented on GitHub (May 19, 2023):
@CaptainFrosty feel free to reopen this if you're still having issues!