install goldctl in docker build (#46640)
This commit is contained in:
committed by
Flutter GitHub Bot
parent
5d30c0970a
commit
7a13d8a0ce
@@ -107,7 +107,7 @@ RUN dpkg-query -L nodejs
|
||||
RUN /usr/bin/npm --verbose install -g firebase-tools
|
||||
# TODO(dnfield): Remove this once Firebase has a fix upstream for
|
||||
# https://github.com/flutter/flutter/issues/34435
|
||||
COPY patch_firebase.sh /root/patch_firebase.sh
|
||||
COPY ci/docker_linux/patch_firebase.sh /root/patch_firebase.sh
|
||||
RUN /root/patch_firebase.sh
|
||||
|
||||
# Install golang more recent than in repo (necessary for dashing to build)
|
||||
@@ -124,11 +124,18 @@ RUN $GOBINARY get -u github.com/technosophos/dashing
|
||||
RUN locale-gen en_US "en_US.UTF-8" && dpkg-reconfigure locales
|
||||
ENV LANG en_US.UTF-8
|
||||
|
||||
# Install fastlane via pinned Gemfile & Gemfile.lock
|
||||
# Skip all the documentation (-N) since it's just on CI.
|
||||
RUN gem install bundler -N
|
||||
|
||||
# Gemfile last edited 1/6/2019 (update to trigger a rebuild of Docker image)
|
||||
COPY Gemfile /Gemfile
|
||||
COPY Gemfile.lock /Gemfile.lock
|
||||
COPY ci/docker_linux/Gemfile /Gemfile
|
||||
COPY ci/docker_linux/Gemfile.lock /Gemfile.lock
|
||||
|
||||
RUN bundle install --system
|
||||
|
||||
# Install goldctl, for Golden testing
|
||||
# Last updated 1/8/19 (update to rebuild Dockerfile with latest goldctl)
|
||||
COPY bots/download_goldctl.sh /download_goldctl.sh
|
||||
ENV GOLDCTL '/depot_tools/goldctl'
|
||||
RUN /download_goldctl.sh
|
||||
|
||||
@@ -3,6 +3,12 @@
|
||||
# Use of this source code is governed by a BSD-style license that can be
|
||||
# found in the LICENSE file.
|
||||
|
||||
# Capture the directory this script resides in
|
||||
SCRIPT_DIRECTORY="$(dirname $(readlink -f "$0"))"
|
||||
|
||||
# Set context to flutter/dev
|
||||
CONTEXT="${SCRIPT_DIRECTORY}/../.."
|
||||
|
||||
TAG="${CIRRUS_TAG:-latest}"
|
||||
|
||||
# Convert "+" to "-" to make hotfix tags legal Docker tag names.
|
||||
@@ -12,4 +18,7 @@ TAG=${TAG/+/-}
|
||||
# pull to make sure we are not rebuilding for nothing
|
||||
sudo docker pull "gcr.io/flutter-cirrus/build-flutter-image:$TAG"
|
||||
|
||||
sudo docker build "$@" --tag "gcr.io/flutter-cirrus/build-flutter-image:$TAG" .
|
||||
sudo docker build "$@" \
|
||||
--tag "gcr.io/flutter-cirrus/build-flutter-image:$TAG" \
|
||||
--file "$SCRIPT_DIRECTORY/Dockerfile" \
|
||||
"$CONTEXT"
|
||||
|
||||
Reference in New Issue
Block a user