-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
35 lines (25 loc) · 1013 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
ARG METABASE_VERSION=v0.37.4
FROM adoptopenjdk/openjdk11:jdk-11.0.9.1_1-alpine-slim as builder
ARG CLOJURE_CLI_VERSION=1.10.1.763
# the clojure installer script needs curl
RUN apk add --no-cache curl
RUN apk add --no-cache bash
ADD https://download.clojure.org/install/linux-install-${CLOJURE_CLI_VERSION}.sh ./cli-linux-install.sh
RUN chmod +x cli-linux-install.sh
RUN ./cli-linux-install.sh
# install leiningen
ADD https://raw.github.com/technomancy/leiningen/stable/bin/lein /usr/local/bin/lein
RUN chmod +x /usr/local/bin/lein
RUN apk add --no-cache git
WORKDIR /app/metabse-repo
RUN git clone https://github.com/metabase/metabase.git
RUN cd metabase && lein install-for-building-drivers
WORKDIR /app/metabase-cb-driver
# Copy the src code
COPY . ./
# ENV CLASSPATH=/app/metabase.jar
ARG LEIN_SNAPSHOTS_IN_RELEASE=true
ARG DEBUG=1
RUN lein uberjar
FROM metabase/metabase:${METABASE_VERSION} as runner
COPY --from=builder /app/metabase-cb-driver/target/uberjar/couchbase.metabase-driver.jar /plugins