This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-04-26
Channels
- # announcements (10)
- # asami (15)
- # babashka (200)
- # beginners (48)
- # calva (56)
- # cider (6)
- # clara (2)
- # cljs-dev (18)
- # cljsrn (6)
- # clojars (3)
- # clojure (23)
- # clojure-czech (2)
- # clojure-europe (41)
- # clojure-germany (5)
- # clojure-italy (19)
- # clojure-nl (5)
- # clojure-uk (8)
- # clojurescript (60)
- # clojureverse-ops (5)
- # cursive (14)
- # datomic (6)
- # events (1)
- # figwheel-main (5)
- # graalvm (17)
- # honeysql (2)
- # instaparse (1)
- # integrant (9)
- # jobs (5)
- # music (2)
- # off-topic (37)
- # other-languages (1)
- # pathom (10)
- # proletarian (5)
- # quil (3)
- # reagent (39)
- # reitit (4)
- # remote-jobs (3)
- # reveal (6)
- # rum (9)
- # shadow-cljs (27)
- # vrac (3)
- # xtdb (5)
I can't seem to be able to access env variables with (System/getenv "foobar")
when running a native image. Is there some hoops I gotta jump through to make it work?
@matias287 you need to defer getting those environment variables to runtime, so wrap it in a function or a delay
So instead of
(def ACCESS_TOKEN (System/getenv "foo"))
I should do
(defn [] get_access_token (System/getenv "foo"))
?
I have 2 different docker containers doing the code => jar and jar => native image tasks. Which one would I need to expose it to?
but this is possibly a security issue if you distribute those binaries to people you don't trust