The easy-to-use open source Business Intelligence and Embedded Analytics tool that lets everyone work with data :bar_chart:
Metabase Release Script 3.0
Prereqs
Install Clojure CLI -- see [https://clojure.org/guides/getting_started]. Don't use
apt install clojureas this installs a version that doesn't understanddeps.edn.Install
git,node,bun,awscli,docker,java, and `wget``For installing Docker on macOS you should use Docker Desktop. Make sure
docker psworks from the terminalJava version must be Java 8. For managing different Java versions, I recommend Jabba. Use
[email protected]<latest-version>. Before running the script, I dojabba use [email protected]Configure AWS Credentials for
metabaseprofile (used to upload artifacts to S3)You'll need credentials that give you permission to write the metabase-osx-releases S3 bucket. You just need the access key ID and secret key; use the defaults for locale and other options.
aws configure --profile metabase
Export the following env vars:
DOCKERHUB_EMAIL,DOCKERHUB_USERNAME,DOCKERHUB_PASSWORD,GITHUB_TOKEN,SLACK_WEBHOOK_URL, andAWS_DEFAULT_PROFILE.DockerHub credentials need to have permissions to push new Docker images to our DockerHub org.
GitHub token needs to have push permissions
You can get the Slack Webhook URL by asking Cam
AWS_DEFAULT_PROFILEshould be set tometabase
Run the script
Running
./bin/release.sh
or
clojure -X:drivers:build:build/release
- Debugging
If you're running into issues running the release script, it's helpful to first check that you can run ./bin/build.sh
-- this is the real meat and potatoes of the release process and more likely to be the cause of your issues. If you
can run that but still need help, talk to Cam.
To start an nREPL (ex: to run and debug tests), use:
clojure -MnREPL
Add any JVM options (individually) by prefixing each with -J before the -M, and any additional nREPL options after
it as outlined here.