Skip to content

Commit

Permalink
Fix ee Dockerhub build (metabase#15449)
Browse files Browse the repository at this point in the history
* Fix EE Dockerhub for once and for all

* Try to overload the ARG attribute

* Kick the CI
  • Loading branch information
paoliniluis authored Apr 4, 2021
1 parent b78dced commit 959077f
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
4 changes: 0 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@

FROM node:12.20.1-alpine as frontend

ARG MB_EDITION=oss

WORKDIR /app/source

ENV FC_LANG en-US LC_CTYPE en_US.UTF-8
Expand All @@ -20,8 +18,6 @@ RUN yarn install --frozen-lockfile

FROM adoptopenjdk/openjdk11:alpine as backend

ARG MB_EDITION=oss

WORKDIR /app/source

ENV FC_LANG en-US LC_CTYPE en_US.UTF-8
Expand Down
11 changes: 11 additions & 0 deletions hooks/build
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/bin/bash
# for posterity
# SOURCE_BRANCH: the name of the branch or the tag that is currently being tested.
# SOURCE_COMMIT: the SHA1 hash of the commit being tested.
# COMMIT_MSG: the message from the commit being tested and built.
# DOCKER_REPO: the name of the Docker repository being built.
# DOCKERFILE_PATH: the dockerfile currently being built.
# DOCKER_TAG: the Docker repository tag being built.
# IMAGE_NAME: the name and tag of the Docker repository being built. (This variable is a combination of DOCKER_REPO:DOCKER_TAG.)

docker build -t $IMAGE_NAME --build-arg MB_EDITION=$MB_EDITION .

0 comments on commit 959077f

Please sign in to comment.