Skip to content

Commit 4871555

Browse files
committed
fix(utils/build.sh): --platform to --docker-platform in help
1 parent 01c5304 commit 4871555

1 file changed

Lines changed: 16 additions & 16 deletions

File tree

utils/build/build.sh

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -58,21 +58,21 @@ print_usage() {
5858
echo -e " ${SCRIPT_NAME} [options...]"
5959
echo
6060
echo -e "${WHITE_BOLD}OPTIONS${NC}"
61-
echo -e " ${CYAN}--library <lib>${NC} Language of the tracer (env: TEST_LIBRARY, default: ${DEFAULT_TEST_LIBRARY})."
62-
echo -e " ${CYAN}--weblog-variant <var>${NC} Weblog variant (env: WEBLOG_VARIANT)."
63-
echo -e " ${CYAN}--images <images>${NC} Comma-separated list of images to build (env: BUILD_IMAGES, default: ${DEFAULT_BUILD_IMAGES})."
64-
echo -e " ${CYAN}--docker${NC} Build docker image instead of local install (env: DOCKER_MODE, default: ${DEFAULT_DOCKER_MODE})."
65-
echo -e " ${CYAN}--github-token-file <file>${NC} Path to a file containing a GitHub token used for authenticated operations (e.g. cloning private repos, accessing the API)."
66-
echo -e " ${CYAN}--extra-docker-args <args>${NC} Extra arguments passed to docker build (env: EXTRA_DOCKER_ARGS)."
67-
echo -e " ${CYAN}--cache-mode <mode>${NC} Cache mode (env: DOCKER_CACHE_MODE)."
68-
echo -e " ${CYAN}--platform <platform>${NC} Target Docker platform."
69-
echo -e " ${CYAN}--list-libraries${NC} Lists all available libraries and exits."
70-
echo -e " ${CYAN}--list-weblogs${NC} Lists all available weblogs for a library and exits."
71-
echo -e " ${CYAN}--default-weblog${NC} Prints the name of the default weblog for a given library and exits."
72-
echo -e " ${CYAN}--binary-path${NC} Optional. Path of a directory binaries will be copied from. Should be used for local development only."
73-
echo -e " ${CYAN}--binary-url${NC} Optional. Url of the client library redistributable. Should be used for local development only."
74-
echo -e " ${CYAN}--save-to-binaries${NC} Optional. Save image in binaries folder as a tar.gz file."
75-
echo -e " ${CYAN}--help${NC} Prints this message and exits."
61+
echo -e " ${CYAN}--library <lib>${NC} Language of the tracer (env: TEST_LIBRARY, default: ${DEFAULT_TEST_LIBRARY})."
62+
echo -e " ${CYAN}--weblog-variant <var>${NC} Weblog variant (env: WEBLOG_VARIANT)."
63+
echo -e " ${CYAN}--images <images>${NC} Comma-separated list of images to build (env: BUILD_IMAGES, default: ${DEFAULT_BUILD_IMAGES})."
64+
echo -e " ${CYAN}--docker${NC} Build docker image instead of local install (env: DOCKER_MODE, default: ${DEFAULT_DOCKER_MODE})."
65+
echo -e " ${CYAN}--github-token-file <file>${NC} Path to a file containing a GitHub token used for authenticated operations (e.g. cloning private repos, accessing the API)."
66+
echo -e " ${CYAN}--extra-docker-args <args>${NC} Extra arguments passed to docker build (env: EXTRA_DOCKER_ARGS)."
67+
echo -e " ${CYAN}--cache-mode <mode>${NC} Cache mode (env: DOCKER_CACHE_MODE)."
68+
echo -e " ${CYAN}--docker-platform <platform>${NC} Target Docker platform."
69+
echo -e " ${CYAN}--list-libraries${NC} Lists all available libraries and exits."
70+
echo -e " ${CYAN}--list-weblogs${NC} Lists all available weblogs for a library and exits."
71+
echo -e " ${CYAN}--default-weblog${NC} Prints the name of the default weblog for a given library and exits."
72+
echo -e " ${CYAN}--binary-path${NC} Optional. Path of a directory binaries will be copied from. Should be used for local development only."
73+
echo -e " ${CYAN}--binary-url${NC} Optional. Url of the client library redistributable. Should be used for local development only."
74+
echo -e " ${CYAN}--save-to-binaries${NC} Optional. Save image in binaries folder as a tar.gz file."
75+
echo -e " ${CYAN}--help${NC} Prints this message and exits."
7676
echo
7777
echo -e "${WHITE_BOLD}EXAMPLES${NC}"
7878
echo -e " Build default images:"
@@ -262,7 +262,7 @@ build() {
262262
esac
263263

264264
echo "Using Python version: $PYTHON_VERSION"
265-
docker run ${DOCKER_PLATFORM_ARGS} -v ./binaries/:/app -w /app ghcr.io/datadog/dd-trace-py/testrunner bash -c "pyenv global $PYTHON_VERSION; pip wheel --no-deps -w . /app/dd-trace-py"
265+
docker run ${DOCKER_PLATFORM_ARGS} -e DD_FAST_BUILD=1 -v ./binaries/:/app -w /app ghcr.io/datadog/dd-trace-py/testrunner bash -c "pyenv global $PYTHON_VERSION; pip wheel --no-deps -w . /app/dd-trace-py"
266266
fi
267267

268268
DOCKERFILE=utils/build/docker/${TEST_LIBRARY}/${WEBLOG_VARIANT}.Dockerfile

0 commit comments

Comments
 (0)