bytehow / docker-ghidra-server

Ghidra Server Docker Image
Apache License 2.0
40 stars 18 forks source link

Provide custom server.conf via environment variable #12

Closed mx-shift closed 3 weeks ago

mx-shift commented 1 month ago

Useful for enabling anonymous access

bytehow commented 3 weeks ago

Hi @mx-shift , thank you for the contribution. How are you intending to use this? I don't see why you wouldn't be able to just mount in your server.conf with

docker run -d \
    -v /path/to/your/server.conf:/ghidra/server/server.conf 
    bytehow/docker-ghidra-server:latest
mx-shift commented 3 weeks ago

At a high-level, all I wanted to do was enable anonymous access. I couldn't figure out a simple way to enable that with an environment variable without adding some form of templating step to server.conf. Instead, I decided to put a server.conf in the root of the repo volume for persistence and use this environment variable to replace the built-in version. Didn't occur to me to use another volume mount for just server.conf. That works for me. I'll close this PR when I'm at my computer next.

On Sun, Jun 16, 2024, 1:50 PM bytehow @.***> wrote:

Hi @mx-shift https://github.com/mx-shift , thank you for the contribution. How are you intending to use this? I don't see why you wouldn't be able to just mount in your server.conf with

docker run -d \ -v /path/to/your/server.conf:/ghidra/server/server.conf bytehow/docker-ghidra-server:latest

— Reply to this email directly, view it on GitHub https://github.com/bytehow/docker-ghidra-server/pull/12#issuecomment-2171873646, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACIEHF6QJSAZPEDVCUG263TZHX3AZAVCNFSM6AAAAABJBT6I5OVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNZRHA3TGNRUGY . You are receiving this because you were mentioned.Message ID: @.***>