Skip to content

Allow passing arguments with normal arguments#6

Open
EXtremeExploit wants to merge 1 commit into
Gelmo:masterfrom
EXtremeExploit:entrypoint-args
Open

Allow passing arguments with normal arguments#6
EXtremeExploit wants to merge 1 commit into
Gelmo:masterfrom
EXtremeExploit:entrypoint-args

Conversation

@EXtremeExploit

@EXtremeExploit EXtremeExploit commented Feb 24, 2026

Copy link
Copy Markdown

All arguments given after the declaration of what image to use, are passed as arguments to the entrypoint, so arguments can be passed like if they were going to wf_server directly instead of messing with " and escaping characters

Allows passing arguments like this:

docker run \
  -v=wf:/home/warfork/server \
  -v=/path/to/wflogs:/home/warfork/.local/share/warfork-2.1/basewf \
  --net=host \
  gelmo/warfork-docker +sv_hostname "Meow meow" +sv_port 67

This helps a lot with arguments or cvars that need to be enclosed in " or ', or both at the same time

Also changes it to an ENTRYPOINT, so that arguments for it can be easily added within compose, and using ENTRYPOINT and CMD (not used) the intended way (entrypoint for the binary if its static, and CMD for arguments or for any other binary)
It still allows using the tv variant entrypoint with --entrypoint and with the entrypoint key in compose

After this it would be possible to get rid of WF_PARAMS too

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant