xref: /aosp_15_r20/external/skia/infra/fiddler-backend/create_docker_image.sh (revision c8dee2aa9b3f27cf6c858bd81872bdeb2c07ed17)
1#!/bin/bash
2# Copyright 2024 Google, LLC
3#
4# Use of this source code is governed by a BSD-style license that can be
5# found in the LICENSE file.
6
7set -ex
8
9# To be run on Louhi to create the fiddler final image which has both the
10# compiled go code (fiddler) and the pre-compiled C++ fiddle and sec_wrap binary.
11
12# BASE_DIR is where this script is
13BASE_DIR=`cd $(dirname ${BASH_SOURCE[0]}) && pwd`
14
15# Run docker build from the Skia root so the entire Skia repo is part of the
16# Docker context
17cd $BASE_DIR/../../ && pwd && ls -ahl && docker build --tag fiddler-final . --file infra/fiddler-backend/Dockerfile
18