This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-11-20
Channels
- # adventofcode (1)
- # announcements (2)
- # babashka (81)
- # beginners (33)
- # calva (11)
- # circleci (4)
- # clj-commons (3)
- # cljdoc (7)
- # clojars (5)
- # clojure (21)
- # clojure-europe (5)
- # clojure-japan (1)
- # clojure-norway (27)
- # clojurescript (24)
- # emacs (11)
- # events (5)
- # fulcro (14)
- # lsp (40)
- # malli (9)
- # nbb (1)
- # off-topic (5)
- # portal (4)
- # reitit (8)
- # scittle (9)
- # shadow-cljs (14)
- # spacemacs (3)
- # tools-deps (3)
I feel quite spoiled by Intellij but how is this helpful??
is it easy to have node
mean in my PATH "run node from a global Docker image"?
my intent is to keep not having node installed on my laptop, for security. But I also don't want to "dockerize" every other project.
So I want kind of a drop-in replacement for the usual node
binary. Maybe a tricky part is make it able to access target
(i.e. cljs compilation output - which comes from a vanilla docker-less jvm) transparently, while restricting everything else by default?
Not tried it but deno recently added a feature to import npm packages, and deno has lots of sandboxing/restrictions by default unlike node. Iām curious to know if it could be used instead of node.
I've done something similar with az (azure cli):
$ cat az-docker
#!/usr/bin/env bash
if [[ -z "${XDG_DATA_HOME}" ]]; then
XDG_DATA_HOME="${HOME}/.xdg-data-home"
fi
if [ ! -d ${XDG_DATA_HOME}/docker-az ] ; then
mkdir -p "${XDG_DATA_HOME}/docker-az"
fi
docker run -u $(id -u):$(id -g) -v ${XDG_DATA_HOME}/docker-az:/home/az -e HOME=/home/az --rm $DOCKER_OPTS az "${@}"
and put that script on my $PATH
Does that help? The important thing is to run with -u (user) and do some volume mapping (to target) I suppose