Skip to content

saiko-tech/gcf-clj

Repository files navigation

gcf-clj

Clojure on JVM on Google Cloud Functions.
This project implements a class loader fix to be able to run Clojure on GCP Cloud Functions.

Clojars Project

deps.edn

org.clojars.markus-wa/gcf-clj {:mvn/version "0.0.1"}

Leiningen / Boot

[org.clojars.markus-wa/gcf-clj "0.0.1"]

Usage

$ gcloud functions deploy my-function \
        --gen2 \
        --runtime java17 \
        --entry-point com.saiko_tech.gcf_clj.ClojureCloudFunction \
        --trigger-topic my-topic \
        --region europe-north1 \
        --memory 2Gi \
        --set-env-vars --set-env-vars "GCF_CLOJURE_NS=com.myns" \
        --set-env-vars "GCF_CLOJURE_FN=my-fn" \
        --source dir-containing-uberjar

Acknowledgements

Thanks to https://sparkofreason.github.io/jvm-clojure-google-cloud-function/ for providing the solution approach

About

Clojure on JVM Google Cloud Functions

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages