• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#!/bin/bash
2# Copyright 2019 The Chromium OS Authors. All rights reserved.
3# Use of this source code is governed by a BSD-style license that can be
4# found in the LICENSE file.
5
6set -ex
7cd "${0%/*}"
8
9export USER_ID=$(id -u)
10export GROUP_ID=$(id -g)
11src_root="$(realpath ..)"
12
13docker build -t mesa \
14    -f Docker/Dockerfile \
15    --build-arg USER_ID=${USER_ID} \
16    --build-arg GROUP_ID=${GROUP_ID} \
17    "$@" \
18    "${src_root}"
19