This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-02-09
Channels
- # announcements (3)
- # babashka (17)
- # beginners (75)
- # calva (43)
- # cider (1)
- # clj-kondo (54)
- # cljdoc (8)
- # cljs-dev (70)
- # clojure (83)
- # clojure-europe (27)
- # clojure-nl (4)
- # clojure-norway (4)
- # clojure-spec (8)
- # clojure-uk (13)
- # clojured (2)
- # clojurescript (47)
- # community-development (4)
- # conjure (2)
- # cursive (3)
- # datomic (5)
- # emacs (5)
- # events (3)
- # fulcro (13)
- # graalvm-mobile (19)
- # helix (2)
- # introduce-yourself (1)
- # jobs (2)
- # jobs-discuss (28)
- # kaocha (9)
- # livestream (11)
- # malli (15)
- # meander (24)
- # nextjournal (8)
- # off-topic (26)
- # pathom (1)
- # pedestal (8)
- # polylith (2)
- # portal (31)
- # re-frame (4)
- # reagent (10)
- # reitit (8)
- # remote-jobs (3)
- # sci (1)
- # shadow-cljs (66)
- # spacemacs (20)
- # testing (6)
- # vim (15)
- # xtdb (7)
Hi, I would like to use a block/cell as the render target for docker environment serving content on localhost:8080. Is there a way to do this? Are iframes supported in next journal?
Hi, can you change the port? We expose 9998 like for example here https://nextjournal.com/nextjournal/flask
I believe so. Below is the command that I use to run it locally.
docker run -it --rm -p 8080:8080 -v $PATH:/usr/local/app containerid
Is there a way to configure the port and $PATH through the environment settings?@U5H74UNSF Hi Martin, I checked the flask example. It seems pretty straight forward. That said, I would like to have an iframe for rendering the content served by the docker image. I don't see a place to configure the port or the path presented to docker. Am I missing something?
sorry I dropped this. I believe @U9EQP1K0X should have more samples for this?
Hi @UF7M6GGDQ, at the moment it’s not possible to configure the port we expose in the runtime (read: the docker container), and at present we only allow some kind of “mounts”. Another (less minimal) example is how to configure a Dash application to have its iframe render correctly: https://nextjournal.com/nextjournal/dash likewise you could try to configure your application to use the 9998 port. Can you share a notebook that we can have a look at to help further?
Hi @U9EQP1K0X, I'm trying to use the structurizr-lite container inside an iframe in nextjournal. The instructions provided ask for configuration of the port and mount path. See details at https://dev.to/simonbrown/getting-started-with-structurizr-lite-27d0
By inspecting the image you pasted here, you can see the command which runs in the container: catalina.sh run
. So we might use that manually in a notebook. Gave this a try in a public notebook https://nextjournal.com/zampino/structurizr that you can remix. maybe you don’t need to configure the port but use a service runtime (basically a long running process that can be reached by other runtimes). Try remixing the notebook to play around, the missing part would be to “proxy” catalina server onto a public facing URL (like in the flask app example) from within a — say — python runtime. But it all seems pretty hacky, sorry...