File tree 2 files changed +4
-2
lines changed
2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,8 @@ FROM ${BASE_IMAGE}
4
4
5
5
ARG MODEL_URL
6
6
ARG GOOGLE_APPLICATION_CREDENTIALS
7
- RUN gcloud auth activate-service-account --key-file=${GOOGLE_APPLICATION_CREDENTIALS}
7
+ # Run docker build using the credentials if provided
8
+ RUN if [[-z "$GOOGLE_APPLICATION_CREDENTIALS" ]]; then gcloud auth activate-service-account --key-file=${GOOGLE_APPLICATION_CREDENTIALS}; fi
8
9
RUN gsutil -m cp -r ${MODEL_URL} .
9
10
ARG FOLDER_NAME
10
11
RUN /bin/bash -c ". activate ${CONDA_ENVIRONMENT} && conda env update --name ${CONDA_ENVIRONMENT} --file /${HOME}/${FOLDER_NAME}/conda.yaml"
Original file line number Diff line number Diff line change @@ -6,7 +6,8 @@ ARG MODEL_URL
6
6
ARG FOLDER_NAME
7
7
ARG GOOGLE_APPLICATION_CREDENTIALS
8
8
9
- RUN gcloud auth activate-service-account --key-file=${GOOGLE_APPLICATION_CREDENTIALS}
9
+ # Run docker build using the credentials if provided
10
+ RUN if [[-z "$GOOGLE_APPLICATION_CREDENTIALS" ]]; then gcloud auth activate-service-account --key-file=${GOOGLE_APPLICATION_CREDENTIALS}; fi
10
11
RUN gsutil -m cp -r ${MODEL_URL} .
11
12
12
13
# Install dependencies required by the user-defined ensembler
You can’t perform that action at this time.
0 commit comments