summary refs log tree commit diff
path: root/docker/build_crosvm_base.sh
blob: 0e4274e37c383831e24f557603d3554734f41878 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/bash
# Copyright 2019 The Chromium OS Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

set -ex
cd "${0%/*}"

gen_build_args() {
    for arg in $(cat ./checkout_commits.env); do
        echo --build-arg "${arg}"
    done
}

docker build $(gen_build_args) -t crosvm-base  "$@" .