Skip to content

Instantly share code, notes, and snippets.

@tobyclemson
Created February 24, 2013 23:32
Show Gist options
  • Save tobyclemson/5026240 to your computer and use it in GitHub Desktop.
Save tobyclemson/5026240 to your computer and use it in GitHub Desktop.
(ns rosettajvm.deployment.crate.rosetta-jvm
(:require [pallet.configure :as configure])
(:use [pallet.api :only [plan-fn server-spec]]
[pallet.crate :only [defplan]]
[pallet.actions :only [remote-file]]))
(defplan fetch-service-artifact
"Fetch the RosettaJVM service artifact for the provided commit SHA"
[commit-sha]
(clojure.tools.logging/debugf "Fetching RosettaJVM service artifact with SHA %s" commit-sha)
(remote-file
"artifacts/service.zip"
:blobstore (configure/blobstore-service :s3 )
:blob {:container "rosetta-jvm-artifacts"
:path (str commit-sha "service.zip")}))
(def with-rosetta-jvm
(server-spec
:phases {:configure (plan-fn (fetch-service-artifact "8cc9886bc468fdd53171f432af01eb7ea34ad9cb"))}))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment