Genie Discord forum
Why does docker port publishig not work (locally or any deployment relying on CMD) with bootstrap.jl
I run into issues for my Genie app via docker with filenames. Specifically, If I have it named as bootstrap.jl (where the 127.0.0.1:8000 webiste doesnt load) the webpage doesnt become accessible. When I change to app.jl, everything works fine and the port forwarding works
for MWE, clone https://huggingface.co/spaces/nooji/GenieOnHuggingFaceSpaces/ and change app.jl to boostrap.jl.
docker build . -t genie:test and
docker run --rm -it -p 8000:8000 genie:test. If there is something I'm missunderstanding I would love to understand why! thank you!
I don't see any problem with your
bootstrap.jl is used by Genie internally that could be a reason. Can you name it something else? Like
Xyz.jl and see if that works?
For clarification, it works with
bootstrap.jl in the dockerfile will cause issues, and lemme try!
I'm having an odd issue with docker port forwarding as well, I can connect to the jupyter server 127.0.0.1:8888 and even run a julia kernel. However when I try to publish a website with genie on 127.0.0.1:8001 I get nothing on the host side (I can CURL within the docker image to get the hello world) . 127.0.0.1 does not behave like a closed port, it just sends no data
a closed port would say "connection refused"
update: well I guess the same thing happens with svelte, so must not be Genie specific
ok found how to do this in svelte, now just need to find the equivalent of the setup for genie (npm run dev -- --open --port 8001 --host)
ok to close my issue the up command would be run like
up(port=8001,host="172.17.0.2") inside the julia kernel. (Along with proper docker port setup). Sorry for spam but I'm documenting here in case someone else searches for it