]>
git.proxmox.com Git - ceph.git/blob - ceph/src/jaegertracing/opentelemetry-cpp/docker/build.sh
3 # Copyright The OpenTelemetry Authors
4 # SPDX-License-Identifier: Apache-2.0
13 echo "Add description of the script functions here."
15 echo "Syntax: scriptTemplate [-b|o|g|j]"
18 echo "o OpenTelemetry-cpp git tag"
21 echo "t thrift version"
22 echo "j Parallel jobs"
26 echo "docker create -ti --name otel otel-cpp-<base_image> bash"
27 echo "docker cp otel:/ ./"
28 echo "docker rm -f otel"
32 echo "COPY --from=otel-cpp-<base_image> /usr"
35 base_image
=${base_image:="alpine"}
36 grpc_git_tag
=${grpc_git_tag:="v1.43.2"}
37 thrift_version
=${thrift_version:="0.14.1"}
38 otel_git_tag
=${otel_git_tag:="v1.3.0"}
41 while getopts ":h:b:o:g:j:t:" option
; do
49 o
) # OpenTelemetry-cpp git tag
56 thrift_version
=$OPTARG
67 docker build
-t base-
${base_image}-dev -f Dockerfile.
${base_image}.base .
70 docker build
--build-arg BASE_IMAGE
=base-
${base_image}-dev \
71 --build-arg GRPC_GIT_TAG
=${grpc_git_tag} \
72 --build-arg CORES
=${cores} \
73 -t grpc-
${base_image} -f Dockerfile .
77 docker build
--build-arg BASE_IMAGE
=base-
${base_image}-dev \
78 --build-arg THRIFT_VERSION
=${thrift_version} \
79 --build-arg CORES
=${cores} \
80 -t thrift-
${base_image} -f Dockerfile .
83 docker build
--build-arg BASE_IMAGE
=${base_image} \
84 --build-arg CORES
=${cores} \
85 --build-arg OTEL_GIT_TAG
=${otel_git_tag} \
86 -t otel-cpp-
${base_image} -f Dockerfile .