-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
27 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#!/bin/sh | ||
|
||
# source: https://jmglov.net/blog/2022-08-09-dogfooding-blambda-2.html | ||
|
||
set -e | ||
|
||
export BABASHKA_DISABLE_SIGNAL_HANDLERS="true" | ||
|
||
export XDG_CACHE_HOME=/opt | ||
export XDG_CONFIG_HOME=/opt | ||
export XDG_DATA_HOME=/opt | ||
export HOME=/var/task | ||
export GITLIBS=/opt | ||
export CLOJURE_TOOLS_DIR=/opt | ||
export CLJ_CACHE=/opt | ||
export CLJ_CONFIG=/opt | ||
|
||
export BABASHKA_CLASSPATH="/opt/.m2:var/task/src:/var/task/.m2:/var/task:/var/task/src/clj:/var/task/src/cljc:src/cljc:src/clj:/var/task/resources" | ||
export BABASHKA_PRELOADS='(load-file "/opt/hacks.clj")' | ||
|
||
if [ -z "$HL_ENTRYPOINT" ]; then | ||
echo "Environment variable \"HL_ENTRYPOINT\" is not set. See https://fierycod.github.io/holy-lambda/#/babashka-backend-tutorial" | ||
fi; | ||
|
||
bb -Duser.home=/var/task -m "$HL_ENTRYPOINT" |