Skip to content

Instantly share code, notes, and snippets.

@tlrobinson
Last active March 12, 2018 22:55
Show Gist options
  • Save tlrobinson/49912b59ae4949ac404aa709b5eb9c87 to your computer and use it in GitHub Desktop.
Save tlrobinson/49912b59ae4949ac404aa709b5eb9c87 to your computer and use it in GitHub Desktop.
Known working Metabase dev environment
FROM debian:stretch
WORKDIR /root
RUN apt-get update
RUN apt-get install -y git openjdk-8-jre curl gpg build-essential apt-transport-https
RUN curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add -
RUN echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list
RUN curl -sL https://deb.nodesource.com/setup_8.x | bash -
RUN apt-get install -y nodejs yarn
RUN curl https://raw.githubusercontent.com/technomancy/leiningen/stable/bin/lein > /usr/local/bin/lein
RUN chmod +x /usr/local/bin/lein
RUN lein upgrade
CMD bash -i
#!/usr/bin/env bash
set -eu
apt-get update
apt-get install -y git openjdk-8-jre curl gpg build-essential apt-transport-https
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add -
echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list
curl -sL https://deb.nodesource.com/setup_8.x | bash -
apt-get install -y nodejs yarn
curl https://raw.githubusercontent.com/technomancy/leiningen/stable/bin/lein > /usr/local/bin/lein
chmod +x /usr/local/bin/lein
@tlrobinson
Copy link
Author

curl https://gist.githubusercontent.com/tlrobinson/49912b59ae4949ac404aa709b5eb9c87/raw/fb01bd180e4bd468c400534d8626418ec6cfef4b/Dockerfile | docker build - -t metabase-dev
docker run -it -v $PWD:/metabase metabase-dev

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment