| 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 |
|
| 7 |
set -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 |
| 13 |
BASE_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 |
| 17 |
cd $BASE_DIR/../../ && pwd && ls -ahl && docker build --tag fiddler-final . --file infra/fiddler-backend/Dockerfile |