Skip to content

Commit 058724c

Browse files
committed
otel-webserver support for arm64
1 parent 130c6e6 commit 058724c

File tree

3 files changed

+20
-2
lines changed

3 files changed

+20
-2
lines changed

instrumentation/otel-webserver-module/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ project.ext {
2323

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

2929
try {

instrumentation/otel-webserver-module/docker-compose.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ services:
77
build:
88
context: .
99
dockerfile: Dockerfile
10+
platforms:
11+
- "linux/amd64"
12+
- "linux/arm64"
1013
image: apache_centos
1114
profiles:
1215
- default
@@ -19,6 +22,9 @@ services:
1922
build:
2023
context: .
2124
dockerfile: docker/centos7/Dockerfile
25+
platforms:
26+
- "linux/amd64"
27+
- "linux/arm64"
2228
image: apache_centos7
2329
hostname: webserver
2430
container_name: webserver_centos7
@@ -33,6 +39,9 @@ services:
3339
build:
3440
context: .
3541
dockerfile: docker/ubuntu20.04/Dockerfile
42+
platforms:
43+
- "linux/amd64"
44+
- "linux/arm64"
3645
image: apache_ubuntu
3746
hostname: webserver
3847
container_name: webserver_ubuntu
@@ -47,6 +56,9 @@ services:
4756
build:
4857
context: .
4958
dockerfile: Dockerfile
59+
platforms:
60+
- "linux/amd64"
61+
- "linux/arm64"
5062
image: nginx_centos
5163
hostname: webserver
5264
container_name: nginx_centos
@@ -61,6 +73,9 @@ services:
6173
build:
6274
context: .
6375
dockerfile: docker/centos7/Dockerfile
76+
platforms:
77+
- "linux/amd64"
78+
- "linux/arm64"
6479
image: nginx_centos7
6580
hostname: webserver
6681
container_name: nginx_centos7
@@ -75,6 +90,9 @@ services:
7590
build:
7691
context: .
7792
dockerfile: docker/ubuntu20.04/Dockerfile
93+
platforms:
94+
- "linux/amd64"
95+
- "linux/arm64"
7896
image: nginx_ubuntu
7997
hostname: webserver
8098
container_name: nginx_ubuntu

instrumentation/otel-webserver-module/docker/ubuntu20.04/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ RUN cp -r /dependencies /otel-webserver-module/ \
201201
&& ./gradlew assembleWebServerModule -DtargetSystem=ubuntu
202202

203203
RUN cd /otel-webserver-module/build \
204-
&& tar -xf opentelemetry-webserver-sdk-x64-linux.tgz \
204+
&& tar -xf opentelemetry-webserver-sdk-*-linux.tgz \
205205
&& mv -f opentelemetry-webserver-sdk /opt/ \
206206
&& cd ../ \
207207
&& cp opentelemetry_module.conf /etc/apache2/opentelemetry_module.conf \

0 commit comments

Comments
 (0)