Created
March 13, 2015 16:22
-
-
Save cap10morgan/de8a4a73a19207b0b683 to your computer and use it in GitHub Desktop.
A script for installing the Datomic Pro peer lib in docker build
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
#!/bin/bash | |
set -e | |
VERSION=$(grep '\[com.datomic/datomic-pro "' project.clj | awk -F\" '{print $2}') | |
curl -u $(<.datomic-credentials) -SL https://my.datomic.com/repo/com/datomic/datomic-pro/$VERSION/datomic-pro-$VERSION.zip -o /tmp/datomic.zip | |
unzip /tmp/datomic.zip -d /tmp/datomic | |
rm -f /tmp/datomic.zip | |
pushd /tmp/datomic/datomic-pro-$VERSION/ | |
./bin/maven-install | |
popd | |
rm -f .datomic-version | |
rm -rf /tmp/datomic |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment