-
Notifications
You must be signed in to change notification settings - Fork 268
/
bootstrap_docker.sh
executable file
·40 lines (34 loc) · 1.1 KB
/
bootstrap_docker.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#!/usr/bin/env bash
# This script builds the projects listed in build_manifest.sh, terminating when it reaches PROJECT_NAME.
# If run from within a project, it will build only that project, unless env var ONLY_TARGET=false.
#
# Usage:
# bootstrap_docker.sh [PROJECT_NAME]
#
# To build everything in build_manifest.sh:
# bootstrap_docker.sh
#
# To build all projects leading up to and including yarn-project-base:
# bootstrap_docker.sh yarn-project-base
#
# To build just end-to-end:
# cd yarn-project/end-to-end
# ../../bootstrap_docker.sh
#
# To build all projects leading up to and including end-to-end, from within end-to-end:
# cd yarn-project/end-to-end
# ONLY_TARGET=false ../../bootstrap_docker.sh
set -e
PROJECT_NAME=${1:-}
if [ -z "$PROJECT_NAME" ]; then
echo "usage: $0 <project_name>"
exit 1
fi
cd "$(dirname "$0")"
source ./build-system/scripts/setup_env '' '' mainframe_$USER > /dev/null
build_local $PROJECT_NAME
if [ -z "$PROJECT_NAME" ]; then
echo
echo "Success! You could now run e.g.:"
echo " docker run -ti --rm aztecprotocol/end-to-end:latest e2e_token_contract.test"
fi