xref: /aosp_15_r20/external/virglrenderer/perf-testing/build-dockerimage.sh (revision bbecb9d118dfdb95f99bd754f8fa9be01f189df3)
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