Skip to content

Commit

Permalink
otel-webserver support for arm64
Browse files Browse the repository at this point in the history
  • Loading branch information
Fydon committed Mar 19, 2024
1 parent a02e005 commit c604772
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 2 deletions.
2 changes: 1 addition & 1 deletion instrumentation/otel-webserver-module/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ project.ext {

ansdkOsName = osName
ansdkArch = (osArch == 'x86' ? 'i686' : osArch)
gccArchFlag = (osArch == 'x86' ? '-m32' : '-m64')
gccArchFlag = (osArch == 'x86' ? '-m32' : (osArch == 'aarch64' ? '-march=armv8-a' : '-m64'))
headSHA1 = "<dev>"

try {
Expand Down
18 changes: 18 additions & 0 deletions instrumentation/otel-webserver-module/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ services:
build:
context: .
dockerfile: Dockerfile
platforms:
- "linux/amd64"
- "linux/arm64"
image: apache_centos
profiles:
- default
Expand All @@ -19,6 +22,9 @@ services:
build:
context: .
dockerfile: docker/centos7/Dockerfile
platforms:
- "linux/amd64"
- "linux/arm64"
image: apache_centos7
hostname: webserver
container_name: webserver_centos7
Expand All @@ -33,6 +39,9 @@ services:
build:
context: .
dockerfile: docker/ubuntu20.04/Dockerfile
platforms:
- "linux/amd64"
- "linux/arm64"
image: apache_ubuntu
hostname: webserver
container_name: webserver_ubuntu
Expand All @@ -47,6 +56,9 @@ services:
build:
context: .
dockerfile: Dockerfile
platforms:
- "linux/amd64"
- "linux/arm64"
image: nginx_centos
hostname: webserver
container_name: nginx_centos
Expand All @@ -61,6 +73,9 @@ services:
build:
context: .
dockerfile: docker/centos7/Dockerfile
platforms:
- "linux/amd64"
- "linux/arm64"
image: nginx_centos7
hostname: webserver
container_name: nginx_centos7
Expand All @@ -75,6 +90,9 @@ services:
build:
context: .
dockerfile: docker/ubuntu20.04/Dockerfile
platforms:
- "linux/amd64"
- "linux/arm64"
image: nginx_ubuntu
hostname: webserver
container_name: nginx_ubuntu
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ RUN cp -r /dependencies /otel-webserver-module/ \
&& ./gradlew assembleWebServerModule -DtargetSystem=ubuntu

RUN cd /otel-webserver-module/build \
&& tar -xf opentelemetry-webserver-sdk-x64-linux.tgz \
&& tar -xf opentelemetry-webserver-sdk-*-linux.tgz \
&& mv -f opentelemetry-webserver-sdk /opt/ \
&& cd ../ \
&& cp opentelemetry_module.conf /etc/apache2/opentelemetry_module.conf \
Expand Down

0 comments on commit c604772

Please sign in to comment.